linkerd2/testutil
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
..
annotations.go Refactor integration tests to use annotations functions (#4341) 2020-05-08 08:41:42 -05:00
annotations_test.go Refactor integration tests to use annotations functions (#4341) 2020-05-08 08:41:42 -05:00
doc.go Introduce script to test multiple cloud providers (#2592) 2019-03-29 16:22:30 -07:00
kubernetes_helper.go Update control-plane-namespace label (#4061) 2020-02-24 12:57:28 -08:00
logs_events.go Fetch logs/events when integration test fails, not only for install tests (#4522) 2020-06-01 16:48:55 -05:00
stream.go Add integration tests for tap (#1152) 2018-06-19 14:05:36 -07:00
test_helper.go Fix mechanism to fetch logs/events upon test failures (#4538) 2020-06-04 09:11:30 -05:00