Commit Graph

33 Commits

Author SHA1 Message Date
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
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
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 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
Aurelien Lourot fe54ebeb98 Minor improvements to keystone tests 2020-07-02 12:11:23 +02: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
Chris MacNaughton dd434e281e Add zaza namespacing, starting with openstack 2019-04-25 17:46:03 +02:00