Skip to content

Commit ba78d1d

Browse files
committed
adds teap test variables
adds teap config creation steps
1 parent 698c82d commit ba78d1d

File tree

5 files changed

+168
-0
lines changed

5 files changed

+168
-0
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Create TEAP Profile
2+
testcases:
3+
- name: get_login_token
4+
steps:
5+
- type: get_login_token
6+
7+
- name: create_teap_profile
8+
steps:
9+
- type: http
10+
method: POST
11+
url: '{{.pfserver_webadmin_url}}/api/v1/config/radiusd/teap_profiles'
12+
ignore_verify_ssl: true
13+
body: >-
14+
{
15+
"id":"test-teap-profile",
16+
"isClone":false,
17+
"isNew":true,
18+
"authority_identity":"1234",
19+
"identity_types":"machine,user",
20+
"pac_opaque_key":"0123456789abcdef0123456789ABCDEF",
21+
"tls":"tls-eap-teap"
22+
}
23+
headers:
24+
"Authorization": "{{.get_login_token.result.token}}"
25+
"Content-Type": "application/json"
26+
assertions:
27+
- result.statuscode ShouldEqual 201
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Enable TEAP in default EAP Profile
2+
testcases:
3+
- name: get_login_token
4+
steps:
5+
- type: get_login_token
6+
7+
- name: enable_teap_in_default_profile
8+
steps:
9+
- type: http
10+
method: PATCH
11+
url: '{{.pfserver_webadmin_url}}/api/v1/config/radiusd/eap_profile/default'
12+
ignore_verify_ssl: true
13+
body: >-
14+
{
15+
"eap_authentication_types":["GTC", "MD5", "MSCHAPv2", "PEAP", "TLS", "TTLS", "TEAP"],
16+
"teap_config":"test-teap-profile"
17+
}
18+
headers:
19+
"Authorization": "{{.get_login_token.result.token}}"
20+
"Content-Type": "application/json"
21+
assertions:
22+
- result.statuscode ShouldEqual 200
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Create TEAP Profile
2+
testcases:
3+
- name: get_login_token
4+
steps:
5+
- type: get_login_token
6+
7+
- name: create_teap_profile
8+
steps:
9+
- type: http
10+
method: POST
11+
url: '{{.pfserver_webadmin_url}}/api/v1/config/radiusd/teap_profiles'
12+
ignore_verify_ssl: true
13+
body: >-
14+
{
15+
"id":"test-teap-profile",
16+
"isClone":false,
17+
"isNew":true,
18+
"authority_identity":"1234",
19+
"identity_types":"machine,user",
20+
"pac_opaque_key":"0123456789abcdef0123456789ABCDEF",
21+
"tls":"tls-eap-teap"
22+
}
23+
headers:
24+
"Authorization": "{{.get_login_token.result.token}}"
25+
"Content-Type": "application/json"
26+
assertions:
27+
- result.statuscode ShouldEqual 201
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Enable TEAP in default EAP Profile
2+
testcases:
3+
- name: get_login_token
4+
steps:
5+
- type: get_login_token
6+
7+
- name: enable_teap_in_default_profile
8+
steps:
9+
- type: http
10+
method: PATCH
11+
url: '{{.pfserver_webadmin_url}}/api/v1/config/radiusd/eap_profile/default'
12+
ignore_verify_ssl: true
13+
body: >-
14+
{
15+
"eap_authentication_types":["GTC", "MD5", "MSCHAPv2", "PEAP", "TLS", "TTLS", "TEAP"],
16+
"teap_config":"test-teap-profile"
17+
}
18+
headers:
19+
"Authorization": "{{.get_login_token.result.token}}"
20+
"Content-Type": "application/json"
21+
assertions:
22+
- result.statuscode ShouldEqual 200

t/venom/vars/all.yml

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,76 @@ wireless_dot1x_eap_peap.profiles.wireless.filters.connection_type: Wireless-802.
184184
wireless_dot1x_eap_peap.profiles.wireless.filters.connection_sub_type: MS-EAP-Authentication
185185
wireless_dot1x_eap_peap.profiles.wireless.unreg_on_acct_stop: enabled
186186

187+
188+
################################################################################
189+
# eap_teap test suites specific variables
190+
################################################################################
191+
# AD user
192+
eap_teap.roles.ad_user.id: user_employee
193+
eap_teap.roles.ad_user.notes: User employee
194+
eap_teap.roles.ad_user.vlan_id: 100
195+
196+
eap_teap.roles.ad_machine.id: machine_employee
197+
eap_teap.roles.ad_machine.notes: Machine Employee
198+
eap_teap.roles.ad_machine.vlan_id: 100
199+
200+
################################################################################
201+
# dot1x_eap_teap test suite specific variables
202+
################################################################################
203+
# Roles
204+
dot1x_eap_teap.roles.ad_user.id: '{{.eap_teap.roles.ad_user.id}}'
205+
dot1x_eap_teap.roles.ad_user.notes: '{{.eap_teap.roles.ad_user.notes}}'
206+
dot1x_eap_teap.roles.ad_user.vlan_id: '{{.eap_teap.roles.ad_user.vlan_id}}'
207+
208+
dot1x_eap_teap.roles.ad_machine.id: '{{.eap_teap.roles.ad_machine.id}}'
209+
dot1x_eap_teap.roles.ad_machine.notes: '{{.eap_teap.roles.ad_machine.notes}}'
210+
dot1x_eap_teap.roles.ad_machine.vlan_id: '{{.eap_teap.roles.ad_machine.vlan_id}}'
211+
212+
# Sources
213+
dot1x_eap_teap.sources.ad_user.name: dot1x_eap_teap_user_auth
214+
dot1x_eap_teap.sources.ad_user.description: '{{.ad_mgmt_ip}} user authentication'
215+
dot1x_eap_teap.sources.ad_user.access_duration: '{{.access_duration.default_choice}}'
216+
217+
dot1x_eap_teap.sources.ad_machine.name: dot1x_eap_teap_machine_auth
218+
dot1x_eap_teap.sources.ad_machine.description: '{{.ad_mgmt_ip}} machine authentication'
219+
dot1x_eap_teap.sources.ad_machine.access_duration: '{{.access_duration.default_choice}}'
220+
221+
# Connection profiles
222+
dot1x_eap_teap.profiles.wired.id: catch_dot1x_wired_eap_teap_mschapv2
223+
dot1x_eap_teap.profiles.wired.description: 802.1X wired EAP-TEAP-MSCHAPv2
224+
dot1x_eap_teap.profiles.wired.filters.connection_type: Ethernet-EAP
225+
dot1x_eap_teap.profiles.wired.filters.connection_sub_type: MS-EAP-Authentication
226+
dot1x_eap_teap.profiles.wired.unreg_on_acct_stop: enabled
227+
228+
################################################################################
229+
# wireless_dot1x_eap_teap test suite specific variables
230+
################################################################################
231+
# Roles
232+
wireless_dot1x_eap_teap.roles.ad_user.id: '{{.eap_teap.roles.ad_user.id}}'
233+
wireless_dot1x_eap_teap.roles.ad_user.notes: '{{.eap_teap.roles.ad_user.notes}}'
234+
wireless_dot1x_eap_teap.roles.ad_user.vlan_id: '{{.eap_teap.roles.ad_user.vlan_id}}'
235+
236+
wireless_dot1x_eap_teap.roles.ad_machine.id: '{{.eap_teap.roles.ad_machine.id}}'
237+
wireless_dot1x_eap_teap.roles.ad_machine.notes: '{{.eap_teap.roles.ad_machine.notes}}'
238+
wireless_dot1x_eap_teap.roles.ad_machine.vlan_id: '{{.eap_teap.roles.ad_machine.vlan_id}}'
239+
240+
# Sources
241+
wireless_dot1x_eap_teap.sources.ad_user.name: wireless_dot1x_eap_teap_user_auth
242+
wireless_dot1x_eap_teap.sources.ad_user.description: '{{.ad_mgmt_ip}} user authentication'
243+
wireless_dot1x_eap_teap.sources.ad_user.access_duration: '{{.access_duration.default_choice}}'
244+
245+
wireless_dot1x_eap_teap.sources.ad_machine.name: wireless_dot1x_eap_teap_machine_auth
246+
wireless_dot1x_eap_teap.sources.ad_machine.description: '{{.ad_mgmt_ip}} machine authentication'
247+
wireless_dot1x_eap_teap.sources.ad_machine.access_duration: '{{.access_duration.default_choice}}'
248+
249+
# Connection profiles
250+
wireless_dot1x_eap_teap.profiles.wireless.id: catch_dot1x_wireless_eap_teap_mschapv2
251+
wireless_dot1x_eap_teap.profiles.wireless.description: 802.1X wireless EAP-TEAP-MSCHAPv2
252+
wireless_dot1x_eap_teap.profiles.wireless.filters.connection_type: Wireless-802.11-EAP
253+
wireless_dot1x_eap_teap.profiles.wireless.filters.connection_sub_type: MS-EAP-Authentication
254+
wireless_dot1x_eap_teap.profiles.wireless.unreg_on_acct_stop: enabled
255+
256+
187257
################################################################################
188258
## backup db and restore test suite specific variables
189259
#################################################################################

0 commit comments

Comments
 (0)