4 Commits

Author SHA1 Message Date
Zuul
3675bd53b0 Merge "New API test cases for a Zone test suite." 2021-05-11 16:48:32 +00:00
Arkady Shtempler
729acd3b08 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
2021-05-04 12:26:42 +03:00
Arkady Shtempler
40322f3c6b Adding four new test cases to "import zone" test suite
1) "test_create_zone_import_invalid_ttl"
   Use invalid TTL value to create zone import.
   Expected: should fail.

2) "test_create_zone_import_invalid_name"
   Use invalid name to create zone import.
   Expected: should fail

3) "test_show_import_impersonate_another_project"
   Use admin client to impersonate another project and to
   show created zone imports.
   Note: test is based on "x-auth-sudo-project-id" HTTP header.

4) "test_list_import_zones_all_projects"
   Use admin client to list all created zone imports.
   Note: test is based on "x-auth-all-projects" HTTP header.

Change-Id: Icca248d21ccb495d438ff828a79c0894690792f1
2021-05-04 10:58:06 +03:00
Arkady Shtempler
5e9466dd67 New API test - test_list_service_statuses
Test scenario:
  Initiate "Service Statuses" API request and make sure that:
  1) All mandatory services are listed in API responce
  2) Each listed service is in "UP" status

Change-Id: Ib11297d5e17df8caf9e8b533c3dccdbe97899dec
2021-04-28 18:35:54 +03:00