1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
community.general/test/integration/targets/nxos_vxlan_vtep/tests/common/sanity.yaml
Matt Martz 4fe08441be Deprecate tests used as filters (#32361)
* Warn on tests used as filters

* Update docs, add aliases for tests that fit more gramatically with test syntax

* Fix rst formatting

* Add successful filter, alias of success

* Remove renamed_deprecation, it was overkill

* Make directory alias for is_dir

* Update tests to use proper jinja test syntax

* Update additional documentation, living outside of YAML files, to reflect proper jinja test syntax

* Add conversion script, porting guide updates, and changelog updates

* Update newly added uses of tests as filters

* No underscore variable

* Convert recent tests as filter changes to win_stat

* Fix some changes related to rebasing a few integration tests

* Make tests_as_filters_warning explicitly accept the name of the test, instead of inferring the name

* Add test for tests_as_filters_warning

* Update tests as filters in newly added/modified tests

* Address recent changes to several integration tests

* Address recent changes in cs_vpc
2017-11-27 17:58:08 -05:00

105 lines
2.5 KiB
YAML

---
- - debug: msg="START TRANSPORT:{{ connection.transport }} nxos_vxlan_vtep sanity test"
- block:
- name: "Apply N7K specific setup config"
include: targets/nxos_vxlan_vtep/tasks/platform/n7k/setup.yaml
when: platform is match('N7K')
- name: "Enable feature nv overlay"
nxos_config:
commands:
- feature nv overlay
provider: "{{ connection }}"
match: none
- block:
- name: configure vxlan_vtep
nxos_vxlan_vtep: &configure9
interface: nve1
description: default
host_reachability: true
source_interface: Loopback0
source_interface_hold_down_time: 30
shutdown: true
provider: "{{ connection }}"
register: result
- assert: &true
that:
- "result.changed == true"
- name: "Conf Idempotence"
nxos_vxlan_vtep: *configure9
register: result
- assert: &false
that:
- "result.changed == false"
when: (platform is search('N9K'))
- block:
- name: configure vxlan_vtep
nxos_vxlan_vtep: &configure7
interface: nve1
description: default
host_reachability: true
source_interface: Loopback0
shutdown: true
provider: "{{ connection }}"
register: result
- assert:
that:
- "result.changed == true"
- name: "Conf Idempotence"
nxos_vxlan_vtep: *configure7
register: result
- assert:
that:
- "result.changed == false"
when: (platform is search('N7K'))
- name: remove vxlan_vtep
nxos_vxlan_vtep: &remove
interface: nve1
description: default
host_reachability: true
source_interface: Loopback0
source_interface_hold_down_time: 30
shutdown: true
state: absent
provider: "{{ connection }}"
register: result
- assert:
that:
- "result.changed == true"
- name: "Remove Idempotence"
nxos_vxlan_vtep: *remove
register: result
- assert:
that:
- "result.changed == false"
when: (platform is search("N7K|N9K"))
always:
- name: "Apply N7K specific cleanup config"
include: targets/nxos_vxlan_vtep/tasks/platform/n7k/cleanup.yaml
when: platform is match('N7K')
- name: "Disable feature nv overlay"
nxos_feature:
feature: nve
state: disabled
provider: "{{ connection }}"
ignore_errors: yes
- debug: msg="END TRANSPORT:{{ connection.transport }} nxos_vxlan_vtep sanity test"