This repository has been archived by the owner on Dec 23, 2024. It is now read-only.
ci: Add GH action for running integration tests via ansible-collection-equinix #61
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.
This PR adds a GH action that will test metal-python PRs with integration tests from ansible-collectoin-equinix.
We clone the Ansible collection and then install metal-python version fetched from the PR. Then we run integration tests from Ansible collection.
This way we don't have to do an extra test suite for the generated Python SDK and we have some certainty that the relevant pieces of the generated code work.
It would be good to set User Agent for the Ansible calls. Right now it's not possible to do it over environment variables. We might need to implement settting UA over envvar in the Ansible collection.
For this to work, we also need METAL_API_TOKEN in secrets of this repo. Basically, the secrets and environments should be set just like in https://github.com/equinix-labs/ansible-collection-equinix.
@ctreatma what do you think?