fix testcases
This commit is contained in:
parent
c3a8f379e8
commit
8659693c76
2 changed files with 25 additions and 16 deletions
35
.travis.yml
35
.travis.yml
|
@ -32,22 +32,31 @@ env:
|
||||||
CLOUD_IMAGE=centos-7-sudo
|
CLOUD_IMAGE=centos-7-sudo
|
||||||
CLOUD_REGION=us-central1-c
|
CLOUD_REGION=us-central1-c
|
||||||
|
|
||||||
# - >-
|
- >-
|
||||||
# KUBE_NETWORK_PLUGIN=calico
|
KUBE_NETWORK_PLUGIN=calico
|
||||||
# CLOUD_IMAGE=centos-7-sudo
|
CLOUD_IMAGE=centos-7-sudo
|
||||||
# CLOUD_REGION=us-central1-c
|
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
|
KUBE_NETWORK_PLUGIN=flannel
|
||||||
CLOUD_IMAGE=rhel-7-sudo
|
CLOUD_IMAGE=rhel-7-sudo
|
||||||
CLOUD_REGION=us-east1-d
|
CLOUD_REGION=us-east1-d
|
||||||
|
|
||||||
# - >-
|
- >-
|
||||||
# KUBE_NETWORK_PLUGIN=calico
|
KUBE_NETWORK_PLUGIN=calico
|
||||||
# CLOUD_IMAGE=rhel-7-sudo
|
CLOUD_IMAGE=rhel-7-sudo
|
||||||
# CLOUD_REGION=us-east1-d
|
CLOUD_REGION=us-east1-d
|
||||||
|
|
||||||
|
- >-
|
||||||
|
KUBE_NETWORK_PLUGIN=weave
|
||||||
|
CLOUD_IMAGE=rhel-7-sudo
|
||||||
|
CLOUD_REGION=us-east1-d
|
||||||
|
|
||||||
# Ubuntu 14.04
|
# Ubuntu 14.04
|
||||||
- >-
|
- >-
|
||||||
|
@ -80,10 +89,10 @@ env:
|
||||||
|
|
||||||
matrix:
|
matrix:
|
||||||
allow_failures:
|
allow_failures:
|
||||||
- env: KUBE_NETWORK_PLUGIN=flannel CLOUD_IMAGE=centos-7-sudo CLOUD_REGION=us-central1-c
|
# - 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=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=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:
|
before_install:
|
||||||
# Install Ansible.
|
# Install Ansible.
|
||||||
|
@ -128,7 +137,7 @@ script:
|
||||||
## Create a POD
|
## 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
|
- $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
|
## 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:
|
after_script:
|
||||||
- >
|
- >
|
||||||
|
|
|
@ -34,19 +34,19 @@ should_deploy_cluster() {
|
||||||
}
|
}
|
||||||
|
|
||||||
should_api_server_respond() {
|
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 $?
|
assertion__status_code_is_success $?
|
||||||
}
|
}
|
||||||
|
|
||||||
should_create_pod() {
|
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 $?
|
assertion__status_code_is_success $?
|
||||||
}
|
}
|
||||||
|
|
||||||
should_pod_be_in_expected_subnet() {
|
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 $?
|
assertion__status_code_is_success $?
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue