Test against Ansible versions 7 and 8 #195
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Desired Outcome
We need to test the Collection against at least two supported versions of
ansible-core
. Withansible-core
2.13 approaching EOL, we should test against 2.14 and 2.15.Unit and sanity tests are currently run against 2.13 through 2.15, but we should extend this to our end-to-end tests as well.
Implemented Changes
Add Jenkins stages to run end-to-end tests against Ansible 6 (stable-2.13), 7 (stable-2.14) and 8 (stable-2.15)
Consolidate dev and test environments.
Previously there were three separate
docker-compose
environments for development, testing theconjur_variable
plugin, and testing theconjur_host_identity
role. All three environments were almost exact replicas of each other, so I decided to consolidate them into the dev env.Interesting notes:
We might be doing some unconventional things with the project-native
docker-compose
environments and the one provided byconjurdemos/conjur-intro
to enable running tests against Conjurs Open Source and Enterprise. When tests are run against Enterprise, these scripts are still using separatecompose
environments, but connecting them on the same network.To prevent context-switching between
docker-compose
environments, the dev env writes the in-use Docker network a number of CIDs to tmp files and uses those to run commondocker exec
commands.The
conjur_variable
andconjur_host_identity
test suites are distinct, and can be run against the samedocker-compose
environment without interfering with each other. Now we can parallelize all tests without doubling setup/teardown time and required resources.Connected Issue/Story
N/A
Definition of Done
At least 1 todo must be completed in the sections below for the PR to be
merged.
Changelog
CHANGELOG update
Test coverage
changes, or
Documentation
README
s) were updated in this PRBehavior
Security