Adds some skip linters to the tests
Change-Id: I936f751a0e06f883ab93c61eba602692013f0c45
This commit is contained in:
parent
51b2e89ae6
commit
fed40c9b73
@ -55,12 +55,15 @@
|
|||||||
git:
|
git:
|
||||||
repo: "https://git.openstack.org/openstack/diskimage-builder"
|
repo: "https://git.openstack.org/openstack/diskimage-builder"
|
||||||
dest: "{{ octavia_system_home_folder }}/diskimage-builder"
|
dest: "{{ octavia_system_home_folder }}/diskimage-builder"
|
||||||
|
version: "2.9.0"
|
||||||
- name: Create amphora image
|
- name: Create amphora image
|
||||||
shell: "./diskimage-create.sh -o {{ octavia_system_home_folder }}/amphora-x64-haproxy.qcow2"
|
shell: "./diskimage-create.sh -o {{ octavia_system_home_folder }}/amphora-x64-haproxy.qcow2"
|
||||||
args:
|
args:
|
||||||
chdir: "{{ octavia_system_home_folder }}/octavia/diskimage-create"
|
chdir: "{{ octavia_system_home_folder }}/octavia/diskimage-create"
|
||||||
creates: "{{ octavia_system_home_folder }}/amphora-x64-haproxy.qcow2"
|
creates: "{{ octavia_system_home_folder }}/amphora-x64-haproxy.qcow2"
|
||||||
when: test_octavia_amphora | bool
|
when: test_octavia_amphora | bool
|
||||||
|
tags:
|
||||||
|
- skip_ansible_lint
|
||||||
- name: Change permission
|
- name: Change permission
|
||||||
file:
|
file:
|
||||||
path: "{{ octavia_system_home_folder }}/octavia/bin/create_certificates.sh"
|
path: "{{ octavia_system_home_folder }}/octavia/bin/create_certificates.sh"
|
||||||
@ -69,6 +72,8 @@
|
|||||||
shell: "{{ octavia_system_home_folder }}/octavia/bin/create_certificates.sh {{ octavia_system_home_folder }}/certs {{ octavia_system_home_folder }}/octavia/etc/certificates/openssl.cnf"
|
shell: "{{ octavia_system_home_folder }}/octavia/bin/create_certificates.sh {{ octavia_system_home_folder }}/certs {{ octavia_system_home_folder }}/octavia/etc/certificates/openssl.cnf"
|
||||||
args:
|
args:
|
||||||
creates: "{{ octavia_system_home_folder }}/certs/ca_01.pem"
|
creates: "{{ octavia_system_home_folder }}/certs/ca_01.pem"
|
||||||
|
tags:
|
||||||
|
- skip_ansible_lint
|
||||||
- name: Fix certs/private directory access
|
- name: Fix certs/private directory access
|
||||||
file:
|
file:
|
||||||
path: "{{ octavia_system_home_folder }}/certs/private"
|
path: "{{ octavia_system_home_folder }}/certs/private"
|
||||||
|
@ -82,11 +82,15 @@
|
|||||||
creates: "{{ octavia_system_home_folder }}/image"
|
creates: "{{ octavia_system_home_folder }}/image"
|
||||||
environment: "{{ env }}"
|
environment: "{{ env }}"
|
||||||
when: test_octavia_amphora | bool
|
when: test_octavia_amphora | bool
|
||||||
|
tags:
|
||||||
|
- skip_ansible_lint
|
||||||
- name: Create ssh-key
|
- name: Create ssh-key
|
||||||
shell: >
|
shell: >
|
||||||
cat /dev/zero | ssh-keygen -q -N ""
|
cat /dev/zero | ssh-keygen -q -N ""
|
||||||
args:
|
args:
|
||||||
creates: /root/.ssh/id_rsa.pub
|
creates: /root/.ssh/id_rsa.pub
|
||||||
|
tags:
|
||||||
|
- skip_ansible_lint
|
||||||
- name: Upload key to nova
|
- name: Upload key to nova
|
||||||
os_keypair:
|
os_keypair:
|
||||||
auth:
|
auth:
|
||||||
@ -106,6 +110,8 @@
|
|||||||
shell: >
|
shell: >
|
||||||
neutron lbaas-loadbalancer-create --name test-lb public-subnet
|
neutron lbaas-loadbalancer-create --name test-lb public-subnet
|
||||||
environment: "{{ env }}"
|
environment: "{{ env }}"
|
||||||
|
tags:
|
||||||
|
- skip_ansible_lint
|
||||||
- name: Wait until LB is up
|
- name: Wait until LB is up
|
||||||
shell: >
|
shell: >
|
||||||
neutron lbaas-loadbalancer-show test-lb | grep ONLINE
|
neutron lbaas-loadbalancer-show test-lb | grep ONLINE
|
||||||
@ -114,16 +120,22 @@
|
|||||||
until: lb_up|success
|
until: lb_up|success
|
||||||
retries: 100
|
retries: 100
|
||||||
delay: 5
|
delay: 5
|
||||||
|
tags:
|
||||||
|
- skip_ansible_lint
|
||||||
- name: Create a listener
|
- name: Create a listener
|
||||||
shell: >
|
shell: >
|
||||||
neutron lbaas-listener-create --loadbalancer test-lb --protocol HTTP --protocol-port 80 --name listener
|
neutron lbaas-listener-create --loadbalancer test-lb --protocol HTTP --protocol-port 80 --name listener
|
||||||
environment: "{{ env }}"
|
environment: "{{ env }}"
|
||||||
|
tags:
|
||||||
|
- skip_ansible_lint
|
||||||
- name: Curl the Listener
|
- name: Curl the Listener
|
||||||
shell: >
|
shell: >
|
||||||
curl -s -o /dev/null -w "%{http_code}" http://`neutron lbaas-loadbalancer-show test-lb | awk '/ vip_address / {print $4}'`
|
curl -s -o /dev/null -w "%{http_code}" http://`neutron lbaas-loadbalancer-show test-lb | awk '/ vip_address / {print $4}'`
|
||||||
environment: "{{ env }}"
|
environment: "{{ env }}"
|
||||||
register: http_status_code
|
register: http_status_code
|
||||||
when: test_octavia_amphora | bool
|
when: test_octavia_amphora | bool
|
||||||
|
tags:
|
||||||
|
- skip_ansible_lint
|
||||||
- name: Check that we got 503
|
- name: Check that we got 503
|
||||||
assert:
|
assert:
|
||||||
that:
|
that:
|
||||||
|
Loading…
Reference in New Issue
Block a user