pkg/test/upgrade
Chris Suszynski 6ce80a7c27
Suite for running upgrade tests in Knative components (#1652)
* Upgrade suite types and tests

* Naively fixing upgrade suite tests

* Properly implement InstallingBase, and PreUpgradeTests

* Continual tests implemented

* UpgradeWith and PostUpgradeTests implemented

* DowngradeWith and PostDowngradeTests implemented

* zaptest.Buffer race removed

* Remove barely used testify/assert

* Ensure that VerifyContinualTests is always called if continual tests started

* Prepare tests for failure assertions

* Refactor to enable failure testing

* Prepare for failure testing

* Testing suite can fail now

* Prepare a failing test suite

* Mock testing.T implemented

* Failure testing works for single point

* Split testing code to more manageable pieces

* Tests for upgrade suite are working well

* Remove confusion about StopSignal type

A StopSignal has been splitted to 2 separate type private stoppable and
a StopEvent. StopEvent contains only elements that are essential for
implementors to use *testing.T and signalize end of stop & verify
procedure to upgrade suite.

* Introducing NewBackgroundVerification and WaitForStopEvent

Functions NewBackgroundVerification and WaitForStopEvent has
been introduced to ease implementers to write a simple setup &
verify background tests.

* Rework of "Starting continual tests"

* Removal of return value from background handler

* Move stop channel to be closer to background operation

* Remove unneeded Named interface

* Documenting public types

* Fixes to satisfy golangci-lint

* Final linting fixes
2020-09-18 13:05:45 -07:00
..
asserts_test.go Suite for running upgrade tests in Knative components (#1652) 2020-09-18 13:05:45 -07:00
execute_failures_test.go Suite for running upgrade tests in Knative components (#1652) 2020-09-18 13:05:45 -07:00
functions.go Suite for running upgrade tests in Knative components (#1652) 2020-09-18 13:05:45 -07:00
functions_test.go Suite for running upgrade tests in Knative components (#1652) 2020-09-18 13:05:45 -07:00
private_types.go Suite for running upgrade tests in Knative components (#1652) 2020-09-18 13:05:45 -07:00
steps.go Suite for running upgrade tests in Knative components (#1652) 2020-09-18 13:05:45 -07:00
suite_examples_test.go Suite for running upgrade tests in Knative components (#1652) 2020-09-18 13:05:45 -07:00
suite_execution.go Suite for running upgrade tests in Knative components (#1652) 2020-09-18 13:05:45 -07:00
testing_operations_test.go Suite for running upgrade tests in Knative components (#1652) 2020-09-18 13:05:45 -07:00
testing_types_test.go Suite for running upgrade tests in Knative components (#1652) 2020-09-18 13:05:45 -07:00
types.go Suite for running upgrade tests in Knative components (#1652) 2020-09-18 13:05:45 -07:00
vars.go Suite for running upgrade tests in Knative components (#1652) 2020-09-18 13:05:45 -07:00
zaptest_buffer_test.go Suite for running upgrade tests in Knative components (#1652) 2020-09-18 13:05:45 -07:00