Commit Graph

15 Commits

Author SHA1 Message Date
Lukáš Piwowarski 4f2367f64a Fix checking of the [dns].nameservers value
This patch [1] introduced checking whether the CONF.dns.nameservers
is empty. If the CONF.dns.nameservers value is empty then the
initialization of the QueryClient fails. This change makes the majority
of designate-tempest-plugin tests fail even tests that do not use the
QueryClient.

This patch introduces three changes:

1) ValueError is raised only when the query() function is called so
   that only tests that actually use the query() function fail.

2) wait_for_query() function is fixed so that it never succeeds when the
   CONF.dns.nameservers value is empty.

3) Skip tests that rely upon [dns].nameserver value.

[1] https://review.opendev.org/c/openstack/designate-tempest-plugin/+/860116

Change-Id: Iedd151b2e47ed62adc168a97cb6021ccb47abb0f
2022-11-07 17:24:05 +01: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
Michael Johnson 8e14049951 Fix waiters to raise on resources going to ERROR
A previous patch[1] updated the wait_for_zone_404 to raise an execption
when the zone goes to ERROR.
This patch updates the rest of the waiters to also abort waiting if the
resource goes into the ERROR status.

[1] https://review.opendev.org/c/openstack/designate-tempest-plugin/+/820075

Change-Id: I5d1e549ccd75fbda518e8851430f58cfa849bd97
2022-01-31 23:25:19 +00:00
Zuul 8c553599c9 Merge "Stabilizing “PTR record” tests suite and adding new test cases" 2021-12-08 16:48:21 +00:00
Michael Johnson 97cab83916 Abort wait for 404 if the status changes to ERROR
This patch enhances the NotFound/404 waiter to not continue to wait
for a 404 if the zone goes into status ERROR.

Change-Id: I27d5d654b2b2b2b4cd8b8e85fdb1d7b1e4162516
2021-12-01 21:54: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
Michael Johnson a3a236331c Make the API tests compatible with scoped tokens
This patch makes the API tests compatible with keystone scoped
tokens and the new RBAC defaults.

For example, admin system scoped tokens do not have a project_id associated
with them requiring some tests to be updated to not assume the admin
credential always has a project_id.

This patch also makes some sections consistently ordered across files.

Change-Id: Ie2c7402967f40bb90e0d97dad1c3d59f82cb6d80
2021-09-23 21:48:41 +00:00
Jens Harbott d8728b4927 Fix error when creating TimeoutException
We need to have a valid format specifier. Currently this produces:

ValueError: unsupported format character 'w' (0x77) at index 50

[0] http://logs.openstack.org/94/561194/5/check/designate-base/401ff70/testr_results.html.gz

Change-Id: Ibb500c3ed26e23e7770901fa85e6e5bdbb15d741
2018-04-16 09:38:34 +00:00
ZhaoBo ade0492d7c Use the new tempest module
tempest.lib.common.utils.misc.find_test_caller has been moved into the
tempest.lib.common.utils.test_utils module. We should update the related
code which call it.

Change-Id: I5b6611c0eaeaa2a4eea8fafaf0054c5e9bb44467
2017-02-14 01:29:07 +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
Paul Glass 7e2a640502 Add a zone export scenario test
This renames a couple of the zone export client methods. It also
fixes an issue with the (newly named) `show_exported_zone` function
which wasn't passing the right number of arguments.

Change-Id: Ie0cce8710e0ef17dc391cb5bdd150a63b57d2f72
2016-06-02 14:38:52 +00:00
Paul Glass cf98c2691d Add a client for querying nameservers
Change-Id: I2d2eedcd162e7aeac4f3c9c92342bff448b4a5f5
2016-05-13 22:12:10 +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
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