Integration test for the 'upgrade' command#2679
Conversation
|
Integration test results for 377073a: fail 😕 |
377073a to
71e1c67
Compare
|
Integration test results for 71e1c67: fail 😕 |
71e1c67 to
17a1a55
Compare
|
Integration test results for 17a1a55: fail 😕 |
17a1a55 to
c4f4715
Compare
|
Integration test results for c4f4715: fail 😕 |
dc6475f to
40917f9
Compare
|
Integration test results for 40917f9: fail 😕 |
40917f9 to
304d15b
Compare
|
Integration test results for 304d15b: fail 😕 |
304d15b to
5252609
Compare
|
Integration test results for 5252609: fail 😕 |
5252609 to
b488ed8
Compare
|
Integration test results for b488ed8: fail 😕 |
siggy
left a comment
There was a problem hiding this comment.
awesome!
had a couple comments around the --proxy-auto-inject flag, but overall this looks (and works) great!
=== PASS: all tests passed
b488ed8 to
dfd72aa
Compare
| printf "Running test [%s] %s\\n" "$(basename "$1")" "$2" | ||
| go test -v "$1" --linkerd="$linkerd_path" --linkerd-namespace="$linkerd_namespace" --k8s-context="$k8s_context" --integration-tests "$2" | ||
| filename="$1" | ||
| shift |
| shift | ||
|
|
||
| printf "Running test [%s] %s\\n" "$(basename "$filename")" "$@" | ||
| go test -v "$filename" --linkerd="$linkerd_path" --k8s-context="$k8s_context" --integration-tests "$@" |
There was a problem hiding this comment.
Replaced the "$2" with "$@", because the former converts multiple arguments into one long, space-delimited argument. For example, when running run_test filename --linkerd-namespace=linkerd --proxy-auto-inject, the testutil.TestHelper ends up treating the linkerd namespace as linkerd --proxy-auto-inject.
There was a problem hiding this comment.
Also, removed the --linkerd-namespace="$linkerd_namespace" argument. This should be part of $@, instead of relying on the global $linkerd_namespace variable. This was problematic for upgrade and auto-inject test cases which depend on the control plane in a different namespace.
|
Integration test results for dfd72aa: fail 😕 |
dfd72aa to
cd843e1
Compare
|
Integration test results for cd843e1: success 🎉 |
siggy
left a comment
There was a problem hiding this comment.
looks good! one more nit then 🚢 👍
Signed-off-by: Ivan Sim <[email protected]>
Signed-off-by: Ivan Sim <[email protected]>
Signed-off-by: Ivan Sim <[email protected]>
cd843e1 to
bcf9ff4
Compare
|
Integration test results for bcf9ff4: success 🎉 |
In #2679 we introduced an upgrade integration test. At the time we only supported upgrading from a recent edge. Since that PR, a stable build was released supporting upgrade. Modify the upgrade integration test to upgrade from the latest stable rather than latest edge. This fulfills the original intent of #2669. Also add some known k8s event warnings. Signed-off-by: Andrew Seigner <[email protected]>
In #2679 we introduced an upgrade integration test. At the time we only supported upgrading from a recent edge. Since that PR, a stable build was released supporting upgrade. Modify the upgrade integration test to upgrade from the latest stable rather than latest edge. This fulfills the original intent of #2669. Also add some known k8s event warnings. Signed-off-by: Andrew Seigner <[email protected]>
In #2679 we introduced an upgrade integration test. At the time we only supported upgrading from a recent edge. Since that PR, a stable build was released supporting upgrade. Modify the upgrade integration test to upgrade from the latest stable rather than latest edge. This fulfills the original intent of #2669. Also add some known k8s event warnings. Signed-off-by: Andrew Seigner <[email protected]>
The extra steps to download and install an edge release increases the test duration by less than a minute, on my machine:
This branch:
master:Fixes #2669
Signed-off-by: Ivan Sim [email protected]