d283126c31
* Adding files for RM static_routes * Added Integration tests * Added Unit testcases * Addressed review comments * corrected lint errors * corrected documentation errors * Lint errors * corrected test/sanity * corrected documentation for deprecation * corrected case sensitivity * Again Documentation eroor * Lint errors again * corrected deprecated module in ignoretxt * added new gethered,rendered,parsed state checks to unit test * New code broke the old flow-fixed * Lint errs * Added check for running_config * eos_acls resource module added * Corrected errors * corrected documentation errors * corrected typo * Testcases in progress * Integration tests in progress * Integration tests * Added Intergration tcs * Corrected pylint errors * Resolving issues due to rebase * Corrected Typo * more pylint errors * more pylint errors * more pylint errors * Documentation * Documentation * More lint errors * Fixed Indentation * Indentation issues - not getting fixed * Indentation issues - not getting fixed * Added rtt testcase * Corrected whitespaces * addressed review comments * moved integration tests to common - to support eapi tests * modification for merge update * indentation errors * added line key * Fixing shippable errors * fixing doc errors * fixing doc errors * fixing doc errors * fixing doc errors * fixing indentation * modified replaced operation * rebase issue fixed * Corrected typo * review comments and flake8 error fixed
94 lines
2.2 KiB
YAML
94 lines
2.2 KiB
YAML
---
|
|
- debug:
|
|
msg: "Start eos_acls replaced integration tests ansible_connection={{ ansible_connection }}"
|
|
|
|
- include_tasks: _populate.yaml
|
|
|
|
- set_fact:
|
|
config:
|
|
- afi: "ipv4"
|
|
acls:
|
|
- name: test1
|
|
aces:
|
|
- sequence: 10
|
|
grant: "permit"
|
|
protocol: "ospf"
|
|
source:
|
|
any: true
|
|
destination:
|
|
any: true
|
|
log: true
|
|
- name: test4
|
|
aces:
|
|
- grant: "permit"
|
|
sequence: 10
|
|
source:
|
|
any: true
|
|
port_protocol:
|
|
eq: "smtp"
|
|
destination:
|
|
any: true
|
|
port_protocol:
|
|
eq: "www"
|
|
protocol: "tcp"
|
|
ttl:
|
|
eq: "55"
|
|
- afi: "ipv6"
|
|
acls:
|
|
- name: test2
|
|
standard: true
|
|
aces:
|
|
- grant: "permit"
|
|
sequence: 10
|
|
log: "true"
|
|
source:
|
|
any: true
|
|
|
|
- block:
|
|
- name: replace attributes with given acls.
|
|
eos_acls: &replaced
|
|
config:
|
|
- afi: "ipv4"
|
|
acls:
|
|
- name: test1
|
|
aces:
|
|
- grant: "permit"
|
|
sequence: 10
|
|
protocol: "ospf"
|
|
source:
|
|
any: true
|
|
destination:
|
|
any: true
|
|
log: true
|
|
state: replaced
|
|
become: yes
|
|
register: result
|
|
|
|
- eos_facts:
|
|
gather_network_resources: acls
|
|
become: yes
|
|
|
|
- assert:
|
|
that:
|
|
- "result.commands|length == 5"
|
|
- "result.changed == true"
|
|
- "ansible_facts.network_resources.acls|symmetric_difference(result.after) == []"
|
|
become: yes
|
|
|
|
- name: Idempotency check
|
|
eos_acls: *replaced
|
|
become: yes
|
|
register: result
|
|
|
|
- eos_facts:
|
|
gather_network_resources: acls
|
|
become: yes
|
|
|
|
- assert:
|
|
that:
|
|
- "result.changed == false"
|
|
- "result.commands|length == 0"
|
|
- "ansible_facts.network_resources.acls|symmetric_difference(result.before) == []"
|
|
|
|
always:
|
|
- include_tasks: _remove_config.yaml
|