k3s/test
Kubernetes Submit Queue 88704f3f2d
Merge pull request #57254 from Random-Liu/fix-e2e-test
Automatic merge from submit-queue (batch tested with PRs 55977, 56198, 57202, 57254, 57214). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

Fix e2e test cleanup.

E2E test should use `AfterEach` instead of `AddCleanupAction`.
`CleanupAction` only runs once after all tests finish https://github.com/kubernetes/kubernetes/blob/master/test/e2e/e2e.go#L258.

I hit this issue very frequently that once `Aggregator` test fails, all following tests all fail because the cleanup function does not run after the test, and namespace controller stops working with full of errors:
```
unable to retrieve the complete list of server APIs: wardle.k8s.io/v1alpha1: the server could not find the requested resource
```

Examples:
* https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/ci-cri-containerd-e2e-gci-gce/940
* https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/ci-kubernetes-e2e-gci-gce/19115
* https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/ci-kubernetes-e2e-gci-gce/18763
* https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/ci-kubernetes-e2e-gci-gce/18751

Signed-off-by: Lantao Liu <lantaol@google.com>

**Release note**:

```release-note
none
```
2017-12-17 08:26:52 -08:00
..
conformance Fix conformance testdata OWNERS file. 2017-12-06 14:27:15 -08:00
e2e Merge pull request #57254 from Random-Liu/fix-e2e-test 2017-12-17 08:26:52 -08:00
e2e_node Merge pull request #56250 from ingvagabund/extend-node-e2e-test-suite-with-containerized-kubelet 2017-12-16 07:46:38 -08:00
fixtures
images Add e2e test for when a webhook does not return. 2017-12-11 18:32:31 -08:00
integration Merge pull request #56940 from misterikkit/subTest 2017-12-16 13:49:54 -08:00
kubemark Bump addon manager version used to 6.5 2017-11-15 11:34:46 +01:00
list
soak Update generated files 2017-11-09 12:14:08 +01:00
utils use extensions client with explicit version 2017-11-22 21:18:14 +08:00
BUILD
OWNERS Add shyamjvs to test/OWNERS 2017-11-08 15:44:56 +01:00
test_owners.csv Remove hacks added for mesos 2017-12-03 13:52:30 -05:00
test_owners.json