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
This commit is contained in:
@@ -19,11 +19,18 @@ class StackTagTest(functional_base.FunctionalTestsBase):
|
|||||||
heat_template_version: 2014-10-16
|
heat_template_version: 2014-10-16
|
||||||
description:
|
description:
|
||||||
foo
|
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):
|
def test_stack_tag(self):
|
||||||
# Stack create with stack tags
|
# Stack create with stack tags
|
||||||
tags = 'foo,bar'
|
tags = 'foo,bar'
|
||||||
@@ -41,7 +48,8 @@ description:
|
|||||||
self.update_stack(
|
self.update_stack(
|
||||||
stack_identifier,
|
stack_identifier,
|
||||||
template=self.template,
|
template=self.template,
|
||||||
tags=updated_tags)
|
tags=updated_tags,
|
||||||
|
parameters={'input': 'next'})
|
||||||
|
|
||||||
# Ensure property tag is populated and matches updated tags
|
# Ensure property tag is populated and matches updated tags
|
||||||
updated_stack = self.client.stacks.get(stack_identifier)
|
updated_stack = self.client.stacks.get(stack_identifier)
|
||||||
@@ -50,7 +58,8 @@ description:
|
|||||||
# Delete tags
|
# Delete tags
|
||||||
self.update_stack(
|
self.update_stack(
|
||||||
stack_identifier,
|
stack_identifier,
|
||||||
template=self.template
|
template=self.template,
|
||||||
|
parameters={'input': 'none'}
|
||||||
)
|
)
|
||||||
|
|
||||||
# Ensure property tag is not populated
|
# Ensure property tag is not populated
|
||||||
|
Reference in New Issue
Block a user