Merge "Added Tempest negative tests for environments"

This commit is contained in:
Jenkins 2017-08-03 02:49:58 +00:00 committed by Gerrit Code Review
commit 09c2a3367e
1 changed files with 14 additions and 0 deletions

View File

@ -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):