f3ddf1bc95
* Rebase * Completed integration tests * Added unit tests * Added warning detection * Updated tests * Completed tests * Linting Linting II YAML Lint Linting * Updated review changes * Updated examples, fixed reviews * Added failure condition * Resolved merge conflict
34 lines
801 B
YAML
34 lines
801 B
YAML
---
|
|
- debug:
|
|
msg: Start nxos_acl_interfaces gathered integration tests connection={{ansible_connection}}"
|
|
|
|
- include_tasks: populate_config.yaml
|
|
|
|
- block:
|
|
- name: Gather acl interfaces facts
|
|
nxos_facts: &facts
|
|
gather_subset:
|
|
- "!all"
|
|
- "!min"
|
|
gather_network_resources: acl_interfaces
|
|
|
|
- name: Gathered
|
|
nxos_acl_interfaces: &gathered
|
|
state: gathered
|
|
register: result
|
|
|
|
- assert:
|
|
that:
|
|
- "result.changed == false"
|
|
- "ansible_facts.network_resources.acl_interfaces == result.gathered"
|
|
|
|
- name: Idempotence - Gathered
|
|
nxos_acl_interfaces: *gathered
|
|
register: result
|
|
|
|
- assert:
|
|
that:
|
|
- "result.changed == false"
|
|
|
|
always:
|
|
- include_tasks: remove_config.yaml
|