summaryrefslogtreecommitdiff
path: root/test/integration/targets/ios_static_routes/tests/cli/empty_config.yaml
blob: 0cf39e734aeb1fdfd2bf711378554289ca14d88b (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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
---
- debug:
      msg: "START ios_static_routes empty_config.yaml integration tests on connection={{ ansible_connection }}"

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

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

- name: Rendered with empty config should give appropriate error message
  ios_static_routes:
    config:
    state: rendered
  register: result
  ignore_errors: True

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

- name: Parsed with empty config should give appropriate error message
  ios_static_routes:
    running_config:
    state: parsed
  register: result
  ignore_errors: True

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