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
33763d07
Commit
33763d07
authored
Oct 22, 2014
by
Joe Beda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix e2e test for .ID->.Name change
parent
6ef6ff5b
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
7 additions
and
7 deletions
+7
-7
validate-cluster.sh
cluster/validate-cluster.sh
+1
-1
basic.sh
hack/e2e-suite/basic.sh
+1
-1
guestbook.sh
hack/e2e-suite/guestbook.sh
+2
-2
services.sh
hack/e2e-suite/services.sh
+1
-1
update.sh
hack/e2e-suite/update.sh
+1
-1
e2e-test.sh
hack/e2e-test.sh
+1
-1
No files found.
cluster/validate-cluster.sh
View file @
33763d07
...
...
@@ -33,7 +33,7 @@ detect-master > /dev/null
detect-minions
>
/dev/null
MINIONS_FILE
=
/tmp/minions
"
${
KUBE_ROOT
}
/cluster/kubecfg.sh"
-template
$'{{range.Items}}{{.
ID
}}
\n
{{end}}'
list minions
>
${
MINIONS_FILE
}
"
${
KUBE_ROOT
}
/cluster/kubecfg.sh"
-template
$'{{range.Items}}{{.
Name
}}
\n
{{end}}'
list minions
>
${
MINIONS_FILE
}
# On vSphere, use minion IPs as their names
if
[
"
$KUBERNETES_PROVIDER
"
==
"vsphere"
]
;
then
...
...
hack/e2e-suite/basic.sh
View file @
33763d07
...
...
@@ -37,7 +37,7 @@ function teardown() {
trap
"teardown"
EXIT
pod_id_list
=
$(
$KUBECFG
'-template={{range.Items}}{{.
ID
}} {{end}}'
-l
replicationController
=
my-hostname list pods
)
pod_id_list
=
$(
$KUBECFG
'-template={{range.Items}}{{.
Name
}} {{end}}'
-l
replicationController
=
my-hostname list pods
)
# Pod turn up on a clean cluster can take a while for the docker image pull.
all_running
=
0
for
i
in
$(
seq
1 24
)
;
do
...
...
hack/e2e-suite/guestbook.sh
View file @
33763d07
...
...
@@ -35,7 +35,7 @@ $KUBECFG -c "${GUESTBOOK}/redis-slave-controller.json" create /replicationContro
sleep
5
POD_LIST_1
=
$(
$KUBECFG
'-template={{range.Items}}{{.
ID
}} {{end}}'
list pods
)
POD_LIST_1
=
$(
$KUBECFG
'-template={{range.Items}}{{.
Meta
}} {{end}}'
list pods
)
echo
"Pods running:
${
POD_LIST_1
}
"
$KUBECFG
stop redisSlaveController
...
...
@@ -45,7 +45,7 @@ $KUBECFG rm redisSlaveController
$KUBECFG
delete services/redismaster
$KUBECFG
delete pods/redis-master-2
POD_LIST_2
=
$(
$KUBECFG
'-template={{range.Items}}{{.
ID
}} {{end}}'
list pods
)
POD_LIST_2
=
$(
$KUBECFG
'-template={{range.Items}}{{.
Meta
}} {{end}}'
list pods
)
echo
"Pods running after shutdown:
${
POD_LIST_2
}
"
exit
0
hack/e2e-suite/services.sh
View file @
33763d07
...
...
@@ -69,7 +69,7 @@ function query_pods() {
local
i
for
i
in
$(
seq
1 10
)
;
do
pods_unsorted
=(
$(${
KUBECFG
}
\
'-template={{range.Items}}{{.
ID
}} {{end}}'
\
'-template={{range.Items}}{{.
Name
}} {{end}}'
\
-l
replicationController
=
"
$1
"
list pods
)
)
found
=
"
${#
pods_unsorted
[*]
}
"
if
[[
"
${
found
}
"
==
"
$2
"
]]
;
then
...
...
hack/e2e-suite/update.sh
View file @
33763d07
...
...
@@ -38,7 +38,7 @@ function validate() {
sleep
2
local
pod_id_list
pod_id_list
=(
$(
$KUBECFG
-template
=
'{{range.Items}}{{.
ID
}} {{end}}'
-l
simpleService
=
"
${
CONTROLLER_NAME
}
"
list pods
)
)
pod_id_list
=(
$(
$KUBECFG
-template
=
'{{range.Items}}{{.
Name
}} {{end}}'
-l
simpleService
=
"
${
CONTROLLER_NAME
}
"
list pods
)
)
echo
"
${#
pod_id_list
[@]
}
out of
${
num_replicas
}
created"
...
...
hack/e2e-test.sh
View file @
33763d07
...
...
@@ -80,7 +80,7 @@ for test_file in $(ls "${KUBE_ROOT}/hack/e2e-suite/"); do
fi
fi
echo
"
r
unning
$test_file
"
echo
"
+++ R
unning
$test_file
"
result
=
0
"
${
KUBE_ROOT
}
/hack/e2e-suite/
${
test_file
}
"
||
result
=
"
$?
"
if
[[
"
${
result
}
"
-eq
"0"
]]
;
then
...
...
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