600d6278f9
* Added fix for bug # 54400 * Adding files for RM static_routes * Added Integration tests * Revert "Added fix for bug # 54400" This reverts commitbf42db4269
. * Revert "Adding files for RM static_routes" This reverts commitdafdd92d43
. * Revert "Added Integration tests" This reverts commit129dc87682
. * Adding files for RM static_routes * Added Integration tests * Corrected lint errors * Added fix for bug # 54400 * Revert "Added fix for bug # 54400" This reverts commitbf42db4269
. * Revert "Adding files for RM static_routes" This reverts commitdafdd92d43
. * Revert "Added Integration tests" This reverts commit129dc87682
. * acl_interfaces * acl_interfaces in progress * Adding unit testcases * Addresses Paul's review comments * worked on shippable errors * indentation errors * Modified unit tests * indent issues * indent issues * eos specfic changes * making the integration tcs skip the zuul run * addressed review comments * added required:True documentaiton
51 lines
1.2 KiB
YAML
51 lines
1.2 KiB
YAML
---
|
|
- debug:
|
|
msg: "Start eos_acl_interfaces merged integration tests ansible_connection={{ ansible_connection }}"
|
|
|
|
|
|
- block:
|
|
|
|
- name: merge given acl interfaces configuration
|
|
eos_acl_interfaces: &merged
|
|
config:
|
|
- name: "{{ Interfaces['int1'] }}"
|
|
access_groups:
|
|
- afi: ipv4
|
|
acls:
|
|
- name: aclv401
|
|
direction: in
|
|
- name: aclv402
|
|
direction: out
|
|
- afi: ipv6
|
|
acls:
|
|
- name: aclv601
|
|
direction: out
|
|
- name: "{{ Interfaces['int2'] }}"
|
|
access_groups:
|
|
- afi: ipv6
|
|
acls:
|
|
- name: aclv601
|
|
direction: in
|
|
state: merged
|
|
become: yes
|
|
register: result
|
|
|
|
- assert:
|
|
that:
|
|
- "result.commands|length == 6"
|
|
- "result.changed == true"
|
|
- "result.commands|symmetric_difference(merged.commands) == []"
|
|
|
|
- name: Idempotency check
|
|
eos_acl_interfaces: *merged
|
|
become: yes
|
|
register: result
|
|
|
|
- assert:
|
|
that:
|
|
- "result.commands|length == 0"
|
|
- "result.changed == false"
|
|
|
|
|
|
always:
|
|
- include_tasks: _remove_config.yaml
|