Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Acceptance tests in Go #1864

Merged
merged 5 commits into from
Apr 20, 2023
Merged

Acceptance tests in Go #1864

merged 5 commits into from
Apr 20, 2023

Conversation

akijakya
Copy link
Member

@akijakya akijakya commented Mar 31, 2023

Q A
Bug fix? no
New feature? no
API breaks? no
Deprecations? no
Related tickets -
License Apache 2.0

What's in this PR?

Switched from the shell script for acceptance test to go tests with the help of Terratest.
Tests are now running in a matrix of the supported k8s versions (1.25, 1.24, 1.23) and the supported Vault versions (1.13, 1.12, 1.11, 1.10) in a reduced timeframe.
Tests could also be ran locally in parallel as each test runs in its own namespace (tests unfortunately always failed for some reason when ran in parallel on Github Actions runners).

Why?

So all the supported Kubernetes and Vault versions could be tested for the same time it took previously.

Checklist

  • Code meets the Developer Guide
  • User guide and development docs updated (if needed)
  • Related Helm chart(s) updated (if needed)

To Do

  • Make sure tests run properly without flakyness

@akijakya akijakya self-assigned this Mar 31, 2023
@akijakya akijakya force-pushed the acceptance-tests-in-go branch 13 times, most recently from 8f01f14 to 0d6d785 Compare April 5, 2023 14:01
@akijakya akijakya marked this pull request as ready for review April 5, 2023 14:51
Base automatically changed from reorganise-for-testing to main April 13, 2023 08:11
Copy link
Member

@bonifaido bonifaido left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice, maybe we could add a few words to some of the READMEs how to run this locally on a user machine.

@akijakya
Copy link
Member Author

Very nice, maybe we could add a few words to some of the READMEs how to run this locally on a user machine.

I put some instructions as comment at the beginning of the test go file 🙂

@akijakya akijakya merged commit a6e1e35 into main Apr 20, 2023
@akijakya akijakya deleted the acceptance-tests-in-go branch April 20, 2023 13:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants