Add 'tags' property to orchestration stack
The 'tags' property was missing from the current resource class. Change-Id: I65f710e36b067925f586771f45ef521573e13ca1
This commit is contained in:
parent
b8a4d87dbf
commit
95de0fc56f
|
@ -60,6 +60,8 @@ class Stack(resource.Resource):
|
|||
status = resource.Body('stack_status')
|
||||
#: A text explaining how the stack transits to its current status.
|
||||
status_reason = resource.Body('stack_status_reason')
|
||||
#: A list of strings used as tags on the stack
|
||||
tags = resource.Body('tags')
|
||||
#: A dict containing the template use for stack creation.
|
||||
template = resource.Body('template', type=dict)
|
||||
#: Stack template description text. Currently contains the same text
|
||||
|
|
|
@ -36,6 +36,7 @@ FAKE = {
|
|||
'name': FAKE_NAME,
|
||||
'status': '11',
|
||||
'status_reason': '12',
|
||||
'tags': ['FOO', 'bar:1'],
|
||||
'template_description': '13',
|
||||
'template_url': 'http://www.example.com/wordpress.yaml',
|
||||
'timeout_mins': '14',
|
||||
|
@ -78,8 +79,8 @@ class TestStack(testtools.TestCase):
|
|||
self.assertEqual(FAKE['parameters'], sot.parameters)
|
||||
self.assertEqual(FAKE['name'], sot.name)
|
||||
self.assertEqual(FAKE['status'], sot.status)
|
||||
self.assertEqual(FAKE['status_reason'],
|
||||
sot.status_reason)
|
||||
self.assertEqual(FAKE['status_reason'], sot.status_reason)
|
||||
self.assertEqual(FAKE['tags'], sot.tags)
|
||||
self.assertEqual(FAKE['template_description'],
|
||||
sot.template_description)
|
||||
self.assertEqual(FAKE['template_url'], sot.template_url)
|
||||
|
|
Loading…
Reference in New Issue