diff options
author | Jenkins <jenkins@review.openstack.org> | 2017-07-19 14:19:06 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2017-07-19 14:19:06 +0000 |
commit | 99db9f36815c619bfe2442253f1f03f9bfe01332 (patch) | |
tree | cb242d56f0322d677955fa24cc8a9f39fe766f04 /heatclient/tests | |
parent | ad40def943589cadd4c615daf61721be61a0046a (diff) | |
parent | 16b50f84dad258467a64ec02b39847ec4451fb62 (diff) | |
download | python-heatclient-99db9f36815c619bfe2442253f1f03f9bfe01332.tar.gz |
Merge "Add functinoal tests for 'openstack stack snapshot delete'"
Diffstat (limited to 'heatclient/tests')
-rw-r--r-- | heatclient/tests/functional/osc/v1/test_stack.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/heatclient/tests/functional/osc/v1/test_stack.py b/heatclient/tests/functional/osc/v1/test_stack.py index e62d2b0..2f985f7 100644 --- a/heatclient/tests/functional/osc/v1/test_stack.py +++ b/heatclient/tests/functional/osc/v1/test_stack.py @@ -66,3 +66,12 @@ class OpenStackClientStackTest(base.OpenStackClientTestBase): self._stack_delete(stack['id']) stacks_raw = self.openstack('stack list') self.assertNotIn(stack['id'], stacks_raw) + + def test_stack_snapshot_delete(self): + snapshot_name = utils.rand_name(name='test-stack-snapshot') + stack = self._stack_create_minimal() + snapshot = self._stack_snapshot_create(stack['id'], snapshot_name) + self._stack_snapshot_delete(stack['id'], snapshot['id']) + stacks_raw = self.openstack( + 'stack snapshot list' + ' ' + self.stack_name) + self.assertNotIn(snapshot['id'], stacks_raw) |