Commit Graph

12 Commits

Author SHA1 Message Date
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
Michael Johnson df9fda1c88 Update service client access in tempest tests
All the Designate service clients are registered via the plugin interface[1],
that way Tempest register and create the lazy initialization of registered
clients so that they can be access from there in consistent way.

But designate-tempest-client create a separate instance of those and access
instead of accessing the registered service client in Tempest. This commit
makes all the service clients access from Tempest registry and remove the
separate objects.

[1] https://github.com/openstack/designate-tempest-plugin/blob/master/designate_tempest_plugin/plugin.py#L78

Change-Id: I4b65ca16cd53ff4c6bece642764a4abe2a469c01
2021-09-23 21:02:30 +00:00
Pavlo Shchelokovskyy 8ed3b51a61 Fix quota tests for static credentials
when running tempest tests with static set of credentials Tempest does
not create new tenants on the fly, and those pre-defined tenants may alreay
have configured quotas that are different from default project ones.

For quota tests to reliaby pass we need to store the original quotas in the
beginning of the test and update to them in the cleanUp phase instead
of deleting them (which resets them to the default ones).

Change-Id: Ia1de916a97fee81148976a5b9cb134e012af8e0c
Closes-Bug: #1800470
2019-04-12 10:29:53 +03:00
Zuul 8a3b02adbd Merge "Do not create network resources for API tests" 2018-03-16 08:41:02 +00:00
Graham Hayes bbc01e3510
Fix credential naming
Change-Id: Ica935f22ed30792033c6c36742abead20de66363
2018-02-15 18:12:05 +00:00
Ritesh Anand f015ecb1de Do not create network resources for API tests
We need to call set_network_resources() from class with API tests, to
avoid creating network resources. Which are not needed for API tests.

Change-Id: Ia93303390d9887722fa2cfde7757e5e9103ae585
Closes-Bug: #1689415
2018-01-12 18:41:21 -08:00
Thomas Herve 945b9c6db1 Fix test incompatibilities with py35
This fixes 4 tests not handling bytes properly.

Change-Id: Ib35528af7da3e3eff17b0ce7995daaa263736748
Depends-On: Ifc249f36c8bb9718f4d4557acc9b0181e491b31b
2017-07-25 09:31:02 +02: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
Emilien Macchi ddb13fe2c5 Reduce the number of "smoke" tests
This reduces the number of smoke tests to < 10. It includes v1 tests, v2
tests and one scenario test to check that a zone goes to active.

Change-Id: I9233a5d783649fe2bfad8e772f4165bdc4e1c619
2016-07-07 14:33:28 +00:00
Kiall Mac Innes 24df485be7 Replace idempotent_id decorator with tempest.lib version
Useage of the tempest.lib version is preferred, as it's considered
API stable, unlike the tempest.test version.

Change-Id: Ida2efd9fdd9ce095aaa33ce41c90f93efbcf0970
2016-06-09 16:13:10 +01:00
Kiall Mac Innes 8ae796c691 Port V1 Tempest test from designate's contrib folder
These are a close to a straight port as was possible, no cleanup was
performed where it wasn't absolutly necessary.

In addition, we add flags to enable V1, V2, Admin API tests, and a
V1 servers API flag, as these tests have proved particularly
susceptible to race conditions.

Change-Id: Idc31c00c95fde96087f4f222ae9c17e554e6b1fc
2016-05-12 14:44:08 +01:00
Paul Glass 89edc117de Add quotas client + tests, for the admin api
Change-Id: I7743f97b919511dc0c9d06415838ab4c3dfcac33
2016-04-27 15:18:40 +00:00