Use standard testcases job for TF CI (#4732)
This commit is contained in:
parent
5e3bd2dff1
commit
3f62492a15
3 changed files with 8 additions and 7 deletions
|
@ -36,10 +36,7 @@
|
||||||
ANSIBLE_INVENTORY: hosts
|
ANSIBLE_INVENTORY: hosts
|
||||||
CI_PLATFORM: tf
|
CI_PLATFORM: tf
|
||||||
script:
|
script:
|
||||||
- cd tests && make create-${CI_PLATFORM} -s ; cd -
|
- tests/scripts/testcases_run.sh
|
||||||
- ansible-playbook tests/cloud_playbooks/wait-for-ssh.yml
|
|
||||||
- ansible-playbook cluster.yml --become
|
|
||||||
# - tests/scripts/testcases_prepare.sh
|
|
||||||
after_script:
|
after_script:
|
||||||
# Cleanup regardless of exit code
|
# Cleanup regardless of exit code
|
||||||
- ./tests/scripts/testcases_cleanup.sh
|
- ./tests/scripts/testcases_cleanup.sh
|
||||||
|
@ -106,7 +103,7 @@ tf-packet-ubuntu18-default:
|
||||||
OS_INTERFACE: public
|
OS_INTERFACE: public
|
||||||
OS_IDENTITY_API_VERSION: "3"
|
OS_IDENTITY_API_VERSION: "3"
|
||||||
|
|
||||||
tf-apply-ovh:
|
tf-ovh_ubuntu18-calico:
|
||||||
extends: .terraform_apply
|
extends: .terraform_apply
|
||||||
when: on_success
|
when: on_success
|
||||||
variables:
|
variables:
|
||||||
|
@ -115,6 +112,7 @@ tf-apply-ovh:
|
||||||
PROVIDER: openstack
|
PROVIDER: openstack
|
||||||
CLUSTER: $CI_COMMIT_REF_NAME
|
CLUSTER: $CI_COMMIT_REF_NAME
|
||||||
ANSIBLE_TIMEOUT: "60"
|
ANSIBLE_TIMEOUT: "60"
|
||||||
|
SSH_USER: ubuntu
|
||||||
TF_VAR_cluster_name: $CI_COMMIT_REF_SLUG
|
TF_VAR_cluster_name: $CI_COMMIT_REF_SLUG
|
||||||
TF_VAR_number_of_k8s_masters: "0"
|
TF_VAR_number_of_k8s_masters: "0"
|
||||||
TF_VAR_number_of_k8s_masters_no_floating_ip: "1"
|
TF_VAR_number_of_k8s_masters_no_floating_ip: "1"
|
||||||
|
|
3
tests/files/tf-ovh_ubuntu18-calico.yml
Normal file
3
tests/files/tf-ovh_ubuntu18-calico.yml
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
---
|
||||||
|
dns_min_replicas: 1
|
||||||
|
deploy_netchecker: true
|
|
@ -4,8 +4,8 @@
|
||||||
tasks:
|
tasks:
|
||||||
- name: Check the API servers are responding
|
- name: Check the API servers are responding
|
||||||
uri:
|
uri:
|
||||||
url: "https://{{ access_ip | default(ansible_default_ipv4.address) }}:{{ kube_apiserver_port }}/api/v1"
|
url: "https://{{ access_ip | default(ansible_default_ipv4.address) }}:{{ kube_apiserver_port | default(6443) }}/api/v1"
|
||||||
user: kube
|
user: kube
|
||||||
password: "{{ lookup('password', credentials_dir + '/kube_user.creds length=15 chars=ascii_letters,digits') }}"
|
password: "{{ lookup('password', credentials_dir | default(inventory_dir + '/credentials') + '/kube_user.creds length=15 chars=ascii_letters,digits') }}"
|
||||||
validate_certs: no
|
validate_certs: no
|
||||||
status_code: 200,401,403
|
status_code: 200,401,403
|
||||||
|
|
Loading…
Reference in a new issue