blob: 8ba7dd5ad7b162a6b8b17499dd1506a33eb59910 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
---
- debug:
msg: START vyos_lldp_global gathered integration tests on connection={{
ansible_connection }}
- include_tasks: _remove_config.yaml
- include_tasks: _populate.yaml
- block:
- name: Merge the provided configuration with the exisiting running configuration
register: result
vyos.vyos.vyos_lldp_global: &id001
config:
state: gathered
- name: Assert that gathered dicts was correctly generated
assert:
that:
- "{{ populate == result['gathered'] }}"
- name: Gather the existing running configuration (IDEMPOTENT)
register: result
vyos.vyos.vyos_lldp_global: *id001
- name: Assert that the previous task was idempotent
assert:
that:
- result['changed'] == false
always:
- include_tasks: _remove_config.yaml
|