summaryrefslogtreecommitdiff
path: root/test/integration/targets/iosxr_lldp_global/tests/cli/empty_config.yaml
blob: 15c0057fad44128bfca25ae373ebc4b3d34aea95 (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 iosxr_lldp_global empty_config integration tests on connection={{ ansible_connection }}"

- name: Merged with empty config should give appropriate error message
  iosxr_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
  iosxr_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'