blob: 184faa5af5e81d6b960391ba24cacf01073dbf08 (
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
|
---
- debug:
msg: START vyos_snmp_server gathered integration tests on connection={{
ansible_connection }}
- include_tasks: _remove_config.yaml
- include_tasks: _populate_config.yaml
- block:
- name: Gather config from the device in structured format.
register: result
vyos.vyos.vyos_snmp_server:
state: gathered
- vyos.vyos.vyos_facts:
gather_network_resources: snmp_server
- name: Assert that facts are correctly generated
assert:
that:
- result.changed == false
- result.gathered == ansible_facts['network_resources']['snmp_server']
|