mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-12 20:57:20 +00:00
Convert liveness e2e test to Go
This commit reimplements hack/e2e-suite/liveness.sh in Go as part of cmd/e2e. Tested by running it on a live cluster: $ cmd/e2e --host=https://w.x.y.z --provider=gce -t TestLivenessHttp -t TestLivenessExec I0122 08:12:53.183298 6502 liveness.go:72] Restart count of pod liveness-exec-6f917474-a251-11e4-8cc2-d4ae52bb3eea increased from 0 to 1 during the test I0122 08:13:23.605471 6502 liveness.go:72] Restart count of pod liveness-http-84d28569-a251-11e4-8cc2-d4ae52bb3eea increased from 0 to 1 during the test Also ran the full e2e suite including kube-up/kube-down to confirm it works.
This commit is contained in:
@@ -88,6 +88,8 @@ func RunE2ETests(authConfig, certDir, host, repoRoot, provider string, orderseed
|
||||
{TestPodHasServiceEnvVars, "TestPodHasServiceEnvVars"},
|
||||
{TestBasic, "TestBasic"},
|
||||
{TestPrivate, "TestPrivate"},
|
||||
{TestLivenessHttp, "TestLivenessHttp"},
|
||||
{TestLivenessExec, "TestLivenessExec"},
|
||||
}
|
||||
|
||||
// Check testList for non-existent tests and populate a StringSet with tests to run.
|
||||
|
Reference in New Issue
Block a user