Remove deletion policy 1.0 from tests
Modify policy show type tests from using deletion policy to using scaling policy. This change is needed to pass test cases for the commit which increments to deletion policy 1.1 Change-Id: Id7804abc351c063563b58fb69a66074d0d854ecf
This commit is contained in:
parent
9ff1c7cd2f
commit
c3bb3bfa88
@ -21,7 +21,7 @@ class TestPolicyTypeShow(base.BaseSenlinAPITest):
|
||||
@utils.api_microversion('1.4')
|
||||
@decorators.idempotent_id('57791ed7-7f57-4369-ba6e-7e039169ebdc')
|
||||
def test_policy_type_show(self):
|
||||
res = self.client.get_obj('policy-types', 'senlin.policy.deletion-1.0')
|
||||
res = self.client.get_obj('policy-types', 'senlin.policy.scaling-1.0')
|
||||
|
||||
# Verify resp of policy type show API
|
||||
self.assertEqual(200, res['status'])
|
||||
@ -29,12 +29,12 @@ class TestPolicyTypeShow(base.BaseSenlinAPITest):
|
||||
policy_type = res['body']
|
||||
for key in ['name', 'schema']:
|
||||
self.assertIn(key, policy_type)
|
||||
self.assertEqual('senlin.policy.deletion-1.0', policy_type['name'])
|
||||
self.assertEqual('senlin.policy.scaling-1.0', policy_type['name'])
|
||||
|
||||
@utils.api_microversion('1.5')
|
||||
@decorators.idempotent_id('1900b22a-012d-41f0-85a2-8aa6b65ec2ca')
|
||||
def test_policy_type_show_v1_5(self):
|
||||
res = self.client.get_obj('policy-types', 'senlin.policy.deletion-1.0')
|
||||
res = self.client.get_obj('policy-types', 'senlin.policy.scaling-1.0')
|
||||
|
||||
# Verify resp of policy type show API
|
||||
self.assertEqual(200, res['status'])
|
||||
@ -42,5 +42,5 @@ class TestPolicyTypeShow(base.BaseSenlinAPITest):
|
||||
policy_type = res['body']
|
||||
for key in ['name', 'schema', 'support_status']:
|
||||
self.assertIn(key, policy_type)
|
||||
self.assertEqual('senlin.policy.deletion-1.0', policy_type['name'])
|
||||
self.assertEqual('senlin.policy.scaling-1.0', policy_type['name'])
|
||||
self.assertIsNotNone(policy_type['support_status'])
|
||||
|
Loading…
Reference in New Issue
Block a user