Promote container runtime e2e verifying non-default termination message path

This commit is contained in:
Mayank Gaikwad 2019-04-04 07:09:17 +05:30
parent bbdba2bd21
commit 295f43b1fa
2 changed files with 8 additions and 2 deletions

View File

@ -147,6 +147,7 @@ test/e2e/common/projected_secret.go: "should be consumable from pods in volume w
test/e2e/common/projected_secret.go: "should be consumable in multiple volumes in a pod"
test/e2e/common/projected_secret.go: "optional updates should be reflected in volume"
test/e2e/common/runtime.go: "should run with the expected status"
test/e2e/common/runtime.go: "should report termination message if TerminationMessagePath is set as non-root user and at a non-default path"
test/e2e/common/secrets.go: "should be consumable from pods in env vars"
test/e2e/common/secrets.go: "should be consumable via the environment"
test/e2e/common/secrets_volume.go: "should be consumable from pods in volume"

View File

@ -174,8 +174,13 @@ while true; do sleep 1; done
matchTerminationMessage(container, v1.PodSucceeded, Equal("DONE"))
})
It("should report termination message [LinuxOnly] if TerminationMessagePath is set as non-root user and at a non-default path [NodeConformance]", func() {
// Cannot mount files in Windows Containers.
/*
Release: v1.15
Name: Container Runtime, TerminationMessagePath, non-root user and non-default path
Description: Create a pod with a container to run it as a non-root user with a custom TerminationMessagePath set. Pod redirects the output to the provided path successfully. When the container is terminated, the termination message MUST match the expected output logged in the provided custom path.
[LinuxOnly]: Tagged LinuxOnly due to use of 'uid' and unable to mount files in Windows Containers.
*/
framework.ConformanceIt("should report termination message [LinuxOnly] if TerminationMessagePath is set as non-root user and at a non-default path [NodeConformance]", func() {
container := v1.Container{
Image: framework.BusyBoxImage,
Command: []string{"/bin/sh", "-c"},