35463d45f4
* fix empty config msg * fix space Signed-off-by: Sumit Jaiswal <sjaiswal@redhat.com>
27 lines
767 B
YAML
27 lines
767 B
YAML
---
|
|
- debug:
|
|
msg: "START ios_lacp empty_config.yaml integration tests on connection={{ ansible_connection }}"
|
|
|
|
- block:
|
|
- name: Merged with empty config should give appropriate error message
|
|
ios_lacp:
|
|
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_lacp:
|
|
config:
|
|
state: replaced
|
|
register: result
|
|
ignore_errors: True
|
|
|
|
- assert:
|
|
that:
|
|
- result.msg == 'value of config parameter must not be empty for state replaced'
|
|
when: ansible_net_version != "15.6(2)T"
|