linkerd2/test
Alejandro Pedraza c0afb443d2
Fix mechanism to fetch logs/events upon test failures (#4538)
Followup to #4522

This removes the `controlPlaneInstalled` var in `bin/install_test.go`
that flagged whether the control plane was already present in the series
of tests, whose intention was to avoid fetching the logs/events when the CP wasn't yet
there. That was done under the assumption `TestMain()` would feed that
flag to the runner for each individual test function, but it turns out
`TestMain()` only runs once per test file, and so
`controlPlaneInstalled` remained with its initial value `false`.

So now logs/events are fetched always, even if the control plane is not
there. If the CP is absent and we try fetching, we only see a `didn't
find any client-go entries` message.
2020-06-04 09:11:30 -05:00
..
edges Fix mechanism to fetch logs/events upon test failures (#4538) 2020-06-04 09:11:30 -05:00
egress Fix mechanism to fetch logs/events upon test failures (#4538) 2020-06-04 09:11:30 -05:00
endpoints Fix mechanism to fetch logs/events upon test failures (#4538) 2020-06-04 09:11:30 -05:00
externalissuer Fix mechanism to fetch logs/events upon test failures (#4538) 2020-06-04 09:11:30 -05:00
get Fix mechanism to fetch logs/events upon test failures (#4538) 2020-06-04 09:11:30 -05:00
inject Fix mechanism to fetch logs/events upon test failures (#4538) 2020-06-04 09:11:30 -05:00
routes Fix mechanism to fetch logs/events upon test failures (#4538) 2020-06-04 09:11:30 -05:00
serviceaccounts Fix mechanism to fetch logs/events upon test failures (#4538) 2020-06-04 09:11:30 -05:00
serviceprofiles Fix mechanism to fetch logs/events upon test failures (#4538) 2020-06-04 09:11:30 -05:00
stat Fix mechanism to fetch logs/events upon test failures (#4538) 2020-06-04 09:11:30 -05:00
tap Fix mechanism to fetch logs/events upon test failures (#4538) 2020-06-04 09:11:30 -05:00
testdata Add HealthChecks for Tracing Add-On (#4407) 2020-05-26 22:10:23 +05:30
tracing Fix mechanism to fetch logs/events upon test failures (#4538) 2020-06-04 09:11:30 -05:00
trafficsplit Fix mechanism to fetch logs/events upon test failures (#4538) 2020-06-04 09:11:30 -05:00
uninstall Fix mechanism to fetch logs/events upon test failures (#4538) 2020-06-04 09:11:30 -05:00
install_test.go Fix mechanism to fetch logs/events upon test failures (#4538) 2020-06-04 09:11:30 -05:00