Add config param for cluster object
Change-Id: I5d36bcba12fa4fdbcb8d4474b0e0351adfb1b304
This commit is contained in:
parent
4a81b26b09
commit
3b2c2957e2
|
@ -66,6 +66,8 @@ class Cluster(resource.Resource):
|
|||
status = resource.Body('status')
|
||||
#: A string describing the reason why the cluster in current status.
|
||||
status_reason = resource.Body('status_reason')
|
||||
#: A dictionary configuration for cluster.
|
||||
config = resource.Body('config', type=dict)
|
||||
#: A collection of key-value pairs that are attached to the cluster.
|
||||
metadata = resource.Body('metadata', type=dict)
|
||||
#: A dictionary with some runtime data associated with the cluster.
|
||||
|
|
|
@ -21,6 +21,7 @@ FAKE_NAME = 'test_cluster'
|
|||
|
||||
FAKE = {
|
||||
'id': 'IDENTIFIER',
|
||||
'config': {'key1': 'value1', 'key2': 'value2'},
|
||||
'desired_capacity': 1,
|
||||
'max_size': 3,
|
||||
'min_size': 0,
|
||||
|
@ -93,6 +94,7 @@ class TestCluster(testtools.TestCase):
|
|||
self.assertEqual(FAKE['max_size'], sot.max_size)
|
||||
self.assertEqual(FAKE['desired_capacity'], sot.desired_capacity)
|
||||
|
||||
self.assertEqual(FAKE['config'], sot.config)
|
||||
self.assertEqual(FAKE['timeout'], sot.timeout)
|
||||
self.assertEqual(FAKE['metadata'], sot.metadata)
|
||||
|
||||
|
|
Loading…
Reference in New Issue