Add integration test for upgrading from edge#4557
Merged
Conversation
Signed-off-by: Kevin Leimkuhler <[email protected]>
Signed-off-by: Kevin Leimkuhler <[email protected]>
Signed-off-by: Kevin Leimkuhler <[email protected]>
alpeb
reviewed
Jun 8, 2020
Member
alpeb
left a comment
There was a problem hiding this comment.
Thanks @kleimkuhler. It seems this requires some sort of Github admin setting to be tweaked in order to run?
Note that this also fixes #4472
Signed-off-by: Kevin Leimkuhler <[email protected]>
…rade-edge Signed-off-by: Kevin Leimkuhler <[email protected]>
Signed-off-by: Kevin Leimkuhler <[email protected]>
Signed-off-by: Kevin Leimkuhler <[email protected]>
Signed-off-by: Kevin Leimkuhler <[email protected]>
Signed-off-by: Kevin Leimkuhler <[email protected]>
Member
|
This might depend on #4571 in order to pass, so I'm merging that one now. |
…rade-edge Signed-off-by: Kevin Leimkuhler <[email protected]>
alpeb
reviewed
Jun 8, 2020
Signed-off-by: Kevin Leimkuhler <[email protected]>
Signed-off-by: Kevin Leimkuhler <[email protected]>
Contributor
|
@kleimkuhler what do we need to do to get this merged? |
Contributor
Author
|
@grampelberg It needs to be admin merged and then the expected checks need to be updated in GitHub settings. This PR changes a check name from |
Contributor
|
@admc can you help out? |
Merged
kleimkuhler
added a commit
that referenced
this pull request
Jun 18, 2020
## Problem #4557 changed the name of the function that `helm_upgrade_integration_tests` uses. `install_stable()` was renamed to `latest_release_channel()` and now takes an argument for specifying either `edge` or `stable`. `run_helm_upgrade_test` is a function used by the helm upgrade integration test and was not properly updated to use `latest_release_channel()`. This silently passed integration tests because `run_helm_upgrade_test` started passing an empty string for the version to upgrade from, which results in the default behavior of `install_test.go`--and therefore still passes. ## Solution `run_helm_upgrade_test` now uses `latest_release_channel()` and passes the proper argument. Additionally, it checks that the version returned from `latest_release_channel()` is not empty. If it is empty, it exits the test. This ensures something like this does happen in the future. Signed-off-by: Kevin Leimkuhler <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Problem
#4557 changed the name of the function that
helm_upgrade_integration_testsuses.
install_stable()was renamed tolatest_release_channel()and now takes anargument for specifying either
edgeorstable.run_helm_upgrade_testis a function used by the helm upgrade integration testand was not properly updated to use
latest_release_channel().This silently passed integration tests because
run_helm_upgrade_teststartedpassing an empty string for the version to upgrade from, which results in the
default behavior of
install_test.go--and therefore still passes.Solution
run_helm_upgrade_testnow useslatest_release_channel()and passes theproper argument.
Additionally, it checks that the version returned from
latest_release_channel()is not empty. If it is empty, it exits the test. Thisensures something like this does happen in the future.
Signed-off-by: Kevin Leimkuhler [email protected]