Description: Make sure config map value can be used as an environment
Testname: ConfigMap, from environment field
variable in the container (on container.env field)
Description: Create a Pod with an environment variable value set using a value from ConfigMap. A ConfigMap value MUST be accessible in the container environment.
*/
*/
framework.ConformanceIt("should be consumable via environment variable [NodeConformance]",func(){
framework.ConformanceIt("should be consumable via environment variable [NodeConformance]",func(){
Description: Make sure config map without mappings works by mounting it
Testname: ConfigMap Volume, without mapping
to a volume with a custom path (mapping) on the pod with no other settings.
Description: Create a ConfigMap, create a Pod that mounts a volume and populates the volume with data stored in the ConfigMap. The ConfigMap that is created MUST be accessible to read from the newly created Pod using the volume mount. The data content of the file MUST be readable and verified and file modes MUST default to 0x644.
*/
*/
framework.ConformanceIt("should be consumable from pods in volume [NodeConformance]",func(){
framework.ConformanceIt("should be consumable from pods in volume [NodeConformance]",func(){
doConfigMapE2EWithoutMappings(f,0,0,nil)
doConfigMapE2EWithoutMappings(f,0,0,nil)
})
})
/*
/*
Testname: configmap-nomap-default-mode
Release : v1.9
Description: Make sure config map without mappings works by mounting it
Testname: ConfigMap Volume, without mapping, volume mode set
to a volume with a custom path (mapping) on the pod with defaultMode set
Description: Create a ConfigMap, create a Pod that mounts a volume and populates the volume with data stored in the ConfigMap. File mode is changed to a custom value of '0x400'. The ConfigMap that is created MUST be accessible to read from the newly created Pod using the volume mount. The data content of the file MUST be readable and verified and file modes MUST be set to the custom value of ‘0x400’
*/
*/
framework.ConformanceIt("should be consumable from pods in volume with defaultMode set [NodeConformance]",func(){
framework.ConformanceIt("should be consumable from pods in volume with defaultMode set [NodeConformance]",func(){
Description: Make sure config map without mappings works by mounting it
Testname: ConfigMap Volume, without mapping, non-root user
to a volume with a custom path (mapping) on the pod as non-root.
Description: Create a ConfigMap, create a Pod that mounts a volume and populates the volume with data stored in the ConfigMap. Pod is run as a non-root user with uid=1000. The ConfigMap that is created MUST be accessible to read from the newly created Pod using the volume mount. The file on the volume MUST have file mode set to default value of 0x644.
*/
*/
framework.ConformanceIt("should be consumable from pods in volume as non-root [NodeConformance]",func(){
framework.ConformanceIt("should be consumable from pods in volume as non-root [NodeConformance]",func(){
Description: Make sure config map works by mounting it to a volume with
Testname: ConfigMap Volume, with mapping
a custom path (mapping) on the pod with no other settings and make sure
Description: Create a ConfigMap, create a Pod that mounts a volume and populates the volume with data stored in the ConfigMap. Files are mapped to a path in the volume. The ConfigMap that is created MUST be accessible to read from the newly created Pod using the volume mount. The data content of the file MUST be readable and verified and file modes MUST default to 0x644.
the pod actually consumes it.
*/
*/
framework.ConformanceIt("should be consumable from pods in volume with mappings [NodeConformance]",func(){
framework.ConformanceIt("should be consumable from pods in volume with mappings [NodeConformance]",func(){
doConfigMapE2EWithMappings(f,0,0,nil)
doConfigMapE2EWithMappings(f,0,0,nil)
})
})
/*
/*
Testname: configmap-with-item-mode-mapped
Release : v1.9
Description: Make sure config map works with an item mode (e.g. 0400)
Testname: ConfigMap Volume, with mapping, volume mode set
for the config map item.
Description: Create a ConfigMap, create a Pod that mounts a volume and populates the volume with data stored in the ConfigMap. Files are mapped to a path in the volume. File mode is changed to a custom value of '0x400'. The ConfigMap that is created MUST be accessible to read from the newly created Pod using the volume mount. The data content of the file MUST be readable and verified and file modes MUST be set to the custom value of ‘0x400’
*/
*/
framework.ConformanceIt("should be consumable from pods in volume with mappings and Item mode set [NodeConformance]",func(){
framework.ConformanceIt("should be consumable from pods in volume with mappings and Item mode set [NodeConformance]",func(){
Description: Make sure config map works when it is mounted as non-root.
Testname: ConfigMap Volume, with mapping, non-root user
Description: Create a ConfigMap, create a Pod that mounts a volume and populates the volume with data stored in the ConfigMap. Files are mapped to a path in the volume. Pod is run as a non-root user with uid=1000. The ConfigMap that is created MUST be accessible to read from the newly created Pod using the volume mount. The file on the volume MUST have file mode set to default value of 0x644.
*/
*/
framework.ConformanceIt("should be consumable from pods in volume with mappings as non-root [NodeConformance]",func(){
framework.ConformanceIt("should be consumable from pods in volume with mappings as non-root [NodeConformance]",func(){
Description: Make sure update operation is working on config map and
Testname: ConfigMap Volume, update
the result is observed on volumes mounted in containers.
Description: The ConfigMap that is created MUST be accessible to read from the newly created Pod using the volume mount that is mapped to custom path in the Pod. When the ConfigMap is updated the change to the config map MUST be verified by reading the content from the mounted file in the Pod.
*/
*/
framework.ConformanceIt("updates should be reflected in volume [NodeConformance]",func(){
framework.ConformanceIt("updates should be reflected in volume [NodeConformance]",func(){
Description: Make sure Create, Update, Delete operations are all working
Testname: ConfigMap Volume, create, update and delete
on config map and the result is observed on volumes mounted in containers.
Description: The ConfigMap that is created MUST be accessible to read from the newly created Pod using the volume mount that is mapped to custom path in the Pod. When the config map is updated the change to the config map MUST be verified by reading the content from the mounted file in the Pod. Also when the item(file) is deleted from the map that MUST result in a error reading that item(file).
*/
*/
framework.ConformanceIt("optional updates should be reflected in volume [NodeConformance]",func(){
framework.ConformanceIt("optional updates should be reflected in volume [NodeConformance]",func(){
Description: Make sure config map works when it mounted as two different
Testname: ConfigMap Volume, multiple volume maps
volumes on the same node.
Description: The ConfigMap that is created MUST be accessible to read from the newly created Pod using the volume mount that is mapped to multiple paths in the Pod. The content MUST be accessible from all the mapped volume mounts.
*/
*/
framework.ConformanceIt("should be consumable in multiple volumes in the same pod [NodeConformance]",func(){
framework.ConformanceIt("should be consumable in multiple volumes in the same pod [NodeConformance]",func(){
Description: Make sure that pod with readiness probe should not be
Testname: Pod readiness probe, with initial delay
ready before initial delay and never restart.
Description: Create a Pod that is configured with a initial delay set on the readiness probe. Check the Pod Start time to compare to the initial delay. The Pod MUST be ready only after the specified initial delay.
*/
*/
framework.ConformanceIt("with readiness probe should not be ready before initial delay and never restart [NodeConformance]",func(){
framework.ConformanceIt("with readiness probe should not be ready before initial delay and never restart [NodeConformance]",func(){
Description: Make sure the pod is restarted with a cat /tmp/health
Testname: Pod liveness probe, using local file, restart
liveness probe.
Description: Create a Pod with liveness probe that that uses ExecAction handler to cat /temp/health file. The Container deletes the file /temp/health after 10 second, triggering liveness probe to fail. The Pod MUST now be killed and restarted incrementing restart count to 1.
*/
*/
framework.ConformanceIt("should be restarted with a exec \"cat /tmp/health\" liveness probe [NodeConformance]",func(){
framework.ConformanceIt("should be restarted with a exec \"cat /tmp/health\" liveness probe [NodeConformance]",func(){
Description: Make sure the pod is not restarted with a cat /tmp/health
Testname: Pod liveness probe, using local file, no restart
liveness probe.
Description: Pod is created with liveness probe that uses ‘exec’ command to cat /temp/health file. Liveness probe MUST not fail to check health and the restart count should remain 0.
*/
*/
framework.ConformanceIt("should *not* be restarted with a exec \"cat /tmp/health\" liveness probe [NodeConformance]",func(){
framework.ConformanceIt("should *not* be restarted with a exec \"cat /tmp/health\" liveness probe [NodeConformance]",func(){
Description: Make sure when http liveness probe fails, the pod should
Testname: Pod liveness probe, using http endpoint, restart
be restarted.
Description: A Pod is created with liveness probe on http endpoint /healthz. The http handler on the /healthz will return a http error after 10 seconds since the Pod is started. This MUST result in liveness check failure. The Pod MUST now be killed and restarted incrementing restart count to 1.
*/
*/
framework.ConformanceIt("should be restarted with a /healthz http liveness probe [NodeConformance]",func(){
framework.ConformanceIt("should be restarted with a /healthz http liveness probe [NodeConformance]",func(){
Description: Make sure when a pod gets restarted, its start count
Testname: Pod liveness probe, using http endpoint, multiple restarts (slow)
should increase.
Description: A Pod is created with liveness probe on http endpoint /healthz. The http handler on the /healthz will return a http error after 10 seconds since the Pod is started. This MUST result in liveness check failure. The Pod MUST now be killed and restarted incrementing restart count to 1. The liveness probe must fail again after restart once the http handler for /healthz enpoind on the Pod returns an http error after 10 seconds from the start. Restart counts MUST increment everytime health check fails, measure upto 5 restart.
*/
*/
framework.ConformanceIt("should have monotonically increasing restart count [Slow][NodeConformance]",func(){
framework.ConformanceIt("should have monotonically increasing restart count [Slow][NodeConformance]",func(){
Description: Make sure when http liveness probe succeeds, the pod
Testname: Pod liveness probe, using http endpoint, failure
should not be restarted.
Description: A Pod is created with liveness probe on http endpoint ‘/’. Liveness probe on this endpoint will not fail. When liveness probe does not fail then the restart count MUST remain zero.
*/
*/
framework.ConformanceIt("should *not* be restarted with a /healthz http liveness probe [NodeConformance]",func(){
framework.ConformanceIt("should *not* be restarted with a /healthz http liveness probe [NodeConformance]",func(){
Description: Make sure that the pod is restarted with a docker exec
Testname: Pod liveness probe, docker exec, restart
liveness probe with timeout.
Description: A Pod is created with liveness probe with a Exec action on the Pod. If the liveness probe call does not return within the timeout specified, liveness probe MUST restart the Pod.
*/
*/
It("should be restarted with a docker exec liveness probe with timeout ",func(){
It("should be restarted with a docker exec liveness probe with timeout ",func(){
// TODO: enable this test once the default exec handler supports timeout.
// TODO: enable this test once the default exec handler supports timeout.
Description: When a Pod is created and 'args' are provided for a
Testname: Docker containers, with arguments
Container, ensure that they take precedent to the docker image's
Description: Default command and from the docker image entrypoint MUST be used when Pod does not specify the container command but the arguments from Pod spec MUST override when specified.
default arguments, but that the default command is used.
*/
*/
framework.ConformanceIt("should be able to override the image's default arguments (docker cmd) [NodeConformance]",func(){
framework.ConformanceIt("should be able to override the image's default arguments (docker cmd) [NodeConformance]",func(){
// Note: when you override the entrypoint, the image's arguments (docker cmd)
// Note: when you override the entrypoint, the image's arguments (docker cmd)
// are ignored.
// are ignored.
/*
/*
Testname: container-with-command
Release : v1.9
Description: When a Pod is created and 'command' is provided for a
Testname: Docker containers, with command
Container, ensure that it takes precedent to the docker image's default
Description: Default command from the docker image entrypoint MUST NOT be used when Pod specifies the container command. Command from Pod spec MUST override the command in the image.
command.
*/
*/
framework.ConformanceIt("should be able to override the image's default command (docker entrypoint) [NodeConformance]",func(){
framework.ConformanceIt("should be able to override the image's default command (docker entrypoint) [NodeConformance]",func(){
Description: When a Pod is created and 'command' and 'args' are
Testname: Docker containers, with command and arguments
provided for a Container, ensure that they take precedent to the docker
Description: Default command and arguments from the docker image entrypoint MUST NOT be used when Pod specifies the container command and arguments. Command and arguments from Pod spec MUST override the command and arguments in the image.
image's default command and arguments.
*/
*/
framework.ConformanceIt("should be able to override the image's default command and arguments [NodeConformance]",func(){
framework.ConformanceIt("should be able to override the image's default command and arguments [NodeConformance]",func(){
Description: Ensure that downward API can provide pod's name, namespace
Testname: DownwardAPI, environment for name, namespace and ip
and IP address as environment variables.
Description: Downward API MUST expose Pod and Container fields as environment variables. Specify Pod Name, namespace and IP as environment variable in the Pod Spec are visible at runtime in the container.
*/
*/
framework.ConformanceIt("should provide pod name, namespace and IP address as env vars [NodeConformance]",func(){
framework.ConformanceIt("should provide pod name, namespace and IP address as env vars [NodeConformance]",func(){
Description: Ensure that downward API can provide an IP address for
Testname: DownwardAPI, environment for host ip
host node as an environment variable.
Description: Downward API MUST expose Pod and Container fields as environment variables. Specify host IP as environment variable in the Pod Spec are visible at runtime in the container.
*/
*/
framework.ConformanceIt("should provide host IP as an env var [NodeConformance]",func(){
framework.ConformanceIt("should provide host IP as an env var [NodeConformance]",func(){
@@ -40,9 +40,9 @@ var _ = Describe("[sig-storage] Downward API volume", func() {
...
@@ -40,9 +40,9 @@ var _ = Describe("[sig-storage] Downward API volume", func() {
})
})
/*
/*
Testname: downwardapi-volume-podname
Release : v1.9
Description: Ensure that downward API can provide pod's name through
Testname: DownwardAPI volume, pod name
DownwardAPIVolumeFiles.
Description: A Pod is configured with DownwardAPIVolumeSource and DownwartAPIVolumeFiles contains a item for the Pod name. The container runtime MUST be able to access Pod name from the specified path on the mounted volume.
*/
*/
framework.ConformanceIt("should provide podname only [NodeConformance]",func(){
framework.ConformanceIt("should provide podname only [NodeConformance]",func(){
@@ -54,9 +54,9 @@ var _ = Describe("[sig-storage] Downward API volume", func() {
...
@@ -54,9 +54,9 @@ var _ = Describe("[sig-storage] Downward API volume", func() {
})
})
/*
/*
Testname: downwardapi-volume-set-default-mode
Release : v1.9
Description: Ensure that downward API can set default file permission
Testname: DownwardAPI volume, volume mode 0400
mode for DownwardAPIVolumeFiles if no mode is specified.
Description: A Pod is configured with DownwardAPIVolumeSource with the volumesource mode set to -r-------- and DownwardAPIVolumeFiles contains a item for the Pod name. The container runtime MUST be able to access Pod name from the specified path on the mounted volume.
*/
*/
framework.ConformanceIt("should set DefaultMode on files [NodeConformance]",func(){
framework.ConformanceIt("should set DefaultMode on files [NodeConformance]",func(){
@@ -69,9 +69,9 @@ var _ = Describe("[sig-storage] Downward API volume", func() {
...
@@ -69,9 +69,9 @@ var _ = Describe("[sig-storage] Downward API volume", func() {
})
})
/*
/*
Testname: downwardapi-volume-set-mode
Release : v1.9
Description: Ensure that downward API can set file permission mode for
Testname: DownwardAPI volume, file mode 0400
DownwardAPIVolumeFiles.
Description: A Pod is configured with DownwardAPIVolumeSource and DownwartAPIVolumeFiles contains a item for the Pod name with the file mode set to -r--------. The container runtime MUST be able to access Pod name from the specified path on the mounted volume.
*/
*/
framework.ConformanceIt("should set mode on item file [NodeConformance]",func(){
framework.ConformanceIt("should set mode on item file [NodeConformance]",func(){
@@ -113,9 +113,9 @@ var _ = Describe("[sig-storage] Downward API volume", func() {
...
@@ -113,9 +113,9 @@ var _ = Describe("[sig-storage] Downward API volume", func() {
})
})
/*
/*
Testname: downwardapi-volume-update-label
Release : v1.9
Description: Ensure that downward API updates labels in
Testname: DownwardAPI volume, update label
DownwardAPIVolumeFiles when pod's labels get modified.
Description: A Pod is configured with DownwardAPIVolumeSource and DownwartAPIVolumeFiles contains list of items for each of the Pod labels. The container runtime MUST be able to access Pod labels from the specified path on the mounted volume. Update the labels by adding a new label to the running Pod. The new label MUST be available from the mounted volume.
*/
*/
framework.ConformanceIt("should update labels on modification [NodeConformance]",func(){
framework.ConformanceIt("should update labels on modification [NodeConformance]",func(){
labels:=map[string]string{}
labels:=map[string]string{}
...
@@ -145,9 +145,9 @@ var _ = Describe("[sig-storage] Downward API volume", func() {
...
@@ -145,9 +145,9 @@ var _ = Describe("[sig-storage] Downward API volume", func() {
})
})
/*
/*
Testname: downwardapi-volume-update-annotation
Release : v1.9
Description: Ensure that downward API updates annotations in
Testname: DownwardAPI volume, update annotations
DownwardAPIVolumeFiles when pod's annotations get modified.
Description: A Pod is configured with DownwardAPIVolumeSource and DownwartAPIVolumeFiles contains list of items for each of the Pod annotations. The container runtime MUST be able to access Pod annotations from the specified path on the mounted volume. Update the annotations by adding a new annotation to the running Pod. The new annotation MUST be available from the mounted volume.
*/
*/
framework.ConformanceIt("should update annotations on modification [NodeConformance]",func(){
framework.ConformanceIt("should update annotations on modification [NodeConformance]",func(){
annotations:=map[string]string{}
annotations:=map[string]string{}
...
@@ -179,9 +179,9 @@ var _ = Describe("[sig-storage] Downward API volume", func() {
...
@@ -179,9 +179,9 @@ var _ = Describe("[sig-storage] Downward API volume", func() {
})
})
/*
/*
Testname: downwardapi-volume-cpu-limit
Release : v1.9
Description: Ensure that downward API can provide container's CPU limit
Testname: DownwardAPI volume, CPU limits
through DownwardAPIVolumeFiles.
Description: A Pod is configured with DownwardAPIVolumeSource and DownwartAPIVolumeFiles contains a item for the CPU limits. The container runtime MUST be able to access CPU limits from the specified path on the mounted volume.
*/
*/
framework.ConformanceIt("should provide container's cpu limit [NodeConformance]",func(){
framework.ConformanceIt("should provide container's cpu limit [NodeConformance]",func(){
@@ -193,9 +193,9 @@ var _ = Describe("[sig-storage] Downward API volume", func() {
...
@@ -193,9 +193,9 @@ var _ = Describe("[sig-storage] Downward API volume", func() {
})
})
/*
/*
Testname: downwardapi-volume-memory-limit
Release : v1.9
Description: Ensure that downward API can provide container's memory
Testname: DownwardAPI volume, memory limits
limit through DownwardAPIVolumeFiles.
Description: A Pod is configured with DownwardAPIVolumeSource and DownwartAPIVolumeFiles contains a item for the memory limits. The container runtime MUST be able to access memory limits from the specified path on the mounted volume.
*/
*/
framework.ConformanceIt("should provide container's memory limit [NodeConformance]",func(){
framework.ConformanceIt("should provide container's memory limit [NodeConformance]",func(){
@@ -207,9 +207,9 @@ var _ = Describe("[sig-storage] Downward API volume", func() {
...
@@ -207,9 +207,9 @@ var _ = Describe("[sig-storage] Downward API volume", func() {
})
})
/*
/*
Testname: downwardapi-volume-cpu-request
Release : v1.9
Description: Ensure that downward API can provide container's CPU
Testname: DownwardAPI volume, CPU request
request through DownwardAPIVolumeFiles.
Description: A Pod is configured with DownwardAPIVolumeSource and DownwartAPIVolumeFiles contains a item for the CPU request. The container runtime MUST be able to access CPU request from the specified path on the mounted volume.
*/
*/
framework.ConformanceIt("should provide container's cpu request [NodeConformance]",func(){
framework.ConformanceIt("should provide container's cpu request [NodeConformance]",func(){
@@ -221,9 +221,9 @@ var _ = Describe("[sig-storage] Downward API volume", func() {
...
@@ -221,9 +221,9 @@ var _ = Describe("[sig-storage] Downward API volume", func() {
})
})
/*
/*
Testname: downwardapi-volume-memory-request
Release : v1.9
Description: Ensure that downward API can provide container's memory
Testname: DownwardAPI volume, memory request
request through DownwardAPIVolumeFiles.
Description: A Pod is configured with DownwardAPIVolumeSource and DownwartAPIVolumeFiles contains a item for the memory request. The container runtime MUST be able to access memory request from the specified path on the mounted volume.
*/
*/
framework.ConformanceIt("should provide container's memory request [NodeConformance]",func(){
framework.ConformanceIt("should provide container's memory request [NodeConformance]",func(){
@@ -235,10 +235,9 @@ var _ = Describe("[sig-storage] Downward API volume", func() {
...
@@ -235,10 +235,9 @@ var _ = Describe("[sig-storage] Downward API volume", func() {
})
})
/*
/*
Testname: downwardapi-volume-default-cpu
Release : v1.9
Description: Ensure that downward API can provide default node
Testname: DownwardAPI volume, CPU limit, default node allocatable
allocatable value for CPU through DownwardAPIVolumeFiles if CPU
Description: A Pod is configured with DownwardAPIVolumeSource and DownwartAPIVolumeFiles contains a item for the CPU limits. CPU limits is not specified for the container. The container runtime MUST be able to access CPU limits from the specified path on the mounted volume and the value MUST be default node allocatable.
limit is not specified for a container.
*/
*/
framework.ConformanceIt("should provide node allocatable (cpu) as default cpu limit if the limit is not set [NodeConformance]",func(){
framework.ConformanceIt("should provide node allocatable (cpu) as default cpu limit if the limit is not set [NodeConformance]",func(){
allocatable value for memory through DownwardAPIVolumeFiles if memory
Description: A Pod is configured with DownwardAPIVolumeSource and DownwartAPIVolumeFiles contains a item for the memory limits. memory limits is not specified for the container. The container runtime MUST be able to access memory limits from the specified path on the mounted volume and the value MUST be default node allocatable.
limit is not specified for a container.
*/
*/
framework.ConformanceIt("should provide node allocatable (memory) as default memory limit if the limit is not set [NodeConformance]",func(){
framework.ConformanceIt("should provide node allocatable (memory) as default memory limit if the limit is not set [NodeConformance]",func(){
Description: For a Pod created with an 'emptyDir' Volume with 'medium'
Testname: EmptyDir, medium memory, volume mode default
of 'Memory', ensure the volume has 0777 unix file permissions and tmpfs
Description: A Pod created with an 'emptyDir' Volume and 'medium' as 'Memory', the volume MUST have mode set as -rwxrwxrwx and mount type set to tmpfs.
mount type.
*/
*/
framework.ConformanceIt("volume on tmpfs should have the correct mode [NodeConformance]",func(){
framework.ConformanceIt("volume on tmpfs should have the correct mode [NodeConformance]",func(){
Description: For a Pod created with an 'emptyDir' Volume with 'medium'
Testname: EmptyDir, medium memory, volume mode 0644
of 'Memory', ensure a root owned file with 0644 unix file permissions
Description: A Pod created with an 'emptyDir' Volume and 'medium' as 'Memory', the volume mode set to 0644. The volume MUST have mode -rw-r--r-- and mount type set to tmpfs and the contents MUST be readable.
is created correctly, has tmpfs mount type, and enforces the permissions.
*/
*/
framework.ConformanceIt("should support (root,0644,tmpfs) [NodeConformance]",func(){
framework.ConformanceIt("should support (root,0644,tmpfs) [NodeConformance]",func(){
Description: For a Pod created with an 'emptyDir' Volume with 'medium'
Testname: EmptyDir, medium memory, volume mode 0666
of 'Memory', ensure a root owned file with 0666 unix file permissions
Description: A Pod created with an 'emptyDir' Volume and 'medium' as 'Memory', the volume mode set to 0666. The volume MUST have mode -rw-rw-rw- and mount type set to tmpfs and the contents MUST be readable.
is created correctly, has tmpfs mount type, and enforces the permissions.
*/
*/
framework.ConformanceIt("should support (root,0666,tmpfs) [NodeConformance]",func(){
framework.ConformanceIt("should support (root,0666,tmpfs) [NodeConformance]",func(){
Description: For a Pod created with an 'emptyDir' Volume with 'medium'
Testname: EmptyDir, medium memory, volume mode 0777
of 'Memory', ensure a root owned file with 0777 unix file permissions
Description: A Pod created with an 'emptyDir' Volume and 'medium' as 'Memory', the volume mode set to 0777. The volume MUST have mode set as -rwxrwxrwx and mount type set to tmpfs and the contents MUST be readable.
is created correctly, has tmpfs mount type, and enforces the permissions.
*/
*/
framework.ConformanceIt("should support (root,0777,tmpfs) [NodeConformance]",func(){
framework.ConformanceIt("should support (root,0777,tmpfs) [NodeConformance]",func(){
Description: For a Pod created with an 'emptyDir' Volume with 'medium'
Testname: EmptyDir, medium memory, volume mode 0644, non-root user
of 'Memory', ensure a user owned file with 0644 unix file permissions
Description: A Pod created with an 'emptyDir' Volume and 'medium' as 'Memory', the volume mode set to 0644. Volume is mounted into the container where container is run as a non-root user. The volume MUST have mode -rw-r--r-- and mount type set to tmpfs and the contents MUST be readable.
is created correctly, has tmpfs mount type, and enforces the permissions.
*/
*/
framework.ConformanceIt("should support (non-root,0644,tmpfs) [NodeConformance]",func(){
framework.ConformanceIt("should support (non-root,0644,tmpfs) [NodeConformance]",func(){
Description: For a Pod created with an 'emptyDir' Volume with 'medium'
Testname: EmptyDir, medium memory, volume mode 0666,, non-root user
of 'Memory', ensure a user owned file with 0666 unix file permissions
Description: A Pod created with an 'emptyDir' Volume and 'medium' as 'Memory', the volume mode set to 0666. Volume is mounted into the container where container is run as a non-root user. The volume MUST have mode -rw-rw-rw- and mount type set to tmpfs and the contents MUST be readable.
is created correctly, has tmpfs mount type, and enforces the permissions.
*/
*/
framework.ConformanceIt("should support (non-root,0666,tmpfs) [NodeConformance]",func(){
framework.ConformanceIt("should support (non-root,0666,tmpfs) [NodeConformance]",func(){
Description: For a Pod created with an 'emptyDir' Volume with 'medium'
Testname: EmptyDir, medium memory, volume mode 0777, non-root user
of 'Memory', ensure a user owned file with 0777 unix file permissions
Description: A Pod created with an 'emptyDir' Volume and 'medium' as 'Memory', the volume mode set to 0777. Volume is mounted into the container where container is run as a non-root user. The volume MUST have mode -rwxrwxrwx and mount type set to tmpfs and the contents MUST be readable.
is created correctly, has tmpfs mount type, and enforces the permissions.
*/
*/
framework.ConformanceIt("should support (non-root,0777,tmpfs) [NodeConformance]",func(){
framework.ConformanceIt("should support (non-root,0777,tmpfs) [NodeConformance]",func(){
Description: For a Pod created with an 'emptyDir' Volume, ensure a
Testname: EmptyDir, medium default, volume mode 0644
root owned file with 0644 unix file permissions is created and enforced
Description: A Pod created with an 'emptyDir' Volume, the volume mode set to 0644. The volume MUST have mode -rw-r--r-- and mount type set to tmpfs and the contents MUST be readable.
correctly.
*/
*/
framework.ConformanceIt("should support (root,0644,default) [NodeConformance]",func(){
framework.ConformanceIt("should support (root,0644,default) [NodeConformance]",func(){
Description: For a Pod created with an 'emptyDir' Volume, ensure a
Testname: EmptyDir, medium default, volume mode 0666
root owned file with 0666 unix file permissions is created and enforced
Description: A Pod created with an 'emptyDir' Volume, the volume mode set to 0666. The volume MUST have mode -rw-rw-rw- and mount type set to tmpfs and the contents MUST be readable.
correctly.
*/
*/
framework.ConformanceIt("should support (root,0666,default) [NodeConformance]",func(){
framework.ConformanceIt("should support (root,0666,default) [NodeConformance]",func(){
Description: For a Pod created with an 'emptyDir' Volume, ensure a
Testname: EmptyDir, medium default, volume mode 0777
root owned file with 0777 unix file permissions is created and enforced
Description: A Pod created with an 'emptyDir' Volume, the volume mode set to 0777. The volume MUST have mode set as -rwxrwxrwx and mount type set to tmpfs and the contents MUST be readable.
correctly.
*/
*/
framework.ConformanceIt("should support (root,0777,default) [NodeConformance]",func(){
framework.ConformanceIt("should support (root,0777,default) [NodeConformance]",func(){
Description: For a Pod created with an 'emptyDir' Volume, ensure a
Testname: EmptyDir, medium default, volume mode 0644
user owned file with 0644 unix file permissions is created and enforced
Description: A Pod created with an 'emptyDir' Volume, the volume mode set to 0644. Volume is mounted into the container where container is run as a non-root user. The volume MUST have mode -rw-r--r-- and mount type set to tmpfs and the contents MUST be readable.
correctly.
*/
*/
framework.ConformanceIt("should support (non-root,0644,default) [NodeConformance]",func(){
framework.ConformanceIt("should support (non-root,0644,default) [NodeConformance]",func(){
Description: For a Pod created with an 'emptyDir' Volume, ensure a
Testname: EmptyDir, medium default, volume mode 0666
user owned file with 0666 unix file permissions is created and enforced
Description: A Pod created with an 'emptyDir' Volume, the volume mode set to 0666. Volume is mounted into the container where container is run as a non-root user. The volume MUST have mode -rw-rw-rw- and mount type set to tmpfs and the contents MUST be readable.
correctly.
*/
*/
framework.ConformanceIt("should support (non-root,0666,default) [NodeConformance]",func(){
framework.ConformanceIt("should support (non-root,0666,default) [NodeConformance]",func(){
Description: For a Pod created with an 'emptyDir' Volume, ensure a
Testname: EmptyDir, medium default, volume mode 0777
user owned file with 0777 unix file permissions is created and enforced
Description: A Pod created with an 'emptyDir' Volume, the volume mode set to 0777. Volume is mounted into the container where container is run as a non-root user. The volume MUST have mode -rwxrwxrwx and mount type set to tmpfs and the contents MUST be readable.
correctly.
*/
*/
framework.ConformanceIt("should support (non-root,0777,default) [NodeConformance]",func(){
framework.ConformanceIt("should support (non-root,0777,default) [NodeConformance]",func(){
Description: Make sure environment variables can be set using an
Testname: Environment variables, expansion
expansion of previously defined environment variables
Description: Create a Pod with environment variables. Environment variables defined using previously defined environment variables MUST expand to proper values.
*/
*/
framework.ConformanceIt("should allow composing env vars into new env vars [NodeConformance]",func(){
framework.ConformanceIt("should allow composing env vars into new env vars [NodeConformance]",func(){
Description: Create a Pod with environment variables and container command using them. Container command using the defined environment variables MUST expand to proper values.
*/
*/
framework.ConformanceIt("should allow substituting values in a container's command [NodeConformance]",func(){
framework.ConformanceIt("should allow substituting values in a container's command [NodeConformance]",func(){
Description: Create a Pod with environment variables and container command arguments using them. Container command arguments using the defined environment variables MUST expand to proper values.
*/
*/
framework.ConformanceIt("should allow substituting values in a container's args [NodeConformance]",func(){
framework.ConformanceIt("should allow substituting values in a container's args [NodeConformance]",func(){
Description: For a Pod created with a 'HostPath' Volume, ensure the
Testname: Host path, volume mode default
volume is a directory with 0777 unix file permissions and that is has
Description: Create a Pod with host volume mounted. The volume mounted MUST be a directory with permissions mode -rwxrwxrwx and that is has the sticky bit (mode flag t) set.
the sticky bit (mode flag t) set.
*/
*/
framework.ConformanceIt("should give a volume the correct mode [NodeConformance]",func(){
framework.ConformanceIt("should give a volume the correct mode [NodeConformance]",func(){
@@ -51,9 +51,12 @@ var _ = framework.KubeDescribe("KubeletManagedEtcHosts", func() {
...
@@ -51,9 +51,12 @@ var _ = framework.KubeDescribe("KubeletManagedEtcHosts", func() {
}
}
/*
/*
Testname: kubelet-managed-etc-hosts
Release : v1.9
Description: Make sure Kubelet correctly manages /etc/hosts and mounts
Testname: Kubelet, managed etc hosts
it into the container.
Description: Create a Pod with containers with hostNetwork set to false, one of the containers mounts the /etc/hosts file form the host. Create a second Pod with hostNetwork set to true.
1. The Pod with hostNetwork=false MUST have /etc/hosts of containers managed by the Kubelet.
2. The Pod with hostNetwork=false but the container mounts /etc/hosts file from the host. The /etc/hosts file MUST not be managed by the Kubelet.
3. The Pod with hostNetwork=true , /etc/hosts file MUST not be managed by the Kubelet.
*/
*/
framework.ConformanceIt("should test kubelet managed /etc/hosts file [NodeConformance]",func(){
framework.ConformanceIt("should test kubelet managed /etc/hosts file [NodeConformance]",func(){
// expect exactly one unique hostname. Each of these endpoints reports
// expect exactly one unique hostname. Each of these endpoints reports
// its own hostname.
// its own hostname.
/*
/*
Testname: networking-intra-pod-http
Release : v1.9
Description: Try to hit test endpoints from a test container and make
Testname: Networking, intra pod http
sure each of them can report a unique hostname.
Description: Create a hostexec pod that is capable of curl to netcat commands. Create a test Pod that will act as a webserver front end exposing ports 8080 for tcp and 8081 for udp. The netserver service proxies are created on specified number of nodes.
The kubectl exec on the webserver container MUST reach a http port on the each of service proxy endpoints in the cluster and the request MUST be successful. Container will execute curl command to reach the service port within specified max retry limit and MUST result in reporting unique hostnames.
*/
*/
framework.ConformanceIt("should function for intra-pod communication: http [NodeConformance]",func(){
framework.ConformanceIt("should function for intra-pod communication: http [NodeConformance]",func(){
Description: Try to hit test endpoints from a test container using udp
Testname: Networking, intra pod udp
and make sure each of them can report a unique hostname.
Description: Create a hostexec pod that is capable of curl to netcat commands. Create a test Pod that will act as a webserver front end exposing ports 8080 for tcp and 8081 for udp. The netserver service proxies are created on specified number of nodes.
The kubectl exec on the webserver container MUST reach a udp port on the each of service proxy endpoints in the cluster and the request MUST be successful. Container will execute curl command to reach the service port within specified max retry limit and MUST result in reporting unique hostnames.
*/
*/
framework.ConformanceIt("should function for intra-pod communication: udp [NodeConformance]",func(){
framework.ConformanceIt("should function for intra-pod communication: udp [NodeConformance]",func(){
Description: Try to hit test endpoints from the pod and make sure each
Testname: Networking, intra pod http, from node
of them can report a unique hostname.
Description: Create a hostexec pod that is capable of curl to netcat commands. Create a test Pod that will act as a webserver front end exposing ports 8080 for tcp and 8081 for udp. The netserver service proxies are created on specified number of nodes.
The kubectl exec on the webserver container MUST reach a http port on the each of service proxy endpoints in the cluster using a http post(protocol=tcp) and the request MUST be successful. Container will execute curl command to reach the service port within specified max retry limit and MUST result in reporting unique hostnames.
*/
*/
framework.ConformanceIt("should function for node-pod communication: http [NodeConformance]",func(){
framework.ConformanceIt("should function for node-pod communication: http [NodeConformance]",func(){
Description: Try to hit test endpoints from the pod using udp and make sure
Testname: Networking, intra pod http, from node
each of them can report a unique hostname.
Description: Create a hostexec pod that is capable of curl to netcat commands. Create a test Pod that will act as a webserver front end exposing ports 8080 for tcp and 8081 for udp. The netserver service proxies are created on specified number of nodes.
The kubectl exec on the webserver container MUST reach a http port on the each of service proxy endpoints in the cluster using a http post(protocol=udp) and the request MUST be successful. Container will execute curl command to reach the service port within specified max retry limit and MUST result in reporting unique hostnames.
*/
*/
framework.ConformanceIt("should function for node-pod communication: udp [NodeConformance]",func(){
framework.ConformanceIt("should function for node-pod communication: udp [NodeConformance]",func(){
@@ -129,9 +129,9 @@ var _ = framework.KubeDescribe("Pods", func() {
...
@@ -129,9 +129,9 @@ var _ = framework.KubeDescribe("Pods", func() {
})
})
/*
/*
Testname: pods-created-pod-assigned-hostip
Release : v1.9
Description: Make sure when a pod is created that it is assigned a host IP
Testname: Pods, assigned hostip
Address.
Description: Create a Pod. Pod status MUST return successfully and contains a valid IP address.
*/
*/
framework.ConformanceIt("should get a host IP [NodeConformance]",func(){
framework.ConformanceIt("should get a host IP [NodeConformance]",func(){
name:="pod-hostip-"+string(uuid.NewUUID())
name:="pod-hostip-"+string(uuid.NewUUID())
...
@@ -151,9 +151,9 @@ var _ = framework.KubeDescribe("Pods", func() {
...
@@ -151,9 +151,9 @@ var _ = framework.KubeDescribe("Pods", func() {
})
})
/*
/*
Testname: pods-submitted-removed
Release : v1.9
Description: Makes sure a pod is created, a watch can be setup for the pod,
Testname: Pods, lifecycle
pod creation was observed, pod is deleted, and pod deletion is observed.
Description: A Pod is created with a unique label. Pod MUST be accessible when queried using the label selector upon creation. Add a watch, check if the Pod is running. Pod then deleted, The pod deletion timestamp is observed. The watch MUST return the pod deleted event. Query with the original selector for the Pod MUST return empty list.
*/
*/
framework.ConformanceIt("should be submitted and removed [NodeConformance]",func(){
framework.ConformanceIt("should be submitted and removed [NodeConformance]",func(){
By("creating the pod")
By("creating the pod")
...
@@ -277,8 +277,9 @@ var _ = framework.KubeDescribe("Pods", func() {
...
@@ -277,8 +277,9 @@ var _ = framework.KubeDescribe("Pods", func() {
})
})
/*
/*
Testname: pods-updated-successfully
Release : v1.9
Description: Make sure it is possible to successfully update a pod's labels.
Testname: Pods, update
Description: Create a Pod with a unique label. Query for the Pod with the label as selector MUST be successful. Update the pod to change the value of the Label. Query for the Pod with the new value for the label MUST be successful.
*/
*/
framework.ConformanceIt("should be updated [NodeConformance]",func(){
framework.ConformanceIt("should be updated [NodeConformance]",func(){
By("creating the pod")
By("creating the pod")
...
@@ -330,10 +331,9 @@ var _ = framework.KubeDescribe("Pods", func() {
...
@@ -330,10 +331,9 @@ var _ = framework.KubeDescribe("Pods", func() {
})
})
/*
/*
Testname: pods-update-active-deadline-seconds
Release : v1.9
Description: Make sure it is possible to create a pod, update its
Testname: Pods, ActiveDeadlineSeconds
activeDeadlineSecondsValue, and then waits for the deadline to pass
Description: Create a Pod with a unique label. Query for the Pod with the label as selector MUST be successful. The Pod is updated with ActiveDeadlineSeconds set on the Pod spec. Pod MUST terminate of the specified time elapses.
and verifies the pod is terminated.
*/
*/
framework.ConformanceIt("should allow activeDeadlineSeconds to be updated [NodeConformance]",func(){
framework.ConformanceIt("should allow activeDeadlineSeconds to be updated [NodeConformance]",func(){
By("creating the pod")
By("creating the pod")
...
@@ -377,9 +377,9 @@ var _ = framework.KubeDescribe("Pods", func() {
...
@@ -377,9 +377,9 @@ var _ = framework.KubeDescribe("Pods", func() {
Description: Make sure that when a pod is created it contains environment
Testname: Pods, service environment variables
variables for each active service.
Description: Create a server Pod listening on port 9376. A Service called fooservice is created for the server Pod listening on port 8765 targeting port 8080. If a new Pod is created in the cluster then the Pod MUST have the fooservice environment variables available from this new Pod. The new create Pod MUST have environment variables such as FOOSERVICE_SERVICE_HOST, FOOSERVICE_SERVICE_PORT, FOOSERVICE_PORT, FOOSERVICE_PORT_8765_TCP_PORT, FOOSERVICE_PORT_8765_TCP_PROTO, FOOSERVICE_PORT_8765_TCP and FOOSERVICE_PORT_8765_TCP_ADDR that are populated with proper values.
*/
*/
framework.ConformanceIt("should contain environment variables for services [NodeConformance]",func(){
framework.ConformanceIt("should contain environment variables for services [NodeConformance]",func(){
Description: Ensure that secret can be consumed via environment
Testname: Secrets, pod environment field
variables.
Description: Create a secret. Create a Pod with Container that declares a environment variable which references the secret created to extract a key value from the secret. Pod MUST have the environment variable that contains proper value for the key to the secret.
*/
*/
framework.ConformanceIt("should be consumable from pods in env vars [NodeConformance]",func(){
framework.ConformanceIt("should be consumable from pods in env vars [NodeConformance]",func(){
Description: Ensure that secret can be consumed via source of a set
Testname: Secrets, pod environment from source
of ConfigMaps.
Description: Create a secret. Create a Pod with Container that declares a environment variable using ‘EnvFrom’ which references the secret created to extract a key value from the secret. Pod MUST have the environment variable that contains proper value for the key to the secret.
*/
*/
framework.ConformanceIt("should be consumable via the environment [NodeConformance]",func(){
framework.ConformanceIt("should be consumable via the environment [NodeConformance]",func(){
Description: Ensure that secret can be mounted without mapping to a
Testname: Secrets Volume, default
pod volume.
Description: Create a secret. Create a Pod with secret volume source configured into the container. Pod MUST be able to read the secret from the mounted volume from the container runtime and the file mode of the secret MUST be -rw-r--r-- by default.
*/
*/
framework.ConformanceIt("should be consumable from pods in volume [NodeConformance]",func(){
framework.ConformanceIt("should be consumable from pods in volume [NodeConformance]",func(){
Description: Ensure that secret can be mounted without mapping to a
Testname: Secrets Volume, volume mode 0400
pod volume in default mode.
Description: Create a secret. Create a Pod with secret volume source configured into the container with file mode set to 0x400. Pod MUST be able to read the secret from the mounted volume from the container runtime and the file mode of the secret MUST be -r——--—-—- by default.
*/
*/
framework.ConformanceIt("should be consumable from pods in volume with defaultMode set [NodeConformance]",func(){
framework.ConformanceIt("should be consumable from pods in volume with defaultMode set [NodeConformance]",func(){
volume as non-root in default mode with fsGroup set.
Description: Create a secret. Create a Pod with secret volume source configured into the container with file mode set to 0x440 as a non-root user with uid 1000 and fsGroup id 1001. Pod MUST be able to read the secret from the mounted volume from the container runtime and the file mode of the secret MUST be -r——r-—-—- by default.
*/
*/
framework.ConformanceIt("should be consumable from pods in volume as non-root with defaultMode and fsGroup set [NodeConformance]",func(){
framework.ConformanceIt("should be consumable from pods in volume as non-root with defaultMode and fsGroup set [NodeConformance]",func(){
defaultMode:=int32(0440)/* setting fsGroup sets mode to at least 440 */
defaultMode:=int32(0440)/* setting fsGroup sets mode to at least 440 */
Description: Ensure that secret can be mounted with mapping to a pod
Testname: Secrets Volume, mapping
volume.
Description: Create a secret. Create a Pod with secret volume source configured into the container with a custom path. Pod MUST be able to read the secret from the mounted volume from the specified custom path. The file mode of the secret MUST be -rw—r-—r—- by default.
*/
*/
framework.ConformanceIt("should be consumable from pods in volume with mappings [NodeConformance]",func(){
framework.ConformanceIt("should be consumable from pods in volume with mappings [NodeConformance]",func(){
Description: Create a secret. Create a Pod with secret volume source configured into the container with a custom path and file mode set to 0x400. Pod MUST be able to read the secret from the mounted volume from the specified custom path. The file mode of the secret MUST be -r-—r-—r—-.
*/
*/
framework.ConformanceIt("should be consumable from pods in volume with mappings and Item Mode set [NodeConformance]",func(){
framework.ConformanceIt("should be consumable from pods in volume with mappings and Item Mode set [NodeConformance]",func(){
Description: Create a secret. Create a Pod with two secret volume sources configured into the container in to two different custom paths. Pod MUST be able to read the secret from the both the mounted volumes from the two specified custom paths.
*/
*/
framework.ConformanceIt("should be consumable in multiple volumes in a pod [NodeConformance]",func(){
framework.ConformanceIt("should be consumable in multiple volumes in a pod [NodeConformance]",func(){
// This test ensures that the same secret can be mounted in multiple
// This test ensures that the same secret can be mounted in multiple
Description: Ensure that optional update change to secret can be
Testname: Secrets Volume, create, update and delete
reflected on a mounted volume.
Description: Create a Pod with three containers with secrets volume sources namely a create, update and delete container. Create Container when started MUST not have secret, update and delete containers MUST be created with a secret value. Create a secret in the create container, the Pod MUST be able to read the secret from the create container. Update the secret in the update container, Pod MUST be able to read the updated secret value. Delete the secret in the delete container. Pod MUST fail to read the secret from the delete container.
*/
*/
framework.ConformanceIt("optional updates should be reflected in volume [NodeConformance]",func(){
framework.ConformanceIt("optional updates should be reflected in volume [NodeConformance]",func(){