Commit Graph

25 Commits

Author SHA1 Message Date
Michael Johnson c3adc64e44 Fix test_pool sorted list assertion failures
Some of the tests expect to be able to sort on the pool NS record priority. However, the rand_ns_records fake data generator can create NS records with equal priority which leads to undefined sort orders and ultimately invalid test failures.[2]
This patch makes sure the fake ns records created for tests never have equal priority values.

[2] https://zuul.opendev.org/t/openstack/build/69325d93f36042f390b4301cfadd3aa8/log/job-output.txt#21738

Change-Id: Ic04d1fe093dee54da64ccb238e9650ad5fc47eb8
2023-07-31 15:39:00 +00:00
Michael Johnson cc8f89b41c Add Designate hacking checks to the tempest plugin
This patch adds the Designate hacking checks to also run against
the Designate tempest plugin code to maintain consistent style
checking across the Designate repositories.

Change-Id: I8f41bb8188ba8442dbf493dac39b8601f5208938
2023-02-15 22:14:16 +00:00
Zuul 3cb3fadb48 Merge "Adds new test case to validate min_ttl equal to Zero" 2022-06-29 20:39:30 +00:00
Arkady Shtempler 4054a229f1 Adds new test case to validate min_ttl equal to Zero
1) Refactoring - moving negative test cases to the
   dedicated class
2) "test_create_zone_ttl_zero" - create a Zone with TTL:0
   and make sure that the created Zone has TTL:0

Change-Id: I96022307ef1e8deb59015c284c5fadce70720c82
2022-06-26 09:56:42 +03:00
Arkady Shtempler 356c5ae37d Adding new test cases to "quota" scenario test suite
1) test_api_export_size_quota
   Verifies: "Number of recordsets allowed in a zone export"
2) test_recordset_records_quota
   Verifies: "Number of records allowed per recordset"
3) test_zone_records_quota
   Verifies: "Number of records allowed per zone"
4) test_zone_recordsets_quota
   Verifies: "Number of records allowed per recordset"
5) test_zones_quota (modify)
   Verifies: "The number of zone allowed per project"

Change-Id: Ia89091087f004e174f38ca0685605057abbf5cdd
2022-06-14 17:48:00 +03:00
Zuul 90247e8561 Merge "Add test coverage for update: SOA and NS managed records" 2022-05-11 15:36:26 +00:00
Arkady Shtempler 6d6b27d537 New scenario test case for TLD + re-factoring
1) Moving "test_create_zone_for_not_existing_tld" from API
   to scenario: "test_create_zone_using_not_existing_tld"
   Create a Zone using not existing TLD is supposed to FAIL
2) New test case: "test_create_zone_using_existing_tld"
   Create a Zone using existing TLD is supposed to PASS
3) Using indexes instead of underscores variables
4) Adding "tld_suffix" parameter into configuration (default is: 'com')
   to avoid (Non existing TLD) issues. All tests will be using
   the same(common) TLD suffix.

Change-Id: Ie9fca2598a3eab66f9cbd718e52e575744def160
2022-04-20 11:18:47 +03:00
Arkady Shtempler ed18eaa4a8 Add test coverage for update: SOA and NS managed records
1) "test_admin_updates_soa_and_ns_recordsets"
  Admin uses "x-designate-edit-managed-records" header
  to update SOA and NS records.
  Expected: update request is getting blocked by the API

Change-Id: I4f60dfe62cfae4ffe658fc71d85cd2130054c89f
2022-02-24 12:02:30 +02:00
Zuul 8c553599c9 Merge "Stabilizing “PTR record” tests suite and adding new test cases" 2021-12-08 16:48:21 +00:00
Arkady Shtempler b8ea4cafc8 Stabilizing “PTR record” tests suite and adding new test cases
Stabilizing
1) The same TLD is used by default for all tests
2) Adding waiters for set/unset PTR records
New test cases
1) test_show_floatingip_ptr_impersonate_another_project
2) test_list_floatingip_ptr_all_projects
3) test_set_floatingip_ptr_not_existing_fip_id
4) test_set_floatingip_ptr_huge_size_description
5) test_set_floatingip_ptr_invalid_name

Note:
This tests also includes refactoring of the existing tests.
Negative logic is now removed from positive test cases and
implemented separatly in DesignatePtrRecordNegative class.

Change-Id: I64483c3d8e1ae44db7712b3e463ae4ea239a613a
2021-11-30 09:22:06 +02:00
Takashi Kajinami 299344d6f3 Use LOG.warning instead of deprecated LOG.warn
The LOG.warn method is deprecated[1] and the LOG.warning method should
be used instead.

[1] https://docs.python.org/3/library/logging.html#logging.warning

Change-Id: Ifb8e1272f8d954250d141cfa09d08bbc554de994
2021-11-29 18:22:12 +09:00
zahlabut 5260227cc7 Create "A" type recordset using a list of IPs records
Test name: test_create_A_recordset_multiply_ips
Note: this patch is also fixes missing cleanups and adds
the existing constants to be used in code.

Change-Id: I0904803f7e3ac5635babfc82f409a0e38685c9fa
2021-10-28 13:23:22 +03:00
Dmitry Galkin 9a0a360be0 Properly quote TXT/SPF sample data
(Check TXT/SPF records for RFC1035 sec. 5.1.)

Adds quotes and escape for quotes across the TXT/SPF data sets and tests.

Needed-By: https://review.openstack.org/#/c/555398
Change-Id: I5c8160a1cd4a41c4931ab852d478753bb98f4b7d
Closes-Bug: 1755788
2019-03-13 14:37:49 +00:00
Eric Larson dc715e1e35 Migrate the recordset validation functional test
This migrates the recordset validation test from designate to the
tempest plugin.

Change-Id: I4ae2dd980c1ad0547f360a9dc07f97a46146fd18
2016-08-29 12:30:17 -05:00
Graham Hayes c811498e62 Add functional testing for the v2 API quotas endpoint
This is disabled by default, I7a0b828824ad6f274d922748f5f9a68157cd939a
will enable it.

Change-Id: I06180a7402fc45940d4b312666cf2dfd33af1305
2016-07-08 13:06:44 +01:00
sonu.kumar c31108666e Add client's methods and testcases for tsigkey
Change-Id: I86cdf2b62f3586d35652891e4ace70ff8548640b
2016-05-27 14:48:04 +09:00
sonu.kumar e9785c919b Add zones ownership transfer request to Designate tempest plugin
This patch adds zone transfer_request_client's methods and tests
to Designate tempest plugin.

Partially-Implements: blueprint designate-tempest-plugin

Change-Id: I0c5b4a5796c398fb1d24cde124203c865ea21833
2016-05-17 10:56:47 +09:00
Jenkins be5d041f9b Merge "Add a config for a minimum ttl" 2016-05-12 13:15:27 +00:00
Paul Glass a3ab50c3f7 Add a config for a minimum ttl
This ensures we can specify the minimum ttl to use when creating zones
or recordsets from random ttls, which includes some refactoring to use
a single method for generating ttls.

Change-Id: I5c8620ff5a15b935ba075bec1f9750dbae4ffb70
2016-05-11 16:43:56 -05:00
sonu.kumar 2de01bef40 Add tld_client's methods and tests to Designate tempest plugin
Partially-Implements: blueprint designate-tempest-plugin

Change-Id: Ic23a9249d0cf5c34e5c2c083b465200fa6c5da66
2016-05-12 05:15:07 +09:00
sonu.kumar 4beb93cde3 Add pool_client's methods and tests to Designate tempest plugin
Partially-Implements: blueprint designate-tempest-plugin

Change-Id: Id758b52d30018a7dea363979d167a879a57f09c7
2016-05-06 08:50:56 +00:00
sonu.kumar de24d967f3 Add recordset_client's methods and tests to Designate tempest plugin
Partially-Implements: blueprint designate-tempest-plugin

Change-Id: I55ebc5210f7b1e50b59411658a1ae4d1f39a3ff4
2016-05-05 01:18:58 +09:00
Paul Glass 89edc117de Add quotas client + tests, for the admin api
Change-Id: I7743f97b919511dc0c9d06415838ab4c3dfcac33
2016-04-27 15:18:40 +00:00
sonu.kumar aec952a9ee Add zones_import_client's methods and tests to Designate tempest plugin
Partially-Implements: blueprint designate-tempest-plugin

Change-Id: If01461617020f39b4da554b127e7b5e5fd704645
2016-04-20 10:08:46 +09:00
Kiall Mac Innes 25fb29e5c8 Initial layout of Designate tempest plugin
See https://review.openstack.org/283511 for history.

Change-Id: I7733e8786d6b525a7c9a8d4f12add329cd030d9d
Partially-Implements: blueprint designate-tempest-plugin
2016-04-07 08:08:46 +01:00