Extract tags before pass them in create/update
This patch adds call for extracting Tags from args and converting them
to list of tags instead of string.
Change-Id: If5159a548d38e6cb8400800be1e564c44c638edf
Closes-Bug: #1472266
diff --git a/functional/test_stack_tags.py b/functional/test_stack_tags.py
index a183d25..cdcdcd3 100644
--- a/functional/test_stack_tags.py
+++ b/functional/test_stack_tags.py
@@ -27,7 +27,7 @@
def test_stack_tag(self):
# Stack create with stack tags
- tags = ['foo', 'bar']
+ tags = 'foo,bar'
stack_identifier = self.stack_create(
template=self.template,
tags=tags
@@ -35,10 +35,10 @@
# Ensure property tag is populated and matches given tags
stack = self.client.stacks.get(stack_identifier)
- self.assertEqual(tags, stack.tags)
+ self.assertEqual(['foo', 'bar'], stack.tags)
# Update tags
- updated_tags = ['tag1', 'tag2']
+ updated_tags = 'tag1,tag2'
self.update_stack(
stack_identifier,
template=self.template,
@@ -46,7 +46,7 @@
# Ensure property tag is populated and matches updated tags
updated_stack = self.client.stacks.get(stack_identifier)
- self.assertEqual(updated_tags, updated_stack.tags)
+ self.assertEqual(['tag1', 'tag2'], updated_stack.tags)
# Delete tags
self.update_stack(
@@ -60,7 +60,7 @@
def test_hidden_stack(self):
# Stack create with hidden stack tag
- tags = ['foo', 'hidden']
+ tags = 'foo,hidden'
self.stack_create(
template=self.template,
tags=tags)