Browse Source

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
tags/0.1.0
Wriju Bhattacharya 1 year ago
parent
commit
091d36fefb

+ 14
- 0
murano_tempest_tests/tests/api/application_catalog/test_environments_negative.py View File

@@ -50,6 +50,20 @@ class TestEnvironmentsNegative(base.BaseApplicationCatalogTest):
50 50
                           self.application_catalog_client.get_environment,
51 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
 
54 68
 class TestEnvironmentNegativeTenantIsolation(base.BaseApplicationCatalogTest):
55 69
 

Loading…
Cancel
Save