@@ -0,0 +1,1601 @@
+# Licensed under the Apache License, Version 2.0 (the %22License%22); you may%0A# not use this file except in compliance with the License. You may obtain%0A# a copy of the License at%0A#%0A#      http://www.apache.org/licenses/LICENSE-2.0%0A#%0A# Unless required by applicable law or agreed to in writing, software%0A# distributed under the License is distributed on an %22AS IS%22 BASIS, WITHOUT%0A# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the%0A# License for the specific language governing permissions and limitations%0A# under the License.%0A%0Afrom tempest.lib import decorators%0A%0Afrom senlin.tests.tempest.api import base%0A%0A%0Aclass TestPolicyType(base.BaseSenlinTest):%0A%0A    @decorators.idempotent_id('72cc0347-3eab-4cf6-b1ee-531b11f20550')%0A    def test_policy_type_list(self):%0A        res = self.client.list_objs('policy-types')%0A%0A        # Verify resp of policy type list API%0A        self.assertEqual(200, res%5B'status'%5D)%0A        self.assertIsNotNone(res%5B'body'%5D)%0A        policy_types = res%5B'body'%5D%0A        for policy_type in policy_types:%0A            self.assertIn('name', policy_type)%0A%0A    @decorators.idempotent_id('57791ed7-7f57-4369-ba6e-7e039169ebdc')%0A    def test_policy_type_show(self):%0A        res = self.client.get_obj('policy-types', 'senlin.policy.deletion-1.0')%0A%0A        # Verify resp of policy type show API%0A        self.assertEqual(200, res%5B'status'%5D)%0A        self.assertIsNotNone(res%5B'body'%5D)%0A        policy_type = res%5B'body'%5D%0A        for key in %5B'name', 'schema'%5D:%0A            self.assertIn(key, policy_type)%0A        self.assertEqual('senlin.policy.deletion-1.0', policy_type%5B'name'%5D)%0A

Add API tests for policy type list/show