summaryrefslogtreecommitdiffstats
path: root/test/integration/targets/incidental_vyos_lldp_interfaces/tests/cli/empty_config.yaml
blob: 44c0b8941f8743959e54186b3d4e033e05549b87 (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
34
35
36
---
- debug:
    msg: "START vyos_lldp_interfaces empty_config integration tests on connection={{ ansible_connection }}"

- name: Merged with empty config should give appropriate error message
  vyos.vyos.vyos_lldp_interfaces:
    config:
    state: merged
  register: result
  ignore_errors: true

- assert:
    that:
      - result.msg == 'value of config parameter must not be empty for state merged'

- name: Replaced with empty config should give appropriate error message
  vyos.vyos.vyos_lldp_interfaces:
    config:
    state: replaced
  register: result
  ignore_errors: true

- assert:
    that:
      - result.msg == 'value of config parameter must not be empty for state replaced'

- name: Overridden with empty config should give appropriate error message
  vyos.vyos.vyos_lldp_interfaces:
    config:
    state: overridden
  register: result
  ignore_errors: true

- assert:
    that:
      - result.msg == 'value of config parameter must not be empty for state overridden'