mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-19 01:40:13 +00:00
Merge pull request #115856 from lanycrost/e2e-115780-grpc-probe-tests
Promote gRPC probe e2e test to Conformance
This commit is contained in:
commit
da87af638f
16
test/conformance/testdata/conformance.yaml
vendored
16
test/conformance/testdata/conformance.yaml
vendored
@ -2185,6 +2185,14 @@
|
|||||||
restart count MUST remain zero.
|
restart count MUST remain zero.
|
||||||
release: v1.9
|
release: v1.9
|
||||||
file: test/e2e/common/node/container_probe.go
|
file: test/e2e/common/node/container_probe.go
|
||||||
|
- testname: Pod liveness probe, using grpc call, success
|
||||||
|
codename: '[sig-node] Probing container should *not* be restarted with a GRPC liveness
|
||||||
|
probe [NodeConformance] [Conformance]'
|
||||||
|
description: A Pod is created with liveness probe on grpc service. Liveness probe
|
||||||
|
on this endpoint will not fail. When liveness probe does not fail then the restart
|
||||||
|
count MUST remain zero.
|
||||||
|
release: v1.23
|
||||||
|
file: test/e2e/common/node/container_probe.go
|
||||||
- testname: Pod liveness probe, using local file, no restart
|
- testname: Pod liveness probe, using local file, no restart
|
||||||
codename: '[sig-node] Probing container should *not* be restarted with a exec "cat
|
codename: '[sig-node] Probing container should *not* be restarted with a exec "cat
|
||||||
/tmp/health" liveness probe [NodeConformance] [Conformance]'
|
/tmp/health" liveness probe [NodeConformance] [Conformance]'
|
||||||
@ -2211,6 +2219,14 @@
|
|||||||
killed and restarted incrementing restart count to 1.
|
killed and restarted incrementing restart count to 1.
|
||||||
release: v1.9
|
release: v1.9
|
||||||
file: test/e2e/common/node/container_probe.go
|
file: test/e2e/common/node/container_probe.go
|
||||||
|
- testname: Pod liveness probe, using grpc call, failure
|
||||||
|
codename: '[sig-node] Probing container should be restarted with a GRPC liveness
|
||||||
|
probe [NodeConformance] [Conformance]'
|
||||||
|
description: A Pod is created with liveness probe on grpc service. Liveness probe
|
||||||
|
on this endpoint should fail because of wrong probe port. When liveness probe
|
||||||
|
does fail then the restart count should +1.
|
||||||
|
release: v1.23
|
||||||
|
file: test/e2e/common/node/container_probe.go
|
||||||
- testname: Pod liveness probe, using local file, restart
|
- testname: Pod liveness probe, using local file, restart
|
||||||
codename: '[sig-node] Probing container should be restarted with a exec "cat /tmp/health"
|
codename: '[sig-node] Probing container should be restarted with a exec "cat /tmp/health"
|
||||||
liveness probe [NodeConformance] [Conformance]'
|
liveness probe [NodeConformance] [Conformance]'
|
||||||
|
@ -520,7 +520,7 @@ var _ = SIGDescribe("Probing container", func() {
|
|||||||
Testname: Pod liveness probe, using grpc call, success
|
Testname: Pod liveness probe, using grpc call, success
|
||||||
Description: A Pod is created with liveness probe on grpc service. Liveness probe on this endpoint will not fail. When liveness probe does not fail then the restart count MUST remain zero.
|
Description: A Pod is created with liveness probe on grpc service. Liveness probe on this endpoint will not fail. When liveness probe does not fail then the restart count MUST remain zero.
|
||||||
*/
|
*/
|
||||||
ginkgo.It("should *not* be restarted with a GRPC liveness probe [NodeConformance]", func(ctx context.Context) {
|
framework.ConformanceIt("should *not* be restarted with a GRPC liveness probe [NodeConformance]", func(ctx context.Context) {
|
||||||
livenessProbe := &v1.Probe{
|
livenessProbe := &v1.Probe{
|
||||||
ProbeHandler: v1.ProbeHandler{
|
ProbeHandler: v1.ProbeHandler{
|
||||||
GRPC: &v1.GRPCAction{
|
GRPC: &v1.GRPCAction{
|
||||||
@ -543,7 +543,7 @@ var _ = SIGDescribe("Probing container", func() {
|
|||||||
Description: A Pod is created with liveness probe on grpc service. Liveness probe on this endpoint should fail because of wrong probe port.
|
Description: A Pod is created with liveness probe on grpc service. Liveness probe on this endpoint should fail because of wrong probe port.
|
||||||
When liveness probe does fail then the restart count should +1.
|
When liveness probe does fail then the restart count should +1.
|
||||||
*/
|
*/
|
||||||
ginkgo.It("should be restarted with a GRPC liveness probe [NodeConformance]", func(ctx context.Context) {
|
framework.ConformanceIt("should be restarted with a GRPC liveness probe [NodeConformance]", func(ctx context.Context) {
|
||||||
livenessProbe := &v1.Probe{
|
livenessProbe := &v1.Probe{
|
||||||
ProbeHandler: v1.ProbeHandler{
|
ProbeHandler: v1.ProbeHandler{
|
||||||
GRPC: &v1.GRPCAction{
|
GRPC: &v1.GRPCAction{
|
||||||
|
Loading…
Reference in New Issue
Block a user