mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 22:02:50 +00:00
add nxos_snapshot test for missing required param (#37248)
Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
This commit is contained in:
@@ -36,6 +36,22 @@
|
||||
path: '.'
|
||||
provider: "{{ connection }}"
|
||||
|
||||
- name: FAIL compare snapshots
|
||||
nxos_snapshot:
|
||||
action: compare
|
||||
snapshot1: test_snapshot1
|
||||
snapshot2: test_snapshot2
|
||||
compare_option: summary
|
||||
path: '.'
|
||||
provider: "{{ connection }}"
|
||||
register: result
|
||||
ignore_errors: yes
|
||||
|
||||
- assert:
|
||||
that:
|
||||
- 'result.failed == True'
|
||||
- '"action is compare but all of the following are missing: comparison_results_file" in result.msg'
|
||||
|
||||
when: snapshot_run
|
||||
|
||||
always:
|
||||
|
||||
Reference in New Issue
Block a user