Commit Graph

51 Commits

Author SHA1 Message Date
Liam Young 7fe5b88a69 Move wait_for_url and rename wait_for_client 2023-12-04 13:18:08 +00:00
Liam Young 969c6a8a7b Make wait_for_endpoints more robust.
As seen in Bug #2045206 wait_for_endpoints can fails if keystone
is in a transient state. This change puts tenacity around the
keystone client setup to make it more resilient.

Closes-Bug: 2045206
2023-12-01 14:42:56 +00:00
Liam Young d98638fa4b Catch ConnectFailure 2023-10-25 12:24:55 +00:00
Liam Young 8f9eff813b Fix lint 2023-10-25 12:09:50 +00:00
Liam Young baa02a30fc Catch connection errors 2023-10-25 11:47:09 +00:00
Liam Young dc3e9d399a Fix call to super()._find_keystone_v3_group 2023-10-24 13:55:50 +00:00
Liam Young 590a17dfc0 Fix http_NotFound import 2023-10-24 12:54:28 +00:00
Liam Young 4823465175 Retry on 404s for keystone ldap 2023-10-24 11:59:35 +00:00
Liam Young e3bbd947c4 Add Keystone LDAP on K8s tests
Add Keystone LDAP on K8s tests, this includes a minor refator of
the existing machine keystone LDAP tests.
2023-10-24 08:40:01 +00:00
Liam Young ea7025c058 Allow 401s when checking endpoints
Some endpoints (heat) return 401s if you try and access them
without authenticating. Given the ep has been able to verify
whether you are authenticated a 401 is ok for a rudementary
health check
2023-10-06 04:56:25 +00:00
Corey Bryant 80b10a295c Ensure keystone endpoint is available
The keystone-ldap tests are failing often due to accessing
the keystone endpoint before it is available. Adding tenacity
retries here to deal with this.
2023-03-14 13:03:03 +00:00
Liam Young f806b2aa7a Add test to scale application out and in
Add test that scales an application out and in and checks each
stage with tempest.
2023-03-07 17:04:20 +00:00
Alex Kavanagh eb4224284f Fix pep8 error in .../keystone/tests.py 2023-02-22 17:05:01 +00:00
Alex Kavanagh d19a540641 Fix mistake in which section to use for password 2023-02-21 18:38:00 +00:00
Alex Kavanagh 3bb64912e7 Another silly error - read from string rather that file. 2023-02-21 17:16:40 +00:00
Alex Kavanagh 544d0d5a7c Ensure that the ondisk glance passwords change in the conf file 2023-02-21 16:17:55 +00:00
Alex Kavanagh 4f1b0fc09f Get the password from keystone, not glance for leader-settings. 2023-02-21 15:57:37 +00:00
Alex Kavanagh 120a495f6f Switch sync_deployed to zaza.model 2023-02-21 12:58:45 +00:00
Alex Kavanagh 59632ec6f9 Fix pep8 tests 2023-02-21 12:01:14 +00:00
Alex Kavanagh 7e626bcf86 Test the keystone rotate-service-user-password action
This test, added as part of the default keystone tests, tests that the
service user password can be rotated for the glance application.
2023-02-21 11:53:00 +00:00
Liam Young 89fd74c5db Add method to check OpenStack endpoints (#953)
* Add method to check OpenStack endpoints

Add method to check OpenStack endpoints are returning acceptable
http codes. This should be used with caution as a charm whould
indicate if its payload is not ready via workload status and
workload status messages

* Fix dox string
2022-10-14 12:59:26 +01:00
Pedro Castillo 602a078faa Add rotate-admin-password functional test
Add a functional test that verifies the rotate-admin-password action
in the keystone charm.

Relevant patch in the charm-keystone repo:
https://review.opendev.org/c/openstack/charm-keystone/+/832665
2022-03-15 01:53:17 +00:00
Liam Young 24fbc068c9 Correct args to block_until_ca_exists 2021-01-24 15:27:06 +00:00
Liam Young a20733cd14 Refactor ca functions 2021-01-24 14:31:29 +00:00
Liam Young a828774c48 Handle change of CA cert.
Closes issue #487
2021-01-23 16:17:54 +00:00
arif 90aca8be5e Add ldap group/membership tests
Adds a test to check for groups that are coming from LDAP.

Adds a test to ensure that openstack is able to check the membership
of a user in the group.

Signed-off-by: Arif Ali <arif.ali@canonical.com>
2020-11-25 17:04:06 +00:00
Rodrigo Barbieri 7404b0cb9b Update Keystone LDAP tests
- Reversed ldap-config-flags vs charm configs precedence
  for https://review.opendev.org/748364
- Added new functional test to validate the precedence
- Added zaza helper function to assist handling charm configs
  that do not accept "" (like booleans and ints), and reverting
  to unset values through config_change()
- Fixed zaza reset helper function that apparently never
  worked ({}.keys() returns dict_keys which is not a sequence)
2020-11-23 12:33:32 -03:00
Hemanth Nakkina d7893798ca Add new keystone-ldap charm options in LDAP tests
New charm options for keystone-ldap are getting introdcued
as part of bug [1]. Modify the keystone ldap tests to
modify ldap options as per the new charm options.

Add ldap options to verify ldap-config-flags takes precendece
over explicit config flags.

[1] https://bugs.launchpad.net/charm-keystone-ldap/+bug/1832765
2020-10-13 05:26:32 +05:30
Liam Young 59b6c1bd35 Merge pull request #341 from openstack-charmers/lourot/keystone
Minor improvements to keystone tests
2020-07-16 13:26:09 +01:00
Liam Young 8f44ab681a Add wait_for_cacert
wait_for_cacert will wait for keystone to recieve and install
a cacert. This is particularly useful when the certificate
issuer is in a different model.
2020-07-07 09:03:36 +00:00
Aurelien Lourot fe54ebeb98 Minor improvements to keystone tests 2020-07-02 12:11:23 +02:00
David Ames 3f008fc42d Merge pull request #302 from coreycb/add-tempest-support-corey
Add tempest support
2020-06-10 08:33:18 -07:00
Corey Bryant 4e993e4251 Move add_tempest_roles to keystone setup.py 2020-06-05 19:42:25 +00:00
Frode Nordahl cbdb3086a1 keystone: expect security check no admin-token to pass
Also add test to validate that the domain named ``default``
literally has an ID of ``default``.
2020-03-11 10:58:44 +01:00
David Ames 827032b1c6 Standardize preferred-api-version as an int 2020-02-06 13:16:34 -08:00
Adam Dyess 7f82aa3a80 simplify looking for user from keystone 2020-01-29 10:30:27 -06:00
Adam Dyess 51f7f2cfa7 attempt to force ldap tests to use keystone v3 api 2020-01-29 09:17:28 -06:00
Adam Dyess 416c85b08f attempt to force keystone_v3 for ldap tests 2020-01-28 14:03:06 -06:00
Adam Dyess b080f5ff59 config_current doesn't need to flatten values to , but applying config to zaza.model does required all values are strings 2020-01-27 11:46:23 -06:00
Adam Dyess 0614ff5ad6 integrate comments from @thedac to improve waiting for stable, and some documentation issues 2020-01-24 12:59:58 -06:00
Adam Dyess 7063056844 use ':' style argument definitions rather than '@' 2020-01-24 11:23:09 -06:00
Adam Dyess 873b64cde3 improve docstring 2020-01-22 13:25:17 -06:00
Adam Dyess c76b7d423a improved docstrings for ldap tests 2020-01-22 13:20:42 -06:00
Adam Dyess b75aaa79c5 Resolve pep8 violations 2020-01-22 09:33:58 -06:00
Adam Dyess 59b06a956b resolve another suggestion from ajkavanagh 2020-01-22 09:32:17 -06:00
Adam Dyess b4f1201da2 Integrate suggestions from ajkavanagh 2020-01-22 09:30:48 -06:00
Adam Dyess 0c9e00610b wait for keystone to settle also 2020-01-21 14:43:43 -06:00
Adam Dyess ca8e1e9d5b import functional tests keystone-ldap and zaza-ify 2020-01-21 14:23:13 -06:00
Alex Kavanagh b1e6beb919 Further work to get keystone specific test to work 2019-09-25 14:43:10 +01:00
Liam Young cb6df2f689 Allow test to override application name
Allow tests to override the default application name as it may not
match what is in the tests.yaml, particularly in the case of CMR
tests.
2019-07-03 06:49:54 +01:00