summaryrefslogtreecommitdiff
path: root/heatclient/tests
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2017-07-19 14:19:06 +0000
committerGerrit Code Review <review@openstack.org>2017-07-19 14:19:06 +0000
commit99db9f36815c619bfe2442253f1f03f9bfe01332 (patch)
treecb242d56f0322d677955fa24cc8a9f39fe766f04 /heatclient/tests
parentad40def943589cadd4c615daf61721be61a0046a (diff)
parent16b50f84dad258467a64ec02b39847ec4451fb62 (diff)
downloadpython-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.py9
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)