diff options
author | CaptTrews <capttrews@gmail.com> | 2019-09-18 18:01:08 +0000 |
---|---|---|
committer | CaptTrews <capttrews@gmail.com> | 2019-09-18 18:01:08 +0000 |
commit | 447598ada0da54d91cb563a679cfe261158bd7cd (patch) | |
tree | b9123d8b0e1b2948cd9538568b8acb27b5ed9fdd /tests/integration/targets/vyos_lldp_interfaces | |
parent | 1f9edfd94ba9a558cf8e7438258a7a0c342c1425 (diff) | |
download | vyos-ansible-old-447598ada0da54d91cb563a679cfe261158bd7cd.tar.gz vyos-ansible-old-447598ada0da54d91cb563a679cfe261158bd7cd.zip |
Updated from network content collector
Signed-off-by: CaptTrews <capttrews@gmail.com>
Diffstat (limited to 'tests/integration/targets/vyos_lldp_interfaces')
-rw-r--r-- | tests/integration/targets/vyos_lldp_interfaces/tests/cli/empty_config.yaml | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/tests/integration/targets/vyos_lldp_interfaces/tests/cli/empty_config.yaml b/tests/integration/targets/vyos_lldp_interfaces/tests/cli/empty_config.yaml new file mode 100644 index 0000000..9711791 --- /dev/null +++ b/tests/integration/targets/vyos_lldp_interfaces/tests/cli/empty_config.yaml @@ -0,0 +1,36 @@ +--- +- debug: + msg: "START vyos_lldp_interfaces empty_config integration tests on connection={{ ansible_connection }}" + +- name: Merged with empty config should give appropriate error message + vyos.vyos.vyos_lldp_interfaces: + config: + state: merged + register: result + ignore_errors: True + +- assert: + that: + - result.msg == 'config is required for state merged' + +- name: Replaced with empty config should give appropriate error message + vyos.vyos.vyos_lldp_interfaces: + config: + state: replaced + register: result + ignore_errors: True + +- assert: + that: + - result.msg == 'config is required for state replaced' + +- name: Overridden with empty config should give appropriate error message + vyos.vyos.vyos_lldp_interfaces: + config: + state: overridden + register: result + ignore_errors: True + +- assert: + that: + - result.msg == 'config is required for state overridden' |