2019-09-30 17:07:28 +02:00
|
|
|
---
|
|
|
|
- debug:
|
2019-12-03 15:34:35 +01:00
|
|
|
msg: "START vyos_interfaces empty_config integration tests on connection={{ ansible_connection }}"
|
2019-09-30 17:07:28 +02:00
|
|
|
|
|
|
|
- name: Merged with empty config should give appropriate error message
|
|
|
|
vyos_interfaces:
|
|
|
|
config:
|
|
|
|
state: merged
|
|
|
|
register: result
|
2019-12-03 15:34:35 +01:00
|
|
|
ignore_errors: true
|
2019-09-30 17:07:28 +02:00
|
|
|
|
|
|
|
- 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_interfaces:
|
|
|
|
config:
|
|
|
|
state: replaced
|
|
|
|
register: result
|
2019-12-03 15:34:35 +01:00
|
|
|
ignore_errors: true
|
2019-09-30 17:07:28 +02:00
|
|
|
|
|
|
|
- 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
|
|
|
|
vyos_interfaces:
|
|
|
|
config:
|
|
|
|
state: overridden
|
|
|
|
register: result
|
2019-12-03 15:34:35 +01:00
|
|
|
ignore_errors: true
|
2019-09-30 17:07:28 +02:00
|
|
|
|
|
|
|
- assert:
|
|
|
|
that:
|
|
|
|
- result.msg == 'value of config parameter must not be empty for state overridden'
|