aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2016-01-13 19:36:00 (GMT)
committerJouni Malinen <j@w1.fi>2016-01-13 20:03:23 (GMT)
commit992007c5157c8c72b179513f08a3ff615cbb1410 (patch)
tree50ca8d0888925bd3fa86945743242effc4a3a094 /tests
parent6a95f5e2e4c2a4edc7cb97527748891d953af631 (diff)
downloadhostap-992007c5157c8c72b179513f08a3ff615cbb1410.zip
hostap-992007c5157c8c72b179513f08a3ff615cbb1410.tar.gz
hostap-992007c5157c8c72b179513f08a3ff615cbb1410.tar.bz2
tests: Fix ERP anonymous_identity test cases
These need to be run without realm in the identity value to allow the realm from the anonymous_identity to be used. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/hwsim/auth_serv/eap_user.conf2
-rw-r--r--tests/hwsim/test_erp.py16
2 files changed, 17 insertions, 1 deletions
diff --git a/tests/hwsim/auth_serv/eap_user.conf b/tests/hwsim/auth_serv/eap_user.conf
index fd7399f..7f6bac4 100644
--- a/tests/hwsim/auth_serv/eap_user.conf
+++ b/tests/hwsim/auth_serv/eap_user.conf
@@ -24,6 +24,8 @@
"erp-tls@example.com" TLS
"erp-ttls@example.com" TTLS
"erp-ttls@example.com" TTLS-PAP "password" [2]
+"erp-ttls" TTLS
+"erp-ttls" TTLS-PAP "password" [2]
"erp-ikev2@example.com" IKEV2 "password"
"vlan1" PAX 0123456789abcdef0123456789abcdef
diff --git a/tests/hwsim/test_erp.py b/tests/hwsim/test_erp.py
index 1760f01..6be0533 100644
--- a/tests/hwsim/test_erp.py
+++ b/tests/hwsim/test_erp.py
@@ -428,7 +428,7 @@ def test_erp_anonymous_identity(dev, apdev):
dev[0].request("ERP_FLUSH")
dev[0].connect("test-wpa2-eap", key_mgmt="WPA-EAP", eap="TTLS",
- identity="erp-ttls@example.com",
+ identity="erp-ttls",
anonymous_identity="anonymous@example.com",
password="password",
ca_cert="auth_serv/ca.pem", phase2="auth=PAP",
@@ -469,6 +469,20 @@ def test_erp_home_realm_oom(dev, apdev):
dev[0].wait_disconnected()
for count in range(1, 3):
+ with alloc_fail(dev[0], count, "eap_home_realm"):
+ dev[0].request("ERP_FLUSH")
+ dev[0].connect("test-wpa2-eap", key_mgmt="WPA-EAP", eap="TTLS",
+ identity="erp-ttls",
+ anonymous_identity="anonymous@example.com",
+ password="password",
+ ca_cert="auth_serv/ca.pem", phase2="auth=PAP",
+ erp="1", scan_freq="2412", wait_connect=False)
+ dev[0].wait_connected(timeout=10)
+ wait_fail_trigger(dev[0], "GET_ALLOC_FAIL")
+ dev[0].request("REMOVE_NETWORK all")
+ dev[0].wait_disconnected()
+
+ for count in range(1, 3):
dev[0].request("ERP_FLUSH")
dev[0].connect("test-wpa2-eap", key_mgmt="WPA-EAP", eap="TTLS",
identity="erp-ttls@example.com",