From 091d36fefb926da557146aa6a98dc44c6b6c2d1b Mon Sep 17 00:00:00 2001 From: Wriju Bhattacharya Date: Tue, 1 Aug 2017 16:49:09 -0400 Subject: [PATCH] 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 --- .../test_environments_negative.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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): self.application_catalog_client.get_environment, environment['id']) + @decorators.attr(type='negative') + @decorators.idempotent_id('f0b6102c-dd22-4f4d-9775-ce0a7a53d881') + def test_update_environment_with_wrong_env_id(self): + self.assertRaises(exceptions.NotFound, + self.application_catalog_client.update_environment, + None) + + @decorators.attr(type='negative') + @decorators.idempotent_id('03266970-2f9d-4b82-971f-532fe23d1027') + def test_abandon_environment_with_wrong_env_id(self): + self.assertRaises(exceptions.NotFound, + self.application_catalog_client.abandon_environment, + None) + class TestEnvironmentNegativeTenantIsolation(base.BaseApplicationCatalogTest):