Add check service status for Designate
In Designatev2 module we check service status by compare `updated_at`
field and current system date plus delta time, that we add for service
response.
We do it becauce designate 'v2/service_statuses'show the list of services
running, and when they last reported as running.
Upstream releasenotes link:
https://github.com/openstack/designate/blob
/6a368fb5d3cc70d73820d8f613ceaad28e5f3f0c/releasenotes/notes
/service-status-ab0e696c8f5fdef8.yaml
Change-Id: Ic888cf249b00cc6bc8af58219d206412c07b6512
Related-Prod: PROD-25159 (PROD:25159)
diff --git a/_modules/designatev2/__init__.py b/_modules/designatev2/__init__.py
index 0becffe..e2379fa 100644
--- a/_modules/designatev2/__init__.py
+++ b/_modules/designatev2/__init__.py
@@ -7,8 +7,11 @@
from designatev2 import lists
from designatev2 import zones
+from designatev2 import services
zone_list = lists.zone_list
+status_list = lists.status_list
+service_wait = services.wait_for_services
zone_create = zones.zone_create
zone_get_details = zones.zone_get_details
zone_get_name_servers = zones.zone_get_name_servers
@@ -16,7 +19,7 @@
zone_delete = zones.zone_delete
-__all__ = ('zone_list', 'zone_create', 'zone_delete', 'zone_update',
+__all__ = ('zone_list', 'status_list', 'service_wait', 'zone_create', 'zone_delete', 'zone_update',
'zone_get_details', 'zone_get_name_servers',)