diff --git a/heat/engine/resources/openstack/designate/domain.py b/heat/engine/resources/openstack/designate/domain.py index 62ea7025a2..ec3acfc2ad 100644 --- a/heat/engine/resources/openstack/designate/domain.py +++ b/heat/engine/resources/openstack/designate/domain.py @@ -28,7 +28,10 @@ class DesignateDomain(resource.Resource): """ support_status = support.SupportStatus( - version='5.0.0') + status=support.DEPRECATED, + version='8.0.0', + message=_('Use OS::Designate::Zone instead.'), + previous_status=support.SupportStatus(version='5.0.0')) entity = 'domains' diff --git a/heat/engine/resources/openstack/designate/record.py b/heat/engine/resources/openstack/designate/record.py index 323dfc9afc..148bab8377 100644 --- a/heat/engine/resources/openstack/designate/record.py +++ b/heat/engine/resources/openstack/designate/record.py @@ -29,7 +29,10 @@ class DesignateRecord(resource.Resource): """ support_status = support.SupportStatus( - version='5.0.0') + status=support.DEPRECATED, + version='8.0.0', + message=_('Use OS::Designate::RecordSet instead.'), + previous_status=support.SupportStatus(version='5.0.0')) entity = 'records' diff --git a/heat/tests/engine/test_resource_type.py b/heat/tests/engine/test_resource_type.py index 4e70fafa7e..dc3a2b042c 100644 --- a/heat/tests/engine/test_resource_type.py +++ b/heat/tests/engine/test_resource_type.py @@ -43,7 +43,9 @@ class ResourceTypeTest(common.HeatTestCase): mock_is_service_available): mock_is_service_available.return_value = (True, None) resources = self.eng.list_resource_types(self.ctx, "DEPRECATED") - self.assertEqual(set(['OS::Heat::HARestarter', + self.assertEqual(set(['OS::Designate::Domain', + 'OS::Designate::Record', + 'OS::Heat::HARestarter', 'OS::Neutron::HealthMonitor', 'OS::Neutron::LoadBalancer', 'OS::Neutron::Pool',