Make the stack tags template non-empty
This is to work around the update time not having fractional seconds.
Closes-bug: #1480739
Change-Id: Id5f9d318420e37525626c5a770c6126d8369b5e7
diff --git a/functional/test_stack_tags.py b/functional/test_stack_tags.py
index 05600f5..4a97798 100644
--- a/functional/test_stack_tags.py
+++ b/functional/test_stack_tags.py
@@ -19,11 +19,18 @@
heat_template_version: 2014-10-16
description:
foo
+parameters:
+ input:
+ type: string
+ default: test
+resources:
+ not-used:
+ type: OS::Heat::TestResource
+ properties:
+ wait_secs: 1
+ value: {get_param: input}
'''
- def setUp(self):
- super(StackTagTest, self).setUp()
-
def test_stack_tag(self):
# Stack create with stack tags
tags = 'foo,bar'
@@ -41,7 +48,8 @@
self.update_stack(
stack_identifier,
template=self.template,
- tags=updated_tags)
+ tags=updated_tags,
+ parameters={'input': 'next'})
# Ensure property tag is populated and matches updated tags
updated_stack = self.client.stacks.get(stack_identifier)
@@ -50,7 +58,8 @@
# Delete tags
self.update_stack(
stack_identifier,
- template=self.template
+ template=self.template,
+ parameters={'input': 'none'}
)
# Ensure property tag is not populated