Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
Kubespray
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mirror
Kubespray
Commits
8659693c
Commit
8659693c
authored
9 years ago
by
Smana
Committed by
Antoine Legrand
9 years ago
Browse files
Options
Downloads
Patches
Plain Diff
fix testcases
parent
c3a8f379
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.travis.yml
+22
-13
22 additions, 13 deletions
.travis.yml
tests/scripts/ansibl8s_test.sh
+3
-3
3 additions, 3 deletions
tests/scripts/ansibl8s_test.sh
with
25 additions
and
16 deletions
.travis.yml
+
22
−
13
View file @
8659693c
...
...
@@ -32,22 +32,31 @@ env:
CLOUD_IMAGE=centos-7-sudo
CLOUD_REGION=us-central1-c
#
- >-
#
KUBE_NETWORK_PLUGIN=calico
#
CLOUD_IMAGE=centos-7-sudo
#
CLOUD_REGION=us-central1-c
-
>-
KUBE_NETWORK_PLUGIN=calico
CLOUD_IMAGE=centos-7-sudo
CLOUD_REGION=us-central1-c
-
>-
KUBE_NETWORK_PLUGIN=weave
CLOUD_IMAGE=centos-7-sudo
CLOUD_REGION=us-central1-c
#
#
Redhat 7
# Redhat 7
-
>-
KUBE_NETWORK_PLUGIN=flannel
CLOUD_IMAGE=rhel-7-sudo
CLOUD_REGION=us-east1-d
# - >-
# KUBE_NETWORK_PLUGIN=calico
# CLOUD_IMAGE=rhel-7-sudo
# CLOUD_REGION=us-east1-d
-
>-
KUBE_NETWORK_PLUGIN=calico
CLOUD_IMAGE=rhel-7-sudo
CLOUD_REGION=us-east1-d
-
>-
KUBE_NETWORK_PLUGIN=weave
CLOUD_IMAGE=rhel-7-sudo
CLOUD_REGION=us-east1-d
# Ubuntu 14.04
-
>-
...
...
@@ -80,10 +89,10 @@ env:
matrix
:
allow_failures
:
-
env
:
KUBE_NETWORK_PLUGIN=flannel CLOUD_IMAGE=centos-7-sudo CLOUD_REGION=us-central1-c
-
env
:
KUBE_NETWORK_PLUGIN=flannel CLOUD_IMAGE=rhel-7-sudo CLOUD_REGION=us-east1-d
#
- env: KUBE_NETWORK_PLUGIN=flannel CLOUD_IMAGE=centos-7-sudo CLOUD_REGION=us-central1-c
#
- env: KUBE_NETWORK_PLUGIN=flannel CLOUD_IMAGE=rhel-7-sudo CLOUD_REGION=us-east1-d
-
env
:
KUBE_NETWORK_PLUGIN=weave CLOUD_IMAGE=ubuntu-1404-trusty CLOUD_REGION=europe-west1-c
-
env
:
KUBE_NETWORK_PLUGIN=calico CLOUD_IMAGE=ubuntu-1404-trusty CLOUD_REGION=europe-west1-c
#
- env: KUBE_NETWORK_PLUGIN=calico CLOUD_IMAGE=ubuntu-1404-trusty CLOUD_REGION=europe-west1-c
before_install
:
# Install Ansible.
...
...
@@ -128,7 +137,7 @@ script:
## Create a POD
-
$HOME/.local/bin/ansible-playbook -i inventory/inventory.ini -u $SSH_USER -e ansible_ssh_user=$SSH_USER $SSH_ARGS -b --become-user=root tests/testcases/020_check-create-pod.yml $LOG_LEVEL
## Ping the between 2 pod
-
$HOME/.local/bin/ansible-playbook -i
setup-kubernetes/
inventory/inventory.ini -u $SSH_USER -e ansible_ssh_user=$SSH_USER $SSH_ARGS -b --become-user=root tests/testcases/030_check-network.yml $LOG_LEVEL
-
$HOME/.local/bin/ansible-playbook -i inventory/inventory.ini -u $SSH_USER -e ansible_ssh_user=$SSH_USER $SSH_ARGS -b --become-user=root tests/testcases/030_check-network.yml $LOG_LEVEL
after_script
:
-
>
...
...
This diff is collapsed.
Click to expand it.
tests/scripts/ansibl8s_test.sh
+
3
−
3
View file @
8659693c
...
...
@@ -34,19 +34,19 @@ should_deploy_cluster() {
}
should_api_server_respond
()
{
ansible-playbook
-i
inventory.ini
${
private_key
}
testcases/check-apiserver.yml
ansible-playbook
-i
inventory.ini
${
private_key
}
testcases/
010_
check-apiserver.yml
assertion__status_code_is_success
$?
}
should_create_pod
()
{
ansible-playbook
-i
inventory.ini
-s
${
private_key
}
testcases/check-create-pod.yml
-vv
ansible-playbook
-i
inventory.ini
-s
${
private_key
}
testcases/
020_
check-create-pod.yml
-vv
assertion__status_code_is_success
$?
}
should_pod_be_in_expected_subnet
()
{
ansible-playbook
-i
inventory.ini
-s
${
private_key
}
testcases/check-network.yml
-vv
ansible-playbook
-i
inventory.ini
-s
${
private_key
}
testcases/
030_
check-network.yml
-vv
assertion__status_code_is_success
$?
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment