diff --git a/tests/integration/kubernetes/k8s-env.bats b/tests/integration/kubernetes/k8s-env.bats index 96b117be2b..ad382a81c7 100644 --- a/tests/integration/kubernetes/k8s-env.bats +++ b/tests/integration/kubernetes/k8s-env.bats @@ -32,14 +32,14 @@ setup() { kubectl wait --for=condition=Ready --timeout=$timeout pod "$pod_name" # Print environment variables - kubectl exec $pod_name -- "${exec_command[@]}" | grep "MY_POD_NAME=$pod_name" - kubectl exec $pod_name -- "${exec_command[@]}" | \ - grep "HOST_IP=\([0-9]\+\(\.\|$\)\)\{4\}" + grep_pod_exec_output "${pod_name}" "MY_POD_NAME=${pod_name}" "${exec_command[@]}" + grep_pod_exec_output "${pod_name}" "HOST_IP=\([0-9]\+\(\.\|$\)\)\{4\}" "${exec_command[@]}" + # Requested 32Mi of memory - kubectl exec $pod_name -- "${exec_command[@]}" | \ - grep "MEMORY_REQUESTS=$((1024 * 1024 * 32))" + grep_pod_exec_output "${pod_name}" "MEMORY_REQUESTS=$((1024 * 1024 * 32))" "${exec_command[@]}" + # Memory limits allocated by the node - kubectl exec $pod_name -- "${exec_command[@]}" | grep "MEMORY_LIMITS=[1-9]\+" + grep_pod_exec_output "${pod_name}" "MEMORY_LIMITS=[1-9]\+" "${exec_command[@]}" } teardown() {