mirror of https://github.com/ansible/ansible.git
Reflect new process for network integration tests (#35577)
With `ansible-test network-integration` we don't need the top level yaml files except NXOS and Dell (for now)pull/35582/head
parent
b5abc69125
commit
adf76b7d3f
@ -1,42 +0,0 @@
|
||||
---
|
||||
- hosts: asa
|
||||
gather_facts: no
|
||||
connection: local
|
||||
|
||||
vars:
|
||||
limit_to: "*"
|
||||
debug: false
|
||||
|
||||
# Run the tests within blocks allows the next module to be tested if the previous one fails.
|
||||
# This is done to allow https://github.com/ansible/dci-partner-ansible/ to run the full set of tests.
|
||||
|
||||
|
||||
tasks:
|
||||
- set_fact:
|
||||
test_failed: false
|
||||
- block:
|
||||
- include_role:
|
||||
name: asa_command
|
||||
when: "limit_to in ['*', 'asa_command']"
|
||||
rescue:
|
||||
- set_fact: test_failed=true
|
||||
|
||||
- block:
|
||||
- include_role:
|
||||
name: asa_config
|
||||
when: "limit_to in ['*', 'asa_config']"
|
||||
rescue:
|
||||
- set_fact: test_failed=true
|
||||
|
||||
- block:
|
||||
- include_role:
|
||||
name: asa_acl
|
||||
when: "limit_to in ['*', 'asa_acl']"
|
||||
rescue:
|
||||
- set_fact: test_failed=true
|
||||
|
||||
###########
|
||||
- name: Has any previous test failed?
|
||||
fail:
|
||||
msg: "One or more tests failed, check log for details"
|
||||
when: test_failed
|
@ -1,158 +0,0 @@
|
||||
---
|
||||
- hosts: eos
|
||||
gather_facts: no
|
||||
connection: local
|
||||
|
||||
vars:
|
||||
limit_to: "*"
|
||||
debug: false
|
||||
|
||||
# Run the tests within blocks allows the next module to be tested if the previous one fails.
|
||||
# This is done to allow https://github.com/ansible/dci-partner-ansible/ to run the full set of tests.
|
||||
|
||||
|
||||
tasks:
|
||||
- set_fact:
|
||||
test_failed: false
|
||||
failed_modules: []
|
||||
|
||||
- block:
|
||||
- include_role:
|
||||
name: eos_banner
|
||||
when: "limit_to in ['*', 'eos_banner']"
|
||||
rescue:
|
||||
- set_fact:
|
||||
failed_modules: "{{ failed_modules }} + [ 'eos_banner' ]"
|
||||
test_failed: true
|
||||
- block:
|
||||
- include_role:
|
||||
name: eos_command
|
||||
when: "limit_to in ['*', 'eos_command']"
|
||||
rescue:
|
||||
- set_fact:
|
||||
failed_modules: "{{ failed_modules }} + [ 'eos_command' ]"
|
||||
test_failed: true
|
||||
- block:
|
||||
- include_role:
|
||||
name: eos_config
|
||||
when: "limit_to in ['*', 'eos_config']"
|
||||
rescue:
|
||||
- set_fact:
|
||||
failed_modules: "{{ failed_modules }} + [ 'eos_config' ]"
|
||||
test_failed: true
|
||||
|
||||
- block:
|
||||
- include_role:
|
||||
name: eos_facts
|
||||
when: "limit_to in ['*', 'eos_facts']"
|
||||
rescue:
|
||||
- set_fact:
|
||||
failed_modules: "{{ failed_modules }} + [ 'eos_facts' ]"
|
||||
test_failed: true
|
||||
|
||||
- block:
|
||||
- include_role:
|
||||
name: eos_eapi
|
||||
when: "limit_to in ['*', 'eos_eapi']"
|
||||
rescue:
|
||||
- set_fact:
|
||||
failed_modules: "{{ failed_modules }} + [ 'eos_eapi' ]"
|
||||
test_failed: true
|
||||
|
||||
- block:
|
||||
- include_role:
|
||||
name: eos_system
|
||||
when: "limit_to in ['*', 'eos_system']"
|
||||
rescue:
|
||||
- set_fact:
|
||||
failed_modules: "{{ failed_modules }} + [ 'eos_system' ]"
|
||||
test_failed: true
|
||||
|
||||
- block:
|
||||
- include_role:
|
||||
name: eos_user
|
||||
when: "limit_to in ['*', 'eos_user']"
|
||||
rescue:
|
||||
- set_fact:
|
||||
failed_modules: "{{ failed_modules }} + [ 'eos_user' ]"
|
||||
test_failed: true
|
||||
|
||||
- block:
|
||||
- include_role:
|
||||
name: eos_vlan
|
||||
when: "limit_to in ['*', 'eos_vlan']"
|
||||
rescue:
|
||||
- set_fact:
|
||||
failed_modules: "{{ failed_modules }} + [ 'eos_vlan' ]"
|
||||
test_failed: true
|
||||
|
||||
- block:
|
||||
- include_role:
|
||||
name: eos_vrf
|
||||
when: "limit_to in ['*', 'eos_vrf']"
|
||||
rescue:
|
||||
- set_fact:
|
||||
failed_modules: "{{ failed_modules }} + [ 'eos_vrf' ]"
|
||||
test_failed: true
|
||||
|
||||
- block:
|
||||
- include_role:
|
||||
name: eos_logging
|
||||
when: "limit_to in ['*', 'eos_logging']"
|
||||
rescue:
|
||||
- set_fact:
|
||||
failed_modules: "{{ failed_modules }} + [ 'eos_logging' ]"
|
||||
test_failed: true
|
||||
|
||||
- block:
|
||||
- include_role:
|
||||
name: eos_static_route
|
||||
when: "limit_to in ['*', 'eos_static_route']"
|
||||
rescue:
|
||||
- set_fact:
|
||||
failed_modules: "{{ failed_modules }} + [ 'eos_static_route' ]"
|
||||
test_failed: true
|
||||
|
||||
- block:
|
||||
- include_role:
|
||||
name: eos_linkagg
|
||||
when: "limit_to in ['*', 'eos_linkagg']"
|
||||
rescue:
|
||||
- set_fact:
|
||||
failed_modules: "{{ failed_modules }} + [ 'eos_linkagg' ]"
|
||||
test_failed: true
|
||||
|
||||
- block:
|
||||
- include_role:
|
||||
name: eos_l3_interface
|
||||
when: "limit_to in ['*', 'eos_l3_interface']"
|
||||
rescue:
|
||||
- set_fact:
|
||||
failed_modules: "{{ failed_modules }} + [ 'eos_l3_interface' ]"
|
||||
test_failed: true
|
||||
|
||||
- block:
|
||||
- include_role:
|
||||
name: eos_interface
|
||||
when: "limit_to in ['*', 'eos_interface']"
|
||||
rescue:
|
||||
- set_fact:
|
||||
failed_modules: "{{ failed_modules }} + [ 'eos_interface' ]"
|
||||
test_failed: true
|
||||
|
||||
- block:
|
||||
- include_role:
|
||||
name: eos_lldp
|
||||
when: "limit_to in ['*', 'eos_lldp']"
|
||||
rescue:
|
||||
- set_fact:
|
||||
failed_modules: "{{ failed_modules }} + [ 'eos_lldp' ]"
|
||||
test_failed: true
|
||||
###########
|
||||
- debug: var=failed_modules
|
||||
when: test_failed
|
||||
|
||||
- name: Has any previous test failed?
|
||||
fail:
|
||||
msg: "One or more tests failed, check log for details"
|
||||
when: test_failed
|
@ -1,44 +0,0 @@
|
||||
# Inventory file used by networking tests, see README.md for more information
|
||||
|
||||
[all:vars]
|
||||
ansible_python_interpreter=python
|
||||
|
||||
[eos]
|
||||
#veos-dut-01
|
||||
veos01 ansible_network_os=eos
|
||||
|
||||
|
||||
[nxos]
|
||||
nxos01 ansible_network_os=nxos
|
||||
|
||||
[iosxr]
|
||||
iosxr01 ansible_network_os=iosxr
|
||||
|
||||
[ios]
|
||||
ios01 ansible_network_os=ios
|
||||
#csr01
|
||||
|
||||
[junos]
|
||||
vsrx01 ansible_network_os=junos
|
||||
|
||||
[cumulus]
|
||||
clvx01
|
||||
|
||||
[vyos]
|
||||
vyos02 ansible_network_os=vyos
|
||||
|
||||
[ops]
|
||||
ops01
|
||||
|
||||
[asa]
|
||||
asa01
|
||||
|
||||
[platform_agnostic:children]
|
||||
ios
|
||||
iosxr
|
||||
eos
|
||||
junos
|
||||
vyos
|
||||
nxos
|
||||
|
||||
# vim: nospell filetype=dosini
|
@ -1,150 +0,0 @@
|
||||
---
|
||||
- hosts: ios
|
||||
gather_facts: no
|
||||
connection: local
|
||||
|
||||
vars:
|
||||
limit_to: "*"
|
||||
debug: false
|
||||
# Run the tests within blocks allows the next module to be tested if the previous one fails.
|
||||
# This is done to allow https://github.com/ansible/dci-partner-ansible/ to run the full set of tests.
|
||||
|
||||
|
||||
tasks:
|
||||
- set_fact:
|
||||
test_failed: false
|
||||
failed_modules: []
|
||||
- block:
|
||||
- include_role:
|
||||
name: ios_banner
|
||||
when: "limit_to in ['*', 'ios_banner']"
|
||||
rescue:
|
||||
- set_fact:
|
||||
failed_modules: "{{ failed_modules }} + [ 'ios_banner' ]"
|
||||
test_failed: true
|
||||
- block:
|
||||
- include_role:
|
||||
name: ios_command
|
||||
when: "limit_to in ['*', 'ios_command']"
|
||||
rescue:
|
||||
- set_fact:
|
||||
failed_modules: "{{ failed_modules }} + [ 'ios_command' ]"
|
||||
test_failed: true
|
||||
|
||||
- block:
|
||||
- include_role:
|
||||
name: ios_config
|
||||
when: "limit_to in ['*', 'ios_config']"
|
||||
rescue:
|
||||
- set_fact:
|
||||
failed_modules: "{{ failed_modules }} + [ 'ios_config' ]"
|
||||
test_failed: true
|
||||
|
||||
- block:
|
||||
- include_role:
|
||||
name: ios_facts
|
||||
when: "limit_to in ['*', 'ios_facts']"
|
||||
rescue:
|
||||
- set_fact:
|
||||
failed_modules: "{{ failed_modules }} + [ 'ios_facts' ]"
|
||||
test_failed: true
|
||||
|
||||
- block:
|
||||
- include_role:
|
||||
name: ios_system
|
||||
when: "limit_to in ['*', 'ios_system']"
|
||||
rescue:
|
||||
- set_fact:
|
||||
failed_modules: "{{ failed_modules }} + [ 'ios_system' ]"
|
||||
test_failed: true
|
||||
|
||||
- block:
|
||||
- include_role:
|
||||
name: ios_user
|
||||
when: "limit_to in ['*', 'ios_user']"
|
||||
rescue:
|
||||
- set_fact:
|
||||
failed_modules: "{{ failed_modules }} + [ 'ios_user' ]"
|
||||
test_failed: true
|
||||
|
||||
- block:
|
||||
- include_role:
|
||||
name: ios_static_route
|
||||
when: "limit_to in ['*', 'ios_static_route']"
|
||||
rescue:
|
||||
- set_fact:
|
||||
failed_modules: "{{ failed_modules }} + [ 'ios_static_route' ]"
|
||||
test_failed: true
|
||||
|
||||
- block:
|
||||
- include_role:
|
||||
name: ios_logging
|
||||
when: "limit_to in ['*', 'ios_logging']"
|
||||
rescue:
|
||||
- set_fact:
|
||||
failed_modules: "{{ failed_modules }} + [ 'ios_logging' ]"
|
||||
test_failed: true
|
||||
|
||||
- block:
|
||||
- include_role:
|
||||
name: ios_interface
|
||||
when: "limit_to in ['*', 'ios_interface']"
|
||||
rescue:
|
||||
- set_fact:
|
||||
failed_modules: "{{ failed_modules }} + [ 'ios_logging' ]"
|
||||
test_failed: true
|
||||
|
||||
- block:
|
||||
- include_role:
|
||||
name: ios_ping
|
||||
when: "limit_to in ['*', 'ios_ping']"
|
||||
rescue:
|
||||
- set_fact:
|
||||
failed_modules: "{{ failed_modules }} + [ 'ios_ping' ]"
|
||||
test_failed: true
|
||||
|
||||
- block:
|
||||
- include_role:
|
||||
name: ios_l3_interface
|
||||
when: "limit_to in ['*', 'ios_l3_interface']"
|
||||
rescue:
|
||||
- set_fact:
|
||||
failed_modules: "{{ failed_modules }} + [ 'ios_l3_interface' ]"
|
||||
test_failed: true
|
||||
|
||||
- block:
|
||||
- include_role:
|
||||
name: ios_lldp
|
||||
when: "limit_to in ['*', 'ios_lldp']"
|
||||
rescue:
|
||||
- set_fact:
|
||||
failed_modules: "{{ failed_modules }} + [ 'ios_lldp' ]"
|
||||
test_failed: true
|
||||
|
||||
- block:
|
||||
- include_role:
|
||||
name: ios_vlan
|
||||
when: "limit_to in ['*', 'ios_vlan']"
|
||||
rescue:
|
||||
- set_fact:
|
||||
failed_modules: "{{ failed_modules }} + [ 'ios_vlan' ]"
|
||||
test_failed: true
|
||||
|
||||
- block:
|
||||
- include_role:
|
||||
name: ios_linkagg
|
||||
when: "limit_to in ['*', 'ios_linkagg']"
|
||||
rescue:
|
||||
- set_fact:
|
||||
failed_modules: "{{ failed_modules }} + [ 'ios_linkagg' ]"
|
||||
test_failed: true
|
||||
|
||||
|
||||
###########
|
||||
- debug: var=failed_modules
|
||||
when: test_failed
|
||||
|
||||
- name: Has any previous test failed?
|
||||
fail:
|
||||
msg: "One or more tests failed, check log for details"
|
||||
when: test_failed
|
@ -1,97 +0,0 @@
|
||||
---
|
||||
- hosts: iosxr
|
||||
gather_facts: no
|
||||
connection: local
|
||||
|
||||
vars:
|
||||
limit_to: "*"
|
||||
debug: false
|
||||
|
||||
# Run the tests within blocks allows the next module to be tested if the previous one fails.
|
||||
# This is done to allow https://github.com/ansible/dci-partner-ansible/ to run the full set of tests.
|
||||
|
||||
|
||||
tasks:
|
||||
- set_fact:
|
||||
test_failed: false
|
||||
failed_modules: []
|
||||
- block:
|
||||
- include_role:
|
||||
name: iosxr_command
|
||||
when: "limit_to in ['*', 'iosxr_command']"
|
||||
rescue:
|
||||
- set_fact:
|
||||
failed_modules: "{{ failed_modules }} + [ 'iosxr_command' ]"
|
||||
test_failed: true
|
||||
|
||||
- block:
|
||||
- include_role:
|
||||
name: iosxr_config
|
||||
when: "limit_to in ['*', 'iosxr_config']"
|
||||
rescue:
|
||||
- set_fact:
|
||||
failed_modules: "{{ failed_modules }} + [ 'iosxr_config' ]"
|
||||
test_failed: true
|
||||
|
||||
- block:
|
||||
- include_role:
|
||||
name: iosxr_facts
|
||||
when: "limit_to in ['*', 'iosxr_facts']"
|
||||
rescue:
|
||||
- set_fact:
|
||||
failed_modules: "{{ failed_modules }} + [ 'iosxr_facts' ]"
|
||||
test_failed: true
|
||||
|
||||
- block:
|
||||
- include_role:
|
||||
name: iosxr_system
|
||||
when: "limit_to in ['*', 'iosxr_system']"
|
||||
rescue:
|
||||
- set_fact:
|
||||
test_failed: true
|
||||
failed_modules: "{{ failed_modules }} + [ 'iosxr_system' ]"
|
||||
|
||||
- block:
|
||||
- include_role:
|
||||
name: iosxr_user
|
||||
when: "limit_to in ['*', 'iosxr_user']"
|
||||
rescue:
|
||||
- set_fact:
|
||||
failed_modules: "{{ failed_modules }} + [ 'iosxr_user' ]"
|
||||
test_failed: true
|
||||
|
||||
- block:
|
||||
- include_role:
|
||||
name: iosxr_banner
|
||||
when: "limit_to in ['*', 'iosxr_banner']"
|
||||
rescue:
|
||||
- set_fact:
|
||||
failed_modules: "{{ failed_modules }} + [ 'iosxr_banner' ]"
|
||||
test_failed: true
|
||||
|
||||
- block:
|
||||
- include_role:
|
||||
name: iosxr_logging
|
||||
when: "limit_to in ['*', 'iosxr_logging']"
|
||||
rescue:
|
||||
- set_fact:
|
||||
failed_modules: "{{ failed_modules }} + [ 'iosxr_logging' ]"
|
||||
test_failed: true
|
||||
|
||||
- block:
|
||||
- include_role:
|
||||
name: iosxr_interface
|
||||
when: "limit_to in ['*', 'iosxr_interface']"
|
||||
rescue:
|
||||
- set_fact:
|
||||
failed_modules: "{{ failed_modules }} + [ 'iosxr_interface' ]"
|
||||
test_failed: true
|
||||
|
||||
###########
|
||||
- debug: var=failed_modules
|
||||
when: test_failed
|
||||
|
||||
- name: Has any previous test failed?
|
||||
fail:
|
||||
msg: "One or more tests failed, check log for details"
|
||||
when: test_failed
|
@ -1,186 +0,0 @@
|
||||
---
|
||||
- hosts: junos
|
||||
gather_facts: no
|
||||
connection: local
|
||||
|
||||
vars:
|
||||
limit_to: "*"
|
||||
debug: false
|
||||
|
||||
|
||||
# Run the tests within blocks allows the next module to be tested if the previous one fails.
|
||||
# This is done to allow https://github.com/ansible/dci-partner-ansible/ to run the full set of tests.
|
||||
|
||||
|
||||
tasks:
|
||||
- set_fact:
|
||||
test_failed: false
|
||||
failed_modules: []
|
||||
- block:
|
||||
- include_role:
|
||||
name: junos_command
|
||||
when: "limit_to in ['*', 'junos_command']"
|
||||
rescue:
|
||||
- set_fact:
|
||||
failed_modules: "{{ failed_modules }} + [ 'junos_command' ]"
|
||||
test_failed: true
|
||||
|
||||
- block:
|
||||
- include_role:
|
||||
name: junos_config
|
||||
when: "limit_to in ['*', 'junos_config']"
|
||||
rescue:
|
||||
- set_fact:
|
||||
failed_modules: "{{ failed_modules }} + [ 'junos_config' ]"
|
||||
test_failed: true
|
||||
|
||||
- block:
|
||||
- include_role:
|
||||
name: junos_facts
|
||||
when: "limit_to in ['*', 'junos_facts']"
|
||||
rescue:
|
||||
- set_fact:
|
||||
failed_modules: "{{ failed_modules }} + [ 'junos_facts' ]"
|
||||
test_failed: true
|
||||
|
||||
- block:
|
||||
- include_role:
|
||||
name: junos_netconf
|
||||
when: "limit_to in ['*', 'junos_netconf']"
|
||||
rescue:
|
||||
- set_fact:
|
||||
failed_modules: "{{ failed_modules }} + [ 'junos_netconf' ]"
|
||||
test_failed: true
|
||||
|
||||
- block:
|
||||
- include_role:
|
||||
name: junos_rpc
|
||||
when: "limit_to in ['*', 'junos_rpc']"
|
||||
rescue:
|
||||
- set_fact:
|
||||
failed_modules: "{{ failed_modules }} + [ 'junos_rpc' ]"
|
||||
test_failed: true
|
||||
|
||||
- block:
|
||||
- include_role:
|
||||
name: junos_vlan
|
||||
when: "limit_to in ['*', 'junos_vlan']"
|
||||
rescue:
|
||||
- set_fact:
|
||||
failed_modules: "{{ failed_modules }} + [ 'junos_vlan' ]"
|
||||
test_failed: true
|
||||
|
||||
- block:
|
||||
- include_role:
|
||||
name: junos_interface
|
||||
when: "limit_to in ['*', 'junos_interface']"
|
||||
rescue:
|
||||
- set_fact:
|
||||
failed_modules: "{{ failed_modules }} + [ 'junos_interface' ]"
|
||||
test_failed: true
|
||||
- block:
|
||||
- include_role:
|
||||
name: junos_banner
|
||||
when: "limit_to in ['*', 'junos_banner']"
|
||||
rescue:
|
||||
- set_fact:
|
||||
failed_modules: "{{ failed_modules }} + [ 'junos_banner' ]"
|
||||
test_failed: true
|
||||
|
||||
- block:
|
||||
- include_role:
|
||||
name: junos_system
|
||||
when: "limit_to in ['*', 'junos_system']"
|
||||
rescue:
|
||||
- set_fact:
|
||||
failed_modules: "{{ failed_modules }} + [ 'junos_system' ]"
|
||||
test_failed: true
|
||||
- block:
|
||||
- include_role:
|
||||
name: junos_logging
|
||||
when: "limit_to in ['*', 'junos_logging']"
|
||||
rescue:
|
||||
- set_fact:
|
||||
failed_modules: "{{ failed_modules }} + [ 'junos_logging' ]"
|
||||
test_failed: true
|
||||
|
||||
- block:
|
||||
- include_role:
|
||||
name: junos_user
|
||||
when: "limit_to in ['*', 'junos_user']"
|
||||
rescue:
|
||||
- set_fact:
|
||||
failed_modules: "{{ failed_modules }} + [ 'junos_user' ]"
|
||||
test_failed: true
|
||||
|
||||
- block:
|
||||
- include_role:
|
||||
name: junos_static_route
|
||||
when: "limit_to in ['*', 'junos_static_route']"
|
||||
rescue:
|
||||
- set_fact:
|
||||
failed_modules: "{{ failed_modules }} + [ 'junos_static_route' ]"
|
||||
test_failed: true
|
||||
|
||||
- block:
|
||||
- include_role:
|
||||
name: junos_linkagg
|
||||
when: "limit_to in ['*', 'junos_linkagg']"
|
||||
rescue:
|
||||
- set_fact:
|
||||
failed_modules: "{{ failed_modules }} + [ 'junos_linkagg' ]"
|
||||
test_failed: true
|
||||
|
||||
- block:
|
||||
- include_role:
|
||||
name: junos_l3_interface
|
||||
when: "limit_to in ['*', 'junos_l3_interface']"
|
||||
rescue:
|
||||
- set_fact:
|
||||
failed_modules: "{{ failed_modules }} + [ 'junos_l3_interface' ]"
|
||||
test_failed: true
|
||||
|
||||
- block:
|
||||
- include_role:
|
||||
name: junos_lldp
|
||||
when: "limit_to in ['*', 'junos_lldp']"
|
||||
rescue:
|
||||
- set_fact:
|
||||
failed_modules: "{{ failed_modules }} + [ 'junos_lldp' ]"
|
||||
test_failed: true
|
||||
|
||||
- block:
|
||||
- include_role:
|
||||
name: junos_lldp_interface
|
||||
when: "limit_to in ['*', 'junos_lldp_interface']"
|
||||
rescue:
|
||||
- set_fact:
|
||||
failed_modules: "{{ failed_modules }} + [ 'junos_lldp_interface' ]"
|
||||
test_failed: true
|
||||
|
||||
- block:
|
||||
- include_role:
|
||||
name: junos_vrf
|
||||
when: "limit_to in ['*', 'junos_vrf']"
|
||||
rescue:
|
||||
- set_fact:
|
||||
failed_modules: "{{ failed_modules }} + [ 'junos_vrf' ]"
|
||||
test_failed: true
|
||||
|
||||
- block:
|
||||
- include_role:
|
||||
name: junos_l2_interface
|
||||
when: "limit_to in ['*', 'junos_l2_interface']"
|
||||
rescue:
|
||||
- set_fact:
|
||||
failed_modules: "{{ failed_modules }} + [ 'junos_l2_interface' ]"
|
||||
test_failed: true
|
||||
|
||||
###########
|
||||
- debug: var=failed_modules
|
||||
when: test_failed
|
||||
|
||||
- name: Has any previous test failed?
|
||||
fail:
|
||||
msg: "One or more tests failed, check log for details"
|
||||
when: test_failed
|
@ -1,14 +0,0 @@
|
||||
---
|
||||
- { include: asa.yaml }
|
||||
- { include: eos.yaml }
|
||||
- { include: ios.yaml }
|
||||
- { include: iosxr.yaml }
|
||||
- { include: nxos.yaml }
|
||||
- { include: junos.yaml }
|
||||
- { include: vyos.yaml }
|
||||
- { include: ops.yaml }
|
||||
- { include: ovs.yaml }
|
||||
- { include: dellos10.yaml }
|
||||
- { include: dellos9.yaml }
|
||||
- { include: dellos6.yaml }
|
||||
- { include: nuage.yaml }
|
@ -1,29 +0,0 @@
|
||||
---
|
||||
- hosts: ops
|
||||
gather_facts: no
|
||||
connection: local
|
||||
|
||||
vars:
|
||||
limit_to: "*"
|
||||
debug: false
|
||||
|
||||
# Run the tests within blocks allows the next module to be tested if the previous one fails.
|
||||
# This is done to allow https://github.com/ansible/dci-partner-ansible/ to run the full set of tests.
|
||||
|
||||
|
||||
tasks:
|
||||
- set_fact:
|
||||
test_failed: false
|
||||
- block:
|
||||
- include_role:
|
||||
name: ops_command
|
||||
when: "limit_to in ['*', 'ops_command']"
|
||||
rescue:
|
||||
- set_fact: test_failed=true
|
||||
|
||||
|
||||
###########
|
||||
- name: Has any previous test failed?
|
||||
fail:
|
||||
msg: "One or more tests failed, check log for details"
|
||||
when: test_failed
|
@ -1,142 +0,0 @@
|
||||
---
|
||||
- hosts: vyos
|
||||
gather_facts: no
|
||||
connection: local
|
||||
|
||||
vars:
|
||||
limit_to: "*"
|
||||
debug: false
|
||||
|
||||
# Run the tests within blocks allows the next module to be tested if the previous one fails.
|
||||
# This is done to allow https://github.com/ansible/dci-partner-ansible/ to run the full set of tests.
|
||||
|
||||
|
||||
tasks:
|
||||
- set_fact:
|
||||
test_failed: false
|
||||
failed_modules: []
|
||||
- block:
|
||||
- include_role:
|
||||
name: vyos_command
|
||||
when: "limit_to in ['*', 'vyos_command']"
|
||||
rescue:
|
||||
- set_fact:
|
||||
failed_modules: "{{ failed_modules }} + [ 'vyos_command' ]"
|
||||
test_failed: true
|
||||
|
||||
- block:
|
||||
- include_role:
|
||||
name: vyos_config
|
||||
when: "limit_to in ['*', 'vyos_config']"
|
||||
rescue:
|
||||
- set_fact:
|
||||
failed_modules: "{{ failed_modules }} + [ 'vyos_config' ]"
|
||||
test_failed: true
|
||||
|
||||
- block:
|
||||
- include_role:
|
||||
name: vyos_user
|
||||
when: "limit_to in ['*', 'vyos_user']"
|
||||
rescue:
|
||||
- set_fact:
|
||||
failed_modules: "{{ failed_modules }} + [ 'vyos_user' ]"
|
||||
test_failed: true
|
||||
|
||||
- block:
|
||||
- include_role:
|
||||
name: vyos_banner
|
||||
when: "limit_to in ['*', 'vyos_banner']"
|
||||
rescue:
|
||||
- set_fact:
|
||||
failed_modules: "{{ failed_modules }} + [ 'vyos_banner' ]"
|
||||
test_failed: true
|
||||
|
||||
- block:
|
||||
- include_role:
|
||||
name: vyos_linkagg
|
||||
when: "limit_to in ['*', 'vyos_linkagg']"
|
||||
rescue:
|
||||
- set_fact:
|
||||
failed_modules: "{{ failed_modules }} + [ 'vyos_linkagg' ]"
|
||||
test_failed: true
|
||||
|
||||
- block:
|
||||
- include_role:
|
||||
name: vyos_static_route
|
||||
when: "limit_to in ['*', 'vyos_static_route']"
|
||||
rescue:
|
||||
- set_fact:
|
||||
failed_modules: "{{ failed_modules }} + [ 'vyos_static_route' ]"
|
||||
test_failed: true
|
||||
|
||||
- block:
|
||||
- include_role:
|
||||
name: vyos_l3_interface
|
||||
when: "limit_to in ['*', 'vyos_l3_interface']"
|
||||
rescue:
|
||||
- set_fact:
|
||||
failed_modules: "{{ failed_modules }} + [ 'vyos_l3_interface' ]"
|
||||
test_failed: true
|
||||
|
||||
- block:
|
||||
- include_role:
|
||||
name: vyos_logging
|
||||
when: "limit_to in ['*', 'vyos_logging']"
|
||||
rescue:
|
||||
- set_fact:
|
||||
failed_modules: "{{ failed_modules }} + [ 'vyos_logging' ]"
|
||||
test_failed: true
|
||||
|
||||
- block:
|
||||
- include_role:
|
||||
name: vyos_lldp
|
||||
when: "limit_to in ['*', 'vyos_lldp']"
|
||||
rescue:
|
||||
- set_fact:
|
||||
failed_modules: "{{ failed_modules }} + [ 'vyos_lldp' ]"
|
||||
test_failed: true
|
||||
|
||||
- block:
|
||||
- include_role:
|
||||
name: vyos_lldp_interface
|
||||
when: "limit_to in ['*', 'vyos_lldp_interface']"
|
||||
rescue:
|
||||
- set_fact:
|
||||
failed_modules: "{{ failed_modules }} + [ 'vyos_lldp_interface' ]"
|
||||
test_failed: true
|
||||
|
||||
- block:
|
||||
- include_role:
|
||||
name: vyos_interface
|
||||
when: "limit_to in ['*', 'vyos_interface']"
|
||||
rescue:
|
||||
- set_fact:
|
||||
failed_modules: "{{ failed_modules }} + [ 'vyos_interface' ]"
|
||||
test_failed: true
|
||||
|
||||
- block:
|
||||
- include_role:
|
||||
name: vyos_facts
|
||||
when: "limit_to in ['*', 'vyos_facts']"
|
||||
rescue:
|
||||
- set_fact:
|
||||
failed_modules: "{{ failed_modules }} + [ 'vyos_facts' ]"
|
||||
test_failed: true
|
||||
|
||||
- block:
|
||||
- include_role:
|
||||
name: vyos_vlan
|
||||
when: "limit_to in ['*', 'vyos_vlan']"
|
||||
rescue:
|
||||
- set_fact:
|
||||
failed_modules: "{{ failed_modules }} + [ 'vyos_vlan' ]"
|
||||
test_failed: true
|
||||
|
||||
###########
|
||||
- debug: var=failed_modules
|
||||
when: test_failed
|
||||
|
||||
- name: Has any previous test failed?
|
||||
fail:
|
||||
msg: "One or more tests failed, check log for details"
|
||||
when: test_failed
|
Loading…
Reference in New Issue