Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
24de9afd
Commit
24de9afd
authored
Jun 25, 2015
by
Maxwell Forbes
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #10364 from brendandburns/e2e2
Add some sleep to the verification loop.
parents
f4dc2071
da938dc1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
services.sh
hack/e2e-suite/services.sh
+8
-0
No files found.
hack/e2e-suite/services.sh
View file @
24de9afd
...
@@ -278,6 +278,8 @@ function wait_for_service_down() {
...
@@ -278,6 +278,8 @@ function wait_for_service_down() {
# $5: pod IDs (sorted)
# $5: pod IDs (sorted)
function
verify_from_container
()
{
function
verify_from_container
()
{
echo
"waiting for
$1
at
$2
:
$3
"
echo
"waiting for
$1
at
$2
:
$3
"
# TODO: Reduce this interval once we have a sense for the latency distribution.
for
x
in
{
0..9
}
;
do
results
=(
$(
ssh-to-node
"
${
test_node
}
"
"
results
=(
$(
ssh-to-node
"
${
test_node
}
"
"
set -e;
set -e;
sudo docker pull gcr.io/google_containers/busybox >/dev/null;
sudo docker pull gcr.io/google_containers/busybox >/dev/null;
...
@@ -292,6 +294,12 @@ function verify_from_container() {
...
@@ -292,6 +294,12 @@ function verify_from_container() {
'"
|
sort
-r
-n
|
uniq
)
)
\
'"
|
sort
-r
-n
|
uniq
)
)
\
||
error
"testing
$1
VIP from container failed"
||
error
"testing
$1
VIP from container failed"
found_pods
=
$(
sort_args
"
${
results
[@]
}
"
)
found_pods
=
$(
sort_args
"
${
results
[@]
}
"
)
if
[[
"
${
found_pods
}
"
==
"
$5
"
]]
;
then
break
fi
echo
"waiting for services iteration
$x
"
sleep
5
done
if
[[
"
${
found_pods
}
"
!=
"
$5
"
]]
;
then
if
[[
"
${
found_pods
}
"
!=
"
$5
"
]]
;
then
echo
"expected '
$5
', got '
${
found_pods
}
'"
echo
"expected '
$5
', got '
${
found_pods
}
'"
error
"
$1
: failed to verify VIP from container"
error
"
$1
: failed to verify VIP from container"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment