-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
296 additions
and
14 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
105 changes: 105 additions & 0 deletions
105
tests/integration/firewall/test_panos_l2_subinterface.yml
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,105 @@ | ||
--- | ||
- name: test_panos_l2_subinterface - Create | ||
paloaltonetworks.panos.panos_l2_subinterface: | ||
provider: '{{ device }}' | ||
name: 'ethernet1/1.1' | ||
tag: 2 | ||
register: result | ||
|
||
- name: test_panos_l2_subinterface - Assert create was successful | ||
assert: | ||
that: | ||
- result is success | ||
- result is changed | ||
|
||
- name: test_panos_l2_subinterface - Create (idempotence) | ||
paloaltonetworks.panos.panos_l2_subinterface: | ||
provider: '{{ device }}' | ||
name: 'ethernet1/1.1' | ||
tag: 2 | ||
register: result | ||
|
||
- name: test_panos_l2_subinterface - Assert create (idempotence) was successful | ||
assert: | ||
that: | ||
- result is success | ||
- result is not changed | ||
|
||
- name: test_panos_l2_subinterface - Modify | ||
paloaltonetworks.panos.panos_l2_subinterface: | ||
provider: '{{ device }}' | ||
name: 'ethernet1/1.1' | ||
tag: 1 | ||
register: result | ||
|
||
- name: test_panos_l2_subinterface - Assert modify was successful | ||
assert: | ||
that: | ||
- result is success | ||
- result is changed | ||
|
||
- name: test_panos_l2_subinterface - Gather all | ||
paloaltonetworks.panos.panos_l2_subinterface: | ||
provider: '{{ device }}' | ||
parent_interface: 'ethernet1/1' | ||
state: 'gathered' | ||
gathered_filter: '*' | ||
register: result | ||
|
||
- name: test_panos_l2_subinterface - Assert gather all returned result | ||
assert: | ||
that: | ||
- result is success | ||
- "{{ result.gathered | length == 1 }}" | ||
|
||
- name: test_panos_l2_subinterface - Gather by parameter with one match | ||
paloaltonetworks.panos.panos_l2_subinterface: | ||
provider: '{{ device }}' | ||
parent_interface: 'ethernet1/1' | ||
state: 'gathered' | ||
gathered_filter: 'name ends-with 1' | ||
register: result | ||
|
||
- name: test_panos_l2_subinterface - Assert gather by parameter with one match returned result | ||
assert: | ||
that: | ||
- result is success | ||
- "{{ result.gathered | length == 1 }}" | ||
|
||
- name: test_panos_l2_subinterface - Gather by parameter with no match | ||
paloaltonetworks.panos.panos_l2_subinterface: | ||
provider: '{{ device }}' | ||
parent_interface: 'ethernet1/1' | ||
state: 'gathered' | ||
gathered_filter: 'name ends-with 2' | ||
register: result | ||
|
||
- name: test_panos_l2_subinterface - Assert gather by parameter with no match returned result | ||
assert: | ||
that: | ||
- result is success | ||
- "{{ result.gathered | length == 0 }}" | ||
|
||
- name: test_panos_l2_subinterface - Delete | ||
paloaltonetworks.panos.panos_l2_subinterface: | ||
provider: '{{ device }}' | ||
name: 'ethernet1/1.1' | ||
tag: 2 | ||
state: 'absent' | ||
register: result | ||
|
||
- name: test_panos_l2_subinterface - Assert delete was successful | ||
assert: | ||
that: | ||
- result is success | ||
- result is changed | ||
|
||
- name: test_panos_l2_subinterface - Make sure changes commit cleanly | ||
paloaltonetworks.panos.panos_commit_firewall: | ||
provider: '{{ device }}' | ||
register: result | ||
|
||
- name: test_panos_l2_subinterface - Assert commit was successful | ||
assert: | ||
that: | ||
- result is success |
Oops, something went wrong.