mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-04 01:40:07 +00:00
Fix Shell services test
This commit is contained in:
parent
41f8907539
commit
9cb7bc2e90
@ -233,12 +233,12 @@ function wait_for_service_up() {
|
|||||||
results=($(ssh-to-node "${test_node}" "
|
results=($(ssh-to-node "${test_node}" "
|
||||||
set -e;
|
set -e;
|
||||||
for i in $(seq -s' ' 1 $(($4*3))); do
|
for i in $(seq -s' ' 1 $(($4*3))); do
|
||||||
curl -s --connect-timeout 1 http://$2:$3;
|
wget -q -T 1 -O - http://$2:$3 || true;
|
||||||
echo;
|
echo;
|
||||||
done | sort -n | uniq
|
done | sort -n | uniq
|
||||||
"))
|
"))
|
||||||
|
|
||||||
found_pods=$(sort_args "${results[@]}")
|
found_pods=$(sort_args "${results[@]:+${results[@]}}")
|
||||||
if [[ "${found_pods}" == "$5" ]]; then
|
if [[ "${found_pods}" == "$5" ]]; then
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
@ -280,12 +280,12 @@ function verify_from_container() {
|
|||||||
sudo docker pull gcr.io/google_containers/busybox >/dev/null;
|
sudo docker pull gcr.io/google_containers/busybox >/dev/null;
|
||||||
sudo docker run gcr.io/google_containers/busybox sh -c '
|
sudo docker run gcr.io/google_containers/busybox sh -c '
|
||||||
for i in $(seq -s' ' 1 $(($4*3))); do
|
for i in $(seq -s' ' 1 $(($4*3))); do
|
||||||
wget -q -T 1 -O - http://$2:$3;
|
wget -q -T 1 -O - http://$2:$3 || true;
|
||||||
echo;
|
echo;
|
||||||
done
|
done
|
||||||
'" | sort -n | uniq))
|
'" | sort -n | uniq))
|
||||||
|
|
||||||
found_pods=$(sort_args "${results[@]}")
|
found_pods=$(sort_args "${results[@]:+${results[@]}}")
|
||||||
if [[ "${found_pods}" == "$5" ]]; then
|
if [[ "${found_pods}" == "$5" ]]; then
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user