summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWriju Bhattacharya <wb338b@att.com>2017-08-01 16:49:09 -0400
committerWriju Bhattacharya <wb338b@att.com>2017-08-02 14:07:57 -0400
commit091d36fefb926da557146aa6a98dc44c6b6c2d1b (patch)
treef52e5d93131cf34f8269e083c9428761c5b648f5
parentc9876c965fd389373fca4de35ab432c5f3fe4e1a (diff)
Added Tempest negative tests for environments
Added negative tests for the scenarios: * Abandon environment with invalid id * Update environment with invalid id Change-Id: I19d37cd0664a5faa789f79f1163c701316bf890d
-rw-r--r--murano_tempest_tests/tests/api/application_catalog/test_environments_negative.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/murano_tempest_tests/tests/api/application_catalog/test_environments_negative.py b/murano_tempest_tests/tests/api/application_catalog/test_environments_negative.py
index 3f79a34..34934b7 100644
--- a/murano_tempest_tests/tests/api/application_catalog/test_environments_negative.py
+++ b/murano_tempest_tests/tests/api/application_catalog/test_environments_negative.py
@@ -50,6 +50,20 @@ class TestEnvironmentsNegative(base.BaseApplicationCatalogTest):
50 self.application_catalog_client.get_environment, 50 self.application_catalog_client.get_environment,
51 environment['id']) 51 environment['id'])
52 52
53 @decorators.attr(type='negative')
54 @decorators.idempotent_id('f0b6102c-dd22-4f4d-9775-ce0a7a53d881')
55 def test_update_environment_with_wrong_env_id(self):
56 self.assertRaises(exceptions.NotFound,
57 self.application_catalog_client.update_environment,
58 None)
59
60 @decorators.attr(type='negative')
61 @decorators.idempotent_id('03266970-2f9d-4b82-971f-532fe23d1027')
62 def test_abandon_environment_with_wrong_env_id(self):
63 self.assertRaises(exceptions.NotFound,
64 self.application_catalog_client.abandon_environment,
65 None)
66
53 67
54class TestEnvironmentNegativeTenantIsolation(base.BaseApplicationCatalogTest): 68class TestEnvironmentNegativeTenantIsolation(base.BaseApplicationCatalogTest):
55 69