Add functional test for environment-model-show
Change-Id: I3a0ba08bbdfe6a4a7f222f2f797806617441810b
This commit is contained in:
parent
bc50fdca1f
commit
2aba86ec05
|
@ -12,6 +12,7 @@
|
|||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
import json
|
||||
import unittest
|
||||
|
||||
from muranoclient.tests.functional.cli import \
|
||||
|
@ -247,6 +248,19 @@ class EnvironmentMuranoSanityClientTest(utils.CLIUtilsTestBase):
|
|||
env_list = self.listing('environment-list')
|
||||
self.assertNotIn(environment, env_list)
|
||||
|
||||
def test_environment_model_show(self):
|
||||
"""Test scenario:
|
||||
|
||||
1) create environment
|
||||
2) check that the result of environment-model-show is a valid
|
||||
non-empty json
|
||||
"""
|
||||
env_name = self.generate_name('TestMuranoSanityEnv')
|
||||
environment = self.create_murano_object('environment', env_name)
|
||||
model = self.murano('environment-model-show', params=environment['ID'])
|
||||
result = json.loads(model)
|
||||
self.assertEqual(4, len(result))
|
||||
|
||||
|
||||
class CategoryMuranoSanityClientTest(utils.CLIUtilsTestBase):
|
||||
"""Sanity tests for testing actions with Category.
|
||||
|
|
Loading…
Reference in New Issue