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

- block:
    - name: Merged with empty config should give appropriate error message
      ios_lag_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
      ios_lag_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
      ios_lag_interfaces:
        config:
        state: overridden
      register: result
      ignore_errors: True

    - assert:
        that:
          - result.msg == 'value of config parameter must not be empty for state overridden'
  when: ansible_net_version != "15.6(2)T"