-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #32 from CaptTrews/ansible/collections-sync-master
Updated from network content collector Reviewed-by: https://github.com/apps/ansible-zuul
- Loading branch information
Showing
16 changed files
with
320 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
tests/integration/targets/iosxr_interfaces/tests/cli/empty_config.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
--- | ||
- debug: | ||
msg: "START iosxr_interfaces empty_config integration tests on connection={{ ansible_connection }}" | ||
|
||
- name: Merged with empty config should give appropriate error message | ||
cisco.iosxr.iosxr_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 | ||
cisco.iosxr.iosxr_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 | ||
cisco.iosxr.iosxr_interfaces: | ||
config: | ||
state: overridden | ||
register: result | ||
ignore_errors: True | ||
|
||
- assert: | ||
that: | ||
- result.msg == 'value of config parameter must not be empty for state overridden' |
36 changes: 36 additions & 0 deletions
36
tests/integration/targets/iosxr_l2_interfaces/tests/cli/empty_config.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
--- | ||
- debug: | ||
msg: "START iosxr_l2_interfaces empty_config integration tests on connection={{ ansible_connection }}" | ||
|
||
- name: Merged with empty config should give appropriate error message | ||
cisco.iosxr.iosxr_l2_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 | ||
cisco.iosxr.iosxr_l2_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 | ||
cisco.iosxr.iosxr_l2_interfaces: | ||
config: | ||
state: overridden | ||
register: result | ||
ignore_errors: True | ||
|
||
- assert: | ||
that: | ||
- result.msg == 'value of config parameter must not be empty for state overridden' |
36 changes: 36 additions & 0 deletions
36
tests/integration/targets/iosxr_l3_interfaces/tests/cli/empty_config.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
--- | ||
- debug: | ||
msg: "START iosxr_l3_interfaces empty_config integration tests on connection={{ ansible_connection }}" | ||
|
||
- name: Merged with empty config should give appropriate error message | ||
cisco.iosxr.iosxr_l3_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 | ||
cisco.iosxr.iosxr_l3_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 | ||
cisco.iosxr.iosxr_l3_interfaces: | ||
config: | ||
state: overridden | ||
register: result | ||
ignore_errors: True | ||
|
||
- assert: | ||
that: | ||
- result.msg == 'value of config parameter must not be empty for state overridden' |
25 changes: 25 additions & 0 deletions
25
tests/integration/targets/iosxr_lacp/tests/cli/empty_config.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
--- | ||
- debug: | ||
msg: "START iosxr_lacp empty_config integration tests on connection={{ ansible_connection }}" | ||
|
||
- name: Merged with empty config should give appropriate error message | ||
cisco.iosxr.iosxr_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 | ||
cisco.iosxr.iosxr_lacp: | ||
config: | ||
state: replaced | ||
register: result | ||
ignore_errors: True | ||
|
||
- assert: | ||
that: | ||
- result.msg == 'value of config parameter must not be empty for state replaced' |
36 changes: 36 additions & 0 deletions
36
tests/integration/targets/iosxr_lacp_interfaces/tests/cli/empty_config.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
--- | ||
- debug: | ||
msg: "START iosxr_lacp_interfaces empty_config integration tests on connection={{ ansible_connection }}" | ||
|
||
- name: Merged with empty config should give appropriate error message | ||
cisco.iosxr.iosxr_lacp_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 | ||
cisco.iosxr.iosxr_lacp_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 | ||
cisco.iosxr.iosxr_lacp_interfaces: | ||
config: | ||
state: overridden | ||
register: result | ||
ignore_errors: True | ||
|
||
- assert: | ||
that: | ||
- result.msg == 'value of config parameter must not be empty for state overridden' |
36 changes: 36 additions & 0 deletions
36
tests/integration/targets/iosxr_lag_interfaces/tests/cli/empty_config.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
--- | ||
- debug: | ||
msg: "START iosxr_lag_interfaces empty_config integration tests on connection={{ ansible_connection }}" | ||
|
||
- name: Merged with empty config should give appropriate error message | ||
cisco.iosxr.iosxr_lag_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 | ||
cisco.iosxr.iosxr_lag_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 | ||
cisco.iosxr.iosxr_lag_interfaces: | ||
config: | ||
state: overridden | ||
register: result | ||
ignore_errors: True | ||
|
||
- assert: | ||
that: | ||
- result.msg == 'value of config parameter must not be empty for state overridden' |
25 changes: 25 additions & 0 deletions
25
tests/integration/targets/iosxr_lldp_global/tests/cli/empty_config.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
--- | ||
- debug: | ||
msg: "START iosxr_lldp_global empty_config integration tests on connection={{ ansible_connection }}" | ||
|
||
- name: Merged with empty config should give appropriate error message | ||
cisco.iosxr.iosxr_lldp_global: | ||
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 | ||
cisco.iosxr.iosxr_lldp_global: | ||
config: | ||
state: replaced | ||
register: result | ||
ignore_errors: True | ||
|
||
- assert: | ||
that: | ||
- result.msg == 'value of config parameter must not be empty for state replaced' |
36 changes: 36 additions & 0 deletions
36
tests/integration/targets/iosxr_lldp_interfaces/tests/cli/empty_config.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
--- | ||
- debug: | ||
msg: "START iosxr_lldp_interfaces empty_config integration tests on connection={{ ansible_connection }}" | ||
|
||
- name: Merged with empty config should give appropriate error message | ||
cisco.iosxr.iosxr_lldp_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 | ||
cisco.iosxr.iosxr_lldp_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 | ||
cisco.iosxr.iosxr_lldp_interfaces: | ||
config: | ||
state: overridden | ||
register: result | ||
ignore_errors: True | ||
|
||
- assert: | ||
that: | ||
- result.msg == 'value of config parameter must not be empty for state overridden' |