Resolve ansible-lint test failures
With the merge of https://review.openstack.org/520177 in the tests repo some ansible-lint failures which previously were not being picked up are now detected. This adds the appropriate skip tags to the tasks so that they are not evaluated by ansible-lint. Change-Id: I44a534b2c0bd28522d411f364da179896fc8497f
This commit is contained in:
parent
c03c932c9b
commit
bb77c33a0f
@ -23,6 +23,9 @@
|
||||
with_items:
|
||||
- calico-felix
|
||||
- calico-dhcp-age
|
||||
tags:
|
||||
- skip_ansible_lint
|
||||
|
||||
- name: Ensure that the Calico Felix agent is alive
|
||||
command: openstack --os-cloud default network agent list -f json
|
||||
register: calico_felix_agent
|
||||
@ -36,5 +39,8 @@
|
||||
with_items: "{{ ansible_play_hosts }}"
|
||||
delegate_to: "{{ groups['utility_all'][0] }}"
|
||||
run_once: yes
|
||||
tags:
|
||||
- skip_ansible_lint
|
||||
|
||||
vars_files:
|
||||
- common/test-vars.yml
|
||||
|
@ -31,18 +31,28 @@
|
||||
python -m subunit.run discover dragonflow.tests.fullstack > /var/log/dragonflow-fullstack.subunit
|
||||
subunit2html /var/log/dragonflow-fullstack.subunit /var/log/dragonflow-fullstack.html
|
||||
register: dragonflow_fullstack_tests
|
||||
tags:
|
||||
- skip_ansible_lint
|
||||
|
||||
- name: Ensure etc folder exists in logs
|
||||
file:
|
||||
path: /var/log/etc
|
||||
state: directory
|
||||
|
||||
- name: Copy config files
|
||||
shell: |
|
||||
cp -r /etc/neutron /var/log/etc
|
||||
register: dragonflow_fullstack_log_copy
|
||||
tags:
|
||||
- skip_ansible_lint
|
||||
|
||||
- name: Verify tests have passed
|
||||
shell: |
|
||||
. {{ tempest_venv_bin }}/activate
|
||||
subunit-filter --without {{ dragonflow_fullstack_failing_tests | join(' --without ') }} -s /var/log/dragonflow-fullstack.subunit | subunit2pyunit
|
||||
exit $?
|
||||
tags:
|
||||
- skip_ansible_lint
|
||||
|
||||
vars_files:
|
||||
- common/test-vars.yml
|
||||
|
Loading…
Reference in New Issue
Block a user