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
This commit is contained in:
Wriju Bhattacharya 2017-08-01 16:49:09 -04:00
parent c9876c965f
commit 091d36fefb
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):