Commit Graph

19 Commits

Author SHA1 Message Date
Liam Young 33edff6360 Revert "Test get-csr with existing CA (#974)"
This reverts commit 58f2b88365.
2023-01-16 20:40:32 +00:00
Liam Young 58f2b88365 Test get-csr with existing CA (#974)
Check that if an existing CA is present then get-csr requires the
force flag. Test using new action name regenerate-intermediate-ca
2023-01-11 15:19:40 +00:00
Samuel Walladge d282fe264d Fix race conditions in VaultFacade
This ensures initialising and unsealing works nicely
with vault using the raft backend
(which makes race conditions evident because of the time
it takes for the raft cluster to settle).
2022-09-01 10:43:04 +09:30
Samuel Walladge a2d8e96d8e Fix test to work with vault with raft backend (#827)
The tests here run a series of commands on the vault client,
without waiting in between.
This is usually fine, but with the raft backend,
there can be delays between initialising, unsealing,
and the raft cluster settling.
During this time, most vault commands will return errors.
2022-08-24 14:04:47 +01:00
Aurelien Lourot 66d08c0866 Make vault/setup/validate_ca() more robust 2021-08-16 13:59:45 +02:00
Aurelien Lourot 65d9d78420 Merge branch 'master' into retry-with-tenacity
Change-Id: Ifac26ffb6d53d75b9dbd314693252ad8b3364c5d
2021-07-16 11:54:08 +02:00
Alex Kavanagh c6e54dd505 Clean-up/correct docstrings in vault/utils.py 2021-03-09 18:09:37 +00:00
Bartosz Woronicz d7ec4fd0b8 fix formatting issues and docstring
That fixes the issues introduced in PR #512 #517
Now flake8 should not complain
2021-03-08 16:18:52 +01:00
Bartosz "mastier" Woronicz 79a78c2ca0 fix reload test for vault (#517)
The test was failing for xenial-ha-mysql bundle
This fixes the issue for cluster vault
by picking the right vault cluster leader
to run the commands against.

Co-authored-by: Bartosz Woronicz <bartosz.woronicz@canonical.com>
2021-03-08 08:59:23 +01:00
Bartosz Woronicz 73c78a0db3 add reload and restart action tests for vault 2021-03-04 11:58:32 +01:00
Chris MacNaughton c75f2fcb6d Ensure that zaza-openstack-tests can talk to an IPv6 Keystone
When configuring the address to use to talk to Keystone,
the format_addr helper should be used to ensure that an
IPv4 or IPv6 address can be correctly handled.
2020-09-08 11:11:13 +02:00
Frode Nordahl 37311df9c2 vault: fix formatting of IP addresses to support IPv6
At present an invalid URL to Vault will be produced in the event
of the IP address used being an IPv6 address.
2020-06-06 14:40:06 +02:00
Alex Kavanagh 1919000fa4 Fix the vault pause/resume test
The pause/resume test paused the lead unit, but then checked
the first unit.  In an HA scenario, the lead unit may not be the
first unit.  This PR changes the test to check the lead unit after
the pause/resume test.

Depends On: https://github.com/openstack-charmers/zaza/pull/327
2020-02-07 10:56:52 +00:00
Liam Young 79a149bfc5 Facade for vault & basic_setup_and_unseal
Add a facade for interacting with vault and a function which
unseals vault units (useful when vault units have been rebooted).
2019-10-14 08:56:35 +00:00
Liam Young e0c10b5457 Search for vault credetials file.
During testing the vault credentials are stored on the lead unit.
Unfortunatly which unit is the designated leader can change during
the life of the test (particularly if the test involves rebooting
vault units). This change adds a function to search the units for
the credentials file rather than assuming its on the lead unit.
2019-10-14 07:50:55 +00:00
Joe Guo 09ee55efb1 use tenacity for retries
These code snippets were using a hard-coded sleep time, wrapped by a for loop
to retry, which is bad code smell.

Use tenacity retries to simplify the code, and be consistent with the
established approach to similar needs in other tests.

Closes #46

Signed-off-by: Joe Guo <guoqiao@gmail.com>
2019-09-05 00:07:21 +12:00
Ryan Beisner 9333b47a86 Flag existing time.sleep usage for refactor
https://github.com/openstack-charmers/zaza-openstack-tests/issues/46
2019-08-30 15:41:28 -05:00
Liam Young 278107e391 Merge pull request #229 from ChrisMacNaughton/bug/1826542
ensure we have a secret KV backend
2019-04-30 11:28:26 +02:00
Chris MacNaughton dd434e281e Add zaza namespacing, starting with openstack 2019-04-25 17:46:03 +02:00