summaryrefslogtreecommitdiff
path: root/tests/integration/targets/vyos_firewall_rules/tests/cli/parsed.yaml
blob: bc9552494b904fef2dcb0f7802e65c9900193f4a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
---
- debug:
    msg: START vyos_firewall_rules parsed integration tests on connection={{ ansible_connection
      }}

- name: Parse externally provided Firewall rules config to agnostic model
  register: result
  vyos.vyos.vyos_firewall_rules:
    running_config: "{{ lookup('file', '_parsed_config.cfg') }}"
    state: parsed

- name: Assert that config was correctly parsed
  assert:
    that:
      - "{{ parsed['after'] | symmetric_difference(result['parsed']) |length ==\
        \ 0 }}"