1---
2- debug:
3    msg: START ios_lldp_global empty_config.yaml integration tests on connection={{
4      ansible_connection }}
5
6- name: Merged with empty config should give appropriate error message
7  register: result
8  ignore_errors: true
9  cisco.ios.ios_lldp_global:
10    config:
11    state: merged
12
13- assert:
14    that:
15      - result.msg == 'value of config parameter must not be empty for state merged'
16
17- name: Replaced with empty config should give appropriate error message
18  register: result
19  ignore_errors: true
20  cisco.ios.ios_lldp_global:
21    config:
22    state: replaced
23
24- assert:
25    that:
26      - result.msg == 'value of config parameter must not be empty for state replaced'
27
28- name: Rendered with empty config should give appropriate error message
29  register: result
30  ignore_errors: true
31  cisco.ios.ios_lldp_global:
32    config:
33    state: rendered
34
35- assert:
36    that:
37      - result.msg == 'value of config parameter must not be empty for state rendered'
38
39- name: Parsed with empty config should give appropriate error message
40  register: result
41  ignore_errors: true
42  cisco.ios.ios_lldp_global:
43    running_config:
44    state: parsed
45
46- assert:
47    that:
48      - result.msg == 'value of running_config parameter must not be empty for state
49        parsed'
50