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

- include_tasks: _populate.yaml

- block:
    - name: Gather the provided configuration with the existing running configuration
      register: result
      vyos.vyos.vyos_lldp_global:
        config:
        state: gathered

    - name: Assert that gathered dicts was correctly generated
      assert:
        that:
          - "{{ populate  == result['gathered'] }}"

  always:
    - include_tasks: _remove_config.yaml