-
Notifications
You must be signed in to change notification settings - Fork 274
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Related to #6647
- Loading branch information
Showing
5 changed files
with
68 additions
and
2 deletions.
There are no files selected for viewing
22 changes: 22 additions & 0 deletions
22
t/venom/switches/wired_dot1x_eap_peap/check_dot1x_int_status.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,22 @@ | ||
name: Check dot1x interface status on switch01 | ||
testcases: | ||
- name: check_dot1x_int_status_on_switch01 | ||
steps: | ||
- type: http | ||
method: POST | ||
basic_auth_user: "{{.switch01.api.user}}" | ||
basic_auth_password: "{{.switch01.api.password}}" | ||
url: '{{.switch01.api.url}}/nclu/v1/rpc' | ||
ignore_verify_ssl: true | ||
body: >- | ||
{ | ||
"cmd": "show dot1x interface {{.switch01.dot1x_interface.id}} json" | ||
} | ||
headers: | ||
"Content-Type": "application/json" | ||
assertions: | ||
# we didn't check MAC address on port to make this testcase reusable | ||
- result.body ShouldContainSubstring "{{.dot1x_eap_peap.roles.ad_user.vlan_id}}" | ||
- result.body ShouldContainSubstring PEAP | ||
- result.body ShouldContainSubstring AUTHORIZED | ||
- result.statuscode ShouldEqual 200 |
22 changes: 22 additions & 0 deletions
22
t/venom/switches/wired_dot1x_eap_tls/#wired_dot1x_eap_tls#
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,22 @@ | ||
name: Check dot1x interface status on switch01 | ||
testcases: | ||
- name: check_dot1x_int_status_on_switch01 | ||
steps: | ||
- type: http | ||
method: POST | ||
basic_auth_user: "{{.switch01.api.user}}" | ||
basic_auth_password: "{{.switch01.api.password}}" | ||
url: '{{.switch01.api.url}}/nclu/v1/rpc' | ||
ignore_verify_ssl: true | ||
body: >- | ||
{ | ||
"cmd": "show dot1x interface {{.switch01.dot1x_interface.id}} json" | ||
} | ||
headers: | ||
"Content-Type": "application/json" | ||
assertions: | ||
# we didn't check MAC address on port to make this testcase reusable | ||
- result.body ShouldContainSubstring "{{.wired_dot1x_eap_tls_manual.roles.dot1x_eap_tls.vlan_id}}" | ||
- result.body ShouldContainSubstring TLS | ||
- result.body ShouldContainSubstring AUTHORIZED | ||
- result.statuscode ShouldEqual 200 |
22 changes: 22 additions & 0 deletions
22
t/venom/switches/wired_dot1x_eap_tls/check_dot1x_int_status.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,22 @@ | ||
name: Check dot1x interface status on switch01 | ||
testcases: | ||
- name: check_dot1x_int_status_on_switch01 | ||
steps: | ||
- type: http | ||
method: POST | ||
basic_auth_user: "{{.switch01.api.user}}" | ||
basic_auth_password: "{{.switch01.api.password}}" | ||
url: '{{.switch01.api.url}}/nclu/v1/rpc' | ||
ignore_verify_ssl: true | ||
body: >- | ||
{ | ||
"cmd": "show dot1x interface {{.switch01.dot1x_interface.id}} json" | ||
} | ||
headers: | ||
"Content-Type": "application/json" | ||
assertions: | ||
# we didn't check MAC address on port to make this testcase reusable | ||
- result.body ShouldContainSubstring "{{.wired_dot1x_eap_tls_manual.roles.dot1x_eap_tls.vlan_id}}" | ||
- result.body ShouldContainSubstring TLS | ||
- result.body ShouldContainSubstring AUTHORIZED | ||
- result.statuscode ShouldEqual 200 |
2 changes: 1 addition & 1 deletion
2
t/venom/test_suites/wired_dot1x_eap_peap/65_check_dot1x_int_status.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 |
---|---|---|
@@ -1 +1 @@ | ||
../../switches/common/check_dot1x_int_status.yml | ||
../../switches/wired_dot1x_eap_peap/check_dot1x_int_status.yml |
2 changes: 1 addition & 1 deletion
2
t/venom/test_suites/wired_dot1x_eap_tls_manual/98_check_dot1x_int_status.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 |
---|---|---|
@@ -1 +1 @@ | ||
../../switches/common/check_dot1x_int_status.yml | ||
../../switches/wired_dot1x_eap_tls/check_dot1x_int_status.yml |