Add support_status to policy type and profile type
This patch adds the 'support_status' field to profile type and policy type for the cluster service. Depends-On: I2f84d5292e7625affe060e8e4e20d821cde7e417 Change-Id: I4d4626d0f01852e5eafa90d63ab2ea56113a1989
This commit is contained in:
parent
0f83addd55
commit
a8651eba21
|
@ -29,3 +29,5 @@ class PolicyType(resource.Resource):
|
||||||
name = resource.Body('name', alternate_id=True)
|
name = resource.Body('name', alternate_id=True)
|
||||||
#: The schema of the policy type.
|
#: The schema of the policy type.
|
||||||
schema = resource.Body('schema')
|
schema = resource.Body('schema')
|
||||||
|
#: The support status of the policy type
|
||||||
|
support_status = resource.Body('support_status')
|
||||||
|
|
|
@ -29,3 +29,5 @@ class ProfileType(resource.Resource):
|
||||||
name = resource.Body('name', alternate_id=True)
|
name = resource.Body('name', alternate_id=True)
|
||||||
#: The schema of the profile type.
|
#: The schema of the profile type.
|
||||||
schema = resource.Body('schema')
|
schema = resource.Body('schema')
|
||||||
|
#: The support status of the profile type
|
||||||
|
support_status = resource.Body('support_status')
|
||||||
|
|
|
@ -19,6 +19,12 @@ FAKE = {
|
||||||
'name': 'FAKE_POLICY_TYPE',
|
'name': 'FAKE_POLICY_TYPE',
|
||||||
'schema': {
|
'schema': {
|
||||||
'foo': 'bar'
|
'foo': 'bar'
|
||||||
|
},
|
||||||
|
'support_status': {
|
||||||
|
'1.0': [{
|
||||||
|
'status': 'supported',
|
||||||
|
'since': '2016.10'
|
||||||
|
}]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -39,3 +45,4 @@ class TestPolicyType(testtools.TestCase):
|
||||||
self.assertEqual(FAKE['name'], sot._get_id(sot))
|
self.assertEqual(FAKE['name'], sot._get_id(sot))
|
||||||
self.assertEqual(FAKE['name'], sot.name)
|
self.assertEqual(FAKE['name'], sot.name)
|
||||||
self.assertEqual(FAKE['schema'], sot.schema)
|
self.assertEqual(FAKE['schema'], sot.schema)
|
||||||
|
self.assertEqual(FAKE['support_status'], sot.support_status)
|
||||||
|
|
|
@ -19,6 +19,12 @@ FAKE = {
|
||||||
'name': 'FAKE_PROFILE_TYPE',
|
'name': 'FAKE_PROFILE_TYPE',
|
||||||
'schema': {
|
'schema': {
|
||||||
'foo': 'bar'
|
'foo': 'bar'
|
||||||
|
},
|
||||||
|
'support_status': {
|
||||||
|
'1.0': [{
|
||||||
|
'status': 'supported',
|
||||||
|
'since': '2016.10',
|
||||||
|
}]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -39,3 +45,4 @@ class TestProfileType(testtools.TestCase):
|
||||||
self.assertEqual(FAKE['name'], sot._get_id(sot))
|
self.assertEqual(FAKE['name'], sot._get_id(sot))
|
||||||
self.assertEqual(FAKE['name'], sot.name)
|
self.assertEqual(FAKE['name'], sot.name)
|
||||||
self.assertEqual(FAKE['schema'], sot.schema)
|
self.assertEqual(FAKE['schema'], sot.schema)
|
||||||
|
self.assertEqual(FAKE['support_status'], sot.support_status)
|
||||||
|
|
Loading…
Reference in New Issue