summaryrefslogtreecommitdiff
path: root/test/integration/targets/vyos_lldp_global/tests/cli/empty_config.yaml
blob: 46f3b96e4563aacf78f4b26aaa069861c08a5a1d (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
---
- debug:
    msg: "START vyos_lldp_global empty_config integration tests on connection={{ ansible_connection }}"

- name: Merged with empty config should give appropriate error message
  vyos_lldp_global:
    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_lldp_global:
    config:
    state: replaced
  register: result
  ignore_errors: true

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