Skip to content

Commit

Permalink
Merge pull request #19810 from edsantiago/bats_cleanup
Browse files Browse the repository at this point in the history
system tests: housekeeping: various small fixes
  • Loading branch information
openshift-merge-robot authored Aug 30, 2023
2 parents bb9256a + a0738e7 commit e5ab4fb
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion test/system/030-run.bats
Original file line number Diff line number Diff line change
Expand Up @@ -1123,7 +1123,7 @@ EOF
run_podman 125 create --name "$randomname/bad" $IMAGE
run_podman create --name "/$randomname" $IMAGE
run_podman ps -a --filter name="^/$randomname$" --format '{{ .Names }}'
is $output "$randomname" "Should be able to find container by name"
is "$output" "$randomname" "Should be able to find container by name"
run_podman rm "/$randomname"
run_podman 125 create --name "$randomname/" $IMAGE
}
Expand Down
4 changes: 2 additions & 2 deletions test/system/060-mount.bats
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ load helpers
run_podman mount --notruncate
# FIXME: is it worth the effort to validate the CID ($1) ?
reported_mountpoint=$(echo "$output" | awk '{print $2}')
is $reported_mountpoint $mount_path "mountpoint reported by 'podman mount'"
is "$reported_mountpoint" "$mount_path" "mountpoint reported by 'podman mount'"

# umount, and make sure files are gone
run_podman umount $c_name
Expand Down Expand Up @@ -237,7 +237,7 @@ EOF
run_podman mount --notruncate

reported_mountpoint=$(echo "$output" | awk '{print $2}')
is $reported_mountpoint $mount_path "mountpoint reported by 'podman mount'"
is "$reported_mountpoint" "$mount_path" "mountpoint reported by 'podman mount'"

# umount, and make sure files are gone
run_podman umount $external_cid
Expand Down
2 changes: 1 addition & 1 deletion test/system/170-run-userns.bats
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ EOF
echo ${secret_content} > ${secret_file}
run_podman secret create ${test_name} ${secret_file}
run_podman run --rm --secret=${test_name} --userns=auto:size=1000 $IMAGE cat /run/secrets/${test_name}
is ${output} ${secret_content} "Secrets should work with user namespace"
is "$output" "$secret_content" "Secrets should work with user namespace"
run_podman secret rm ${test_name}
}

Expand Down
2 changes: 1 addition & 1 deletion test/system/260-sdnotify.bats
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ none | false | false | 0
run_podman container inspect --format '{{.KubeExitCodePropagation}}' $service_container
is "$output" "$exit_code_prop" "service container has the expected policy set in its annotations"
run_podman wait $service_container
is "$output" "$exit_code" "service container reflects expected exit code $exit_code (policy: $policy, cmd1: $cmd1, cmd2: $cmd2)"
is "$output" "$exit_code" "service container exit code (propagation: $exit_code_prop, policy: $service_policy, cmds: $cmd1 + $cmd2)"
run_podman kube down $fname
done
done < <(parse_table "$exit_tests")
Expand Down
2 changes: 1 addition & 1 deletion test/system/700-play.bats
Original file line number Diff line number Diff line change
Expand Up @@ -722,7 +722,7 @@ spec:
run_podman kube play --configmap=$configmap_file $pod_file
run_podman wait test_pod-server
run_podman logs test_pod-server
is $output "foo:bar"
is "$output" "foo:bar"

run_podman kube down $pod_file
}
Expand Down

0 comments on commit e5ab4fb

Please sign in to comment.