Skip to content

Commit

Permalink
add test pod name to test pod output (#132)
Browse files Browse the repository at this point in the history
Signed-off-by: ryanohnemus <[email protected]>
  • Loading branch information
ryanohnemus authored Jan 23, 2024
1 parent fc45023 commit 843743e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/kubernetes-plugins/basic.bats
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ setup() {
teardown() {
if [[ "${SKIP_TEARDOWN:-no}" != "yes" ]]; then
if [[ ! -z "$TEST_POD_NAME" ]]; then
run kubectl delete pod $TEST_POD_NAME --grace-period 0
run kubectl delete pod $TEST_POD_NAME -n $TEST_NAMESPACE --grace-period 1 --wait
fi
fi
}
Expand Down
2 changes: 1 addition & 1 deletion tests/kubernetes-plugins/full.bats
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ function create_test_pod() {

kubectl run -n $TEST_NAMESPACE $TEST_POD_NAME --image=docker.io/library/alpine:latest -l "this_is_a_test_label=true" \
--overrides="{\"apiVersion\":\"v1\",\"spec\":{\"nodeSelector\":{\"kubernetes.io/hostname\":\"$node_name\"}}}" \
--command -- sh -c 'while true; do echo "hello world"; sleep 1; done'
--command -- sh -c "while true; do echo 'hello world from ${TEST_POD_NAME}'; sleep 1; done"

try "at most 30 times every 2s " \
"to find 1 pods named '$TEST_POD_NAME' " \
Expand Down

0 comments on commit 843743e

Please sign in to comment.