mirror of https://github.com/ansible/ansible.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
941 B
YAML
37 lines
941 B
YAML
5 years ago
|
---
|
||
|
- debug:
|
||
|
msg: "START ios_interfaces empty_config.yaml integration tests on connection={{ ansible_connection }}"
|
||
|
|
||
|
- name: Merged with empty config should give appropriate error message
|
||
|
ios_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_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_interfaces:
|
||
|
config:
|
||
|
state: overridden
|
||
|
register: result
|
||
|
ignore_errors: True
|
||
|
|
||
|
- assert:
|
||
|
that:
|
||
|
- result.msg == 'value of config parameter must not be empty for state overridden'
|