From 50e9bfdb1a7eca7e343ff56440e244e405234d2e Mon Sep 17 00:00:00 2001 From: CaptTrews Date: Tue, 1 Oct 2019 00:14:01 +0000 Subject: Updated from network content collector Signed-off-by: CaptTrews --- .../vyos_interfaces/tests/cli/empty_config.yaml | 36 ++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 tests/integration/targets/vyos_interfaces/tests/cli/empty_config.yaml (limited to 'tests/integration/targets/vyos_interfaces') diff --git a/tests/integration/targets/vyos_interfaces/tests/cli/empty_config.yaml b/tests/integration/targets/vyos_interfaces/tests/cli/empty_config.yaml new file mode 100644 index 0000000..ab68fde --- /dev/null +++ b/tests/integration/targets/vyos_interfaces/tests/cli/empty_config.yaml @@ -0,0 +1,36 @@ +--- +- debug: + msg: "START vyos_interfaces empty_config integration tests on connection={{ ansible_connection }}" + +- name: Merged with empty config should give appropriate error message + vyos.vyos.vyos_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 + vyos.vyos.vyos_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 + vyos.vyos.vyos_interfaces: + config: + state: overridden + register: result + ignore_errors: True + +- assert: + that: + - result.msg == 'value of config parameter must not be empty for state overridden' -- cgit v1.2.3