diff options
Diffstat (limited to 'trove/tests/scenario/runners/instance_error_create_runners.py')
-rw-r--r-- | trove/tests/scenario/runners/instance_error_create_runners.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/trove/tests/scenario/runners/instance_error_create_runners.py b/trove/tests/scenario/runners/instance_error_create_runners.py index c83d1728..3eb61a0f 100644 --- a/trove/tests/scenario/runners/instance_error_create_runners.py +++ b/trove/tests/scenario/runners/instance_error_create_runners.py @@ -120,3 +120,10 @@ class InstanceErrorCreateRunner(TestRunner): self.assert_all_gone(delete_ids, expected_states[-1]) else: raise SkipTest("Cleanup is not required.") + + # All the neutron ports should be removed. + if self.error_inst_id: + ports = self.neutron_client.list_ports( + name='trove-%s' % self.error_inst_id + ) + self.assert_equal(0, len(ports.get("ports", []))) |