New API test cases for a Zone test suite.
"test_get_primary_zone_nameservers"
1) Create a PRIMARY Zone
2) Retrive Zone Name Servers and validate that not empty
3) Get zone's "pool_id"
3) Make sure that the zone's Name Servers retrieved in #2
are the same as created in zone'a pool.
"test_create_zones" scenario"
1) Create PRIMARY zone and validate the creation
2) Get the Name Servers created in PRIMARY zone and extract hosts list.
Hosts list is used to provide "masters" on SECONDARY zone creation
3) Create a SECONDARY zone and validate the creation
# Note: the existing test was modified to cover both types:
PRIMARY and SECONDARY
"test_manually_trigger_update_secondary_zone_negative"
1) Create a Primary zone
2) Get the nameservers created in #1 and make sure that
those nameservers are not available (pingable)
3) Create a secondary zone
4) Manually trigger zone update and make sure that
the API fails with status code 500 as Nameservers aren’t available.
"test_zone_abandon"
1) Create a zone
2) Show a zone
3) Make sure that the created zone is in: Nameserver/BIND
4) Abandon a zone
5) Wait till a zone is removed from the Designate DB
6) Make sure that the zone is still in Nameserver/BIND
"test_zone_abandon_forbidden"
1) Create a zone
2) Show a zone
3) Make sure that the created zone is in: Nameserver/BIND
4) Abandon a zone as primary tenant (not admin)
5) Make sure that the API fails with: "403 Forbidden"
Change-Id: I6df991145b1a3a2e4e1d402dd31204a67fb45a11
diff --git a/designate_tempest_plugin/common/constants.py b/designate_tempest_plugin/common/constants.py
index 7ebcc87..02a3b1f 100644
--- a/designate_tempest_plugin/common/constants.py
+++ b/designate_tempest_plugin/common/constants.py
@@ -14,3 +14,7 @@
# API statuses
UP = 'UP'
+
+# Zone types
+PRIMARY_ZONE_TYPE = 'PRIMARY'
+SECONDARY_ZONE_TYPE = 'SECONDARY'