Skip to content
This repository has been archived by the owner on May 16, 2023. It is now read-only.

[elasticsearch] add value to disable tests #1116

Merged
merged 3 commits into from
Jul 7, 2021

Conversation

nflaig
Copy link
Contributor

@nflaig nflaig commented Mar 18, 2021

It should be possible to disable the tests of the chart. This is especially important if the chart is used as a subchart which means the test are also executed if you run helm test. For some users it might not be desirable to run the test provided by the elastic helm chart, the value gives the user of the chart the option to configure this.

  • Chart version not bumped (the versions are all bumped and released at the same time)
  • README.md updated with any new values or changes
  • Updated template tests in ${CHART}/tests/*.py
  • Updated integration tests in ${CHART}/examples/*/test/goss.yaml

@elasticmachine
Copy link
Collaborator

Since this is a community submitted pull request, a Jenkins build has not been kicked off automatically. Can an Elastic organization member please verify the contents of this patch and then kick off a build manually?

@cla-checker-service
Copy link

cla-checker-service bot commented Mar 18, 2021

💚 CLA has been signed

@nflaig nflaig force-pushed the feature/disable_tests branch from c840c9d to 04c3a5b Compare March 18, 2021 20:51
Copy link
Member

@jmlrt jmlrt left a comment

Choose a reason for hiding this comment

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

Thanks for this PR, can you update the README with this new value?

@jmlrt jmlrt added elasticsearch enhancement New feature or request labels Apr 12, 2021
@nflaig nflaig force-pushed the feature/disable_tests branch from 04c3a5b to a6490b8 Compare April 12, 2021 21:27
@nflaig nflaig force-pushed the feature/disable_tests branch from a6490b8 to 3a87fe8 Compare April 12, 2021 21:29
@nflaig
Copy link
Contributor Author

nflaig commented Apr 12, 2021

@jmlrt Thanks again for the review! I updated the README with the new value

@nflaig
Copy link
Contributor Author

nflaig commented Jun 24, 2021

@jmlrt any update on this? Let me know if I should apply further changes

jmlrt
jmlrt previously approved these changes Jul 7, 2021
Copy link
Member

@jmlrt jmlrt left a comment

Choose a reason for hiding this comment

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

Fixed the conflict. Change LGTM. As a minor improvement, I think it could be great to also add a {{- if .Values.tests.enabled -}} condition to not print test command when the test is disabled.

2. Test cluster health using Helm test.
$ helm --namespace={{ .Release.Namespace }} test {{ .Release.Name }}

Copy link
Member

@jmlrt jmlrt left a comment

Choose a reason for hiding this comment

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

LGTM⛴

@jmlrt
Copy link
Member

jmlrt commented Jul 7, 2021

jenkins test this please

@jmlrt jmlrt merged commit 13c7014 into elastic:master Jul 7, 2021
jmlrt added a commit to jmlrt/helm-charts that referenced this pull request Sep 13, 2021
* [elasticsearch] add value to disable tests

Signed-off-by: nflaig <[email protected]>

* [elasticsearch] add condition to not print test command when the test is disabled

Signed-off-by: nflaig <[email protected]>

Co-authored-by: Julien Mailleret <[email protected]>
jmlrt added a commit to jmlrt/helm-charts that referenced this pull request Sep 13, 2021
* [elasticsearch] add value to disable tests

Signed-off-by: nflaig <[email protected]>

* [elasticsearch] add condition to not print test command when the test is disabled

Signed-off-by: nflaig <[email protected]>

Co-authored-by: Julien Mailleret <[email protected]>
jmlrt added a commit to jmlrt/helm-charts that referenced this pull request Sep 13, 2021
* [elasticsearch] add value to disable tests

Signed-off-by: nflaig <[email protected]>

* [elasticsearch] add condition to not print test command when the test is disabled

Signed-off-by: nflaig <[email protected]>

Co-authored-by: Julien Mailleret <[email protected]>
jmlrt added a commit that referenced this pull request Sep 21, 2021
* [elasticsearch] add value to disable tests

Signed-off-by: nflaig <[email protected]>

* [elasticsearch] add condition to not print test command when the test is disabled

Signed-off-by: nflaig <[email protected]>

Co-authored-by: Julien Mailleret <[email protected]>

Co-authored-by: Nico Flaig <[email protected]>
@jmlrt jmlrt added the v6.8.19 label Sep 21, 2021
jmlrt added a commit that referenced this pull request Sep 21, 2021
* [elasticsearch] add value to disable tests

Signed-off-by: nflaig <[email protected]>

* [elasticsearch] add condition to not print test command when the test is disabled

Signed-off-by: nflaig <[email protected]>

Co-authored-by: Julien Mailleret <[email protected]>

Co-authored-by: Nico Flaig <[email protected]>
jmlrt added a commit that referenced this pull request Sep 21, 2021
* [elasticsearch] add value to disable tests

Signed-off-by: nflaig <[email protected]>

* [elasticsearch] add condition to not print test command when the test is disabled

Signed-off-by: nflaig <[email protected]>

Co-authored-by: Julien Mailleret <[email protected]>

Co-authored-by: Nico Flaig <[email protected]>
jmlrt added a commit to jmlrt/helm-charts that referenced this pull request Sep 22, 2021
* [elasticsearch] add value to disable tests

Signed-off-by: nflaig <[email protected]>

* [elasticsearch] add condition to not print test command when the test is disabled

Signed-off-by: nflaig <[email protected]>

Co-authored-by: Julien Mailleret <[email protected]>
jmlrt added a commit to jmlrt/helm-charts that referenced this pull request Sep 22, 2021
* [elasticsearch] add value to disable tests

Signed-off-by: nflaig <[email protected]>

* [elasticsearch] add condition to not print test command when the test is disabled

Signed-off-by: nflaig <[email protected]>

Co-authored-by: Julien Mailleret <[email protected]>
jmlrt added a commit that referenced this pull request Sep 22, 2021
* [elasticsearch] add value to disable tests

Signed-off-by: nflaig <[email protected]>

* [elasticsearch] add condition to not print test command when the test is disabled

Signed-off-by: nflaig <[email protected]>

Co-authored-by: Julien Mailleret <[email protected]>

Co-authored-by: Nico Flaig <[email protected]>
jmlrt added a commit that referenced this pull request Sep 22, 2021
* [elasticsearch] add value to disable tests

Signed-off-by: nflaig <[email protected]>

* [elasticsearch] add condition to not print test command when the test is disabled

Signed-off-by: nflaig <[email protected]>

Co-authored-by: Julien Mailleret <[email protected]>
@jmlrt jmlrt mentioned this pull request Mar 8, 2022
@jmlrt jmlrt mentioned this pull request Apr 21, 2022
This was referenced Sep 14, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants