1. 22 Jun, 2021 2 commits
  2. 21 Jun, 2021 2 commits
    • Michael Johnson's avatar
      Fix list-all-project tests for pagination limit · 65ebf4bb
      Michael Johnson authored
      Designate has a fairly small default pagination limit of 20.
      Some tests were making list API calls with the all-projects header,
      which with parallel test execution could cause the list to exceed the
      default pagination limit of 20. This would cause the tests to intermittently
      fail.
      This patch sets the request parameter "limit" to 1000 for these tests
      to allow for parallel test execution which may cause lists to include
      more than twenty entries.
      
      Change-Id: Ic074c2c4dc5a5f97c609aac5992f78557722bb71
      65ebf4bb
    • Erik Olof Gunnar Andersson's avatar
      Properly clean up transfer requests · fa6f78c1
      Erik Olof Gunnar Andersson authored
      Change-Id: I6697c502875f281f0174a46a725d29fadb73c754
      fa6f78c1
  3. 19 Jun, 2021 1 commit
  4. 16 Jun, 2021 2 commits
  5. 15 Jun, 2021 1 commit
  6. 26 May, 2021 1 commit
  7. 21 May, 2021 1 commit
  8. 20 May, 2021 1 commit
  9. 18 May, 2021 1 commit
  10. 17 May, 2021 2 commits
    • Arkady Shtempler's avatar
      New negative test cases for "pool" test suite · bd1d7251
      Arkady Shtempler authored
      1) "test_create_pool_invalid_name"
         Huge size name for pool creation. Expected: 400 BadRequest
      
      2) "test_create_pool_invalid_hostname_in_ns_records"
         Provided hostname is invalid. Expected: 400 BadRequest
      
      3) "test_create_pool_invalid_priority_in_ns_records"
         Provided priority is invalid. Expected: 400 BadRequest
      
      4) "test_update_pool_with_invalid_name"
         Huge size name for pool update. Expected: 400 BadRequest
      
      5) "test_update_pool_with_invalid_hostname_in_ns_records"
         Provided hostname is invalid. Expected: 400 BadRequest
      
      6) "test_update_pool_with_invalid_priority_in_ns_records"
         Provided priority is invalid. Expected: 400 BadRequest
      
      Change-Id: Id3bf2bee405006170ff69ff4af6b6379ab48736a
      bd1d7251
    • Arkady Shtempler's avatar
      New test cases for "zone transfer accept" suite. · 474df5c1
      Arkady Shtempler authored
      1) "test_create_transfer_accept_using_invalid_key"
         Try to accept zone transfer using invalid key.
         Expected: 403 Forbidden
      
      2) "test_create_transfer_accept_using_deleted_transfer_request_id"
         Try to use deleted transfer request ID, to accept zone ownership
         transfer. Expected: 404 NotFound
      
      3) "test_show_transfer_accept_impersonate_another_project"
          Use Admin tenant + "x-auth-sudo-project-id" HTTP header,
          to impersonate another project to "show" its zone
          transfer accept.
      
      Change-Id: Ib3df68a172b938b038932e4b2c85574fe1b0dcaa
      474df5c1
  11. 16 May, 2021 1 commit
  12. 13 May, 2021 1 commit
    • Arkady Shtempler's avatar
      Test cases for: "FloatingIPs PTR" resords. · 7986b469
      Arkady Shtempler authored
      1) test_set_floatingip_ptr
         Set a PTR record for the given FloatingIP.
      2) test_show_floatingip_ptr
         Shows a particular FloatingIP PTR
      3) test_list_floatingip_ptr_records
         List FloatingIP PTR records
      4) test_unset_floatingip_ptr
         Unset the PTR record for a FloatingIP
      5) test_set_floatingip_ptr_invalid_ttl
         Try to use invalid TTL to set PTR record.
         Expected 400 BadRequest
      
      Change-Id: Ib7a3b829129f2534f67c66c5f58e7c7c3c2f93c9
      7986b469
  13. 12 May, 2021 2 commits
  14. 11 May, 2021 3 commits
  15. 04 May, 2021 5 commits
    • Arkady Shtempler's avatar
      New test case for a "list export zone", filter listed results. · 5a26edcb
      Arkady Shtempler authored
      The purpose of this test is to check out that the filtering
      listed results works as expected.
      
      Change-Id: If5acf4cf853af6b7dc872bc46d6747a01124ad2d
      5a26edcb
    • Arkady Shtempler's avatar
      New API test cases for a Zone test suite. · 729acd3b
      Arkady Shtempler authored
      "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
      729acd3b
    • Arkady Shtempler's avatar
      Adding four new test cases to "import zone" test suite · 40322f3c
      Arkady Shtempler authored
      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
      40322f3c
    • Arkady Shtempler's avatar
      Negative test cases for "Create a zone" · d5ccda2b
      Arkady Shtempler authored
      1) test_no_valid_zone_name
         Attempts to create a Zone using not valid name
      2) test_no_valid_email
         Attempts to create a zone using not valid email
      3) test_no_valid_ttl
         Attempts to create a zone using not valid TTL
      4) test_huge_size_description
         Trying to create a zone with huge size description.
      
      Change-Id: Ia3bb45f3ba33e8b1b7de97bb6d04d7ed00cb7a21
      d5ccda2b
    • Arkady Shtempler's avatar
      New API test - "Get Designate Limits" · 868a840c
      Arkady Shtempler authored
      Test scenario:
        Initiate API query to retrieve Designate Limits.
        Ensure that all expected fields presents in received data.
      
      Change-Id: Ib76f30671b5695f73ccd6fe6b7eaa8932b126411
      868a840c
  16. 03 May, 2021 8 commits
  17. 29 Apr, 2021 3 commits
    • Arkady Shtempler's avatar
      Adding 4 "False Positive" test cases for a zone suite. · 4852d4f0
      Arkady Shtempler authored
      1) test_show_not_existing_zone - expected: "NotFound"
      2) test_use_invalid_id_to_show_zone - expected: "BadRequest"
      3) test_delete_non_existing_zone - expected: "NotFound"
      4) test_update_non_existing_zone - expected: "NotFound"
      
      Change-Id: I0c6751add49b18ae0e4ab3c6e75d33ae12d09078
      4852d4f0
    • Arkady Shtempler's avatar
      New test cases for "zone recordsets" test suite · 3eef0484
      Arkady Shtempler authored
      1) "test_show_recordsets_impersonate_another_project"
         As Admin tenant show recordset for another tenant
         using "x-auth-sudo-project-id" HTTP header.
      
      2) "test_admin_list_all_recordsets_for_a_project"
         As Admin tenant list all recordsets for another tenant
         using "x-auth-all-projects" HTTP header.
      
      3) "test_create_recordset_for_other_tenant"
         Try to create a recordset as Alt tenant, using a zone
         that is owned by Primary tenant.
      
      4) "test_show_recordsets_invalid_ids"
         Use invalid "zone_id" or invalid "recordset_id" to show
         a recordset. Expected: 404 NotFound
      
      Change-Id: Ieb3f19a95718baa7bcf0aaacacc424886e6feaba
      3eef0484
    • Arkady Shtempler's avatar
      Adding new test cases to: "Zone Ownership Transfers" test suite. · 5ec73286
      Arkady Shtempler authored
      1) test_show_transfer_request_impersonate_another_project
         Test is based on: "x-auth-sudo-project-id" HTTP header
      2) test_list_transfer_requests_all_projects
         Test is based on: "x-auth-all-projects" HTTP header
      3) test_zone_transfer_target_project
         Test validates that only targeted project is able to
         accept the transfer request.
      4) Improving the existing scenario test: "test_zone_transfer"
         Zone ownership transfer shouldn't work more than once.
      
      Change-Id: I1b345de2c9756ba1bcb0ec7b361c90baff3acb60
      5ec73286
  18. 28 Apr, 2021 1 commit
    • Arkady Shtempler's avatar
      New API test - test_list_service_statuses · 5e9466dd
      Arkady Shtempler authored
      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
      5e9466dd
  19. 27 Apr, 2021 1 commit
    • Arkady Shtempler's avatar
      Adding 2 new test cases into a zone suite · e87eca48
      Arkady Shtempler authored
      1) test_show_zone_impersonate_another_project
         Based on: "x-auth-all-projects" HTTP header
         This allows a user to impersonate another project
      
      2) test_list_all_projects_zones
         Based on: "x-auth-all-projects:True"
         If enabled this will show results from all projects in Designate.
         Note: this test case replaced and improved "test_get_other_tenant_zone"
         as it covers more than one single tenant in its test scenario.
      
      Change-Id: I0848299ff9f407aa7918cd12358cad4e17e71e6d
      e87eca48
  20. 25 Apr, 2021 1 commit
    • Arkady Shtempler's avatar
      Adding five test cases into the 'zone export' test suite. · 0548849c
      Arkady Shtempler authored
      1) "test_create_zone_export_using_invalid_zone_id"
         Zone export should fail if provided UUID is invalid
      
      2) "test_show_zone_export_impersonate_another_project"
         Admin user is able to impersonate another project
         and to "show" created by tenant exports.
         Note: based on: 'x-auth-sudo-project-id' HTTP header.
      
      3) "test_list_zone_exports_all_projects"
         Use admin client to list the created exports of
         all tenants.
         Note: based on: "x-auth-all-projects" HTTP header.
      
      4) "test_export_not_yours_zone"
         Each particular tenant should be able to create an export
         for his owned zones only.
      
      5) "test_create_zone_export_using_deleted_zone"
         Tenant shouldn't be able to create a zone export  for
         non-existing zone.
      
      Change-Id: I98b860fd270e4fad1ab9cc15b3fa47dcbf0361d4
      0548849c