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

chore(test): use vault.fullname in Helm test #912

Merged
merged 3 commits into from
Aug 23, 2023

Conversation

fty4
Copy link
Contributor

@fty4 fty4 commented Jun 14, 2023

Currently the Helm chart does not use a consistent naming convention for the testing.

When running helm test myrelease a pod with name myrelease-server-test is created.
There is no direct appearance that this is related to the vault chart in the name.

This PR changes the name to the same convention as other resources.
The name then will be e.g. myrelease-vault-server-test.


Marco Lecheler marco.lecheler@mercedes-benz.com Mercedes-Benz Tech Innovation GmbH (ProviderInformation)

@fty4 fty4 requested a review from a team June 14, 2023 12:14
Copy link
Member

@tvoran tvoran left a comment

Choose a reason for hiding this comment

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

This seems like a reasonable change, thanks for bringing it up. Could you add some tests to test/unit/server-test.bats to go along with this?

@fty4
Copy link
Contributor Author

fty4 commented Jun 21, 2023

@tvoran I've just added tests for following usecases:

  • default metadata.name: release-name-vault-server-test
  • release metadata.name vault: vault-server-test
  • release metadata.name foo: foo-vault-server-test

Copy link
Member

@tvoran tvoran left a comment

Choose a reason for hiding this comment

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

Thanks!

@tvoran tvoran merged commit ea1c369 into hashicorp:main Aug 23, 2023
10 checks passed
@tvoran tvoran mentioned this pull request Aug 23, 2023
UXabre added a commit to UXabre/vault-helm that referenced this pull request Aug 24, 2023
@fty4 fty4 deleted the chore/test-name branch August 29, 2023 10:52
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.

None yet

2 participants