From c3bb3bfa8888dcac70e23fa15dc4c39a849d3da1 Mon Sep 17 00:00:00 2001 From: Duc Truong <dtruong@blizzard.com> Date: Mon, 29 Jan 2018 22:44:22 -0800 Subject: [PATCH] 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 --- .../tests/api/policy_types/test_policy_type_show.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/senlin_tempest_plugin/tests/api/policy_types/test_policy_type_show.py b/senlin_tempest_plugin/tests/api/policy_types/test_policy_type_show.py index 203c863..ac71644 100644 --- a/senlin_tempest_plugin/tests/api/policy_types/test_policy_type_show.py +++ b/senlin_tempest_plugin/tests/api/policy_types/test_policy_type_show.py @@ -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'])