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
d937f6f7
Commit
d937f6f7
authored
Jun 12, 2014
by
Daniel Smith
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
working on a better e2e test
parent
9cd97546
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
4 deletions
+18
-4
config-test.sh
cluster/config-test.sh
+1
-1
e2e-test.sh
hack/e2e-test.sh
+17
-3
No files found.
cluster/config-test.sh
View file @
d937f6f7
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
ZONE
=
us-central1-b
ZONE
=
us-central1-b
MASTER_SIZE
=
g1-small
MASTER_SIZE
=
g1-small
MINION_SIZE
=
g1-small
MINION_SIZE
=
g1-small
NUM_MINIONS
=
2
NUM_MINIONS
=
3
# gcloud/gcutil will expand this to the latest supported image.
# gcloud/gcutil will expand this to the latest supported image.
IMAGE
=
backports-debian-7-wheezy
IMAGE
=
backports-debian-7-wheezy
NETWORK
=
default
NETWORK
=
default
...
...
hack/e2e-test.sh
View file @
d937f6f7
...
@@ -50,12 +50,26 @@ gcutil addfirewall \
...
@@ -50,12 +50,26 @@ gcutil addfirewall \
--norespect_terminal_width
\
--norespect_terminal_width
\
--project
${
PROJECT
}
\
--project
${
PROJECT
}
\
--target_tags
${
MINION_TAG
}
\
--target_tags
${
MINION_TAG
}
\
--allowed
tcp:80
80
\
--allowed
tcp:80
\
--network
${
NETWORK
}
\
--network
${
NETWORK
}
\
${
MINION_TAG
}
-http-alt
&
${
MINION_TAG
}
-http-alt
&
# Launch a container
CLOUDCGF
=
"
$(
dirname
$0
)
/../cluster/cloudcfg.sh"
$(
dirname
$0
)
/../cluster/cloudcfg.sh
-p
8080:80 run dockerfile/nginx 2 myNginx
GUESTBOOK
=
"
$(
dirname
$0
)
/../.examples/guestbook"
# Launch the guestbook example
$CLOUDCFG
-c
"
${
GUESTBOOK
}
/redis-master.json"
create /pods
$CLOUDCFG
-c
"
${
GUESTBOOK
}
/redis-master-service.json"
create /services
$CLOUDCFG
-c
"
${
GUESTBOOK
}
/redis-slave-controller.json"
create /replicationControllers
sleep
5
# Count number of pods-- should be 5 plus two lines of header
PODS_FOUND
=
$(
$CLOUDCFG
list pods |
wc
-l
)
echo
$PODS_FOUND
exit
0
# Container turn up on a clean cluster can take a while for the docker image pull.
# Container turn up on a clean cluster can take a while for the docker image pull.
# Sleep for 2 minutes just to be sure.
# Sleep for 2 minutes just to be sure.
...
...
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