]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Remove cred before changing domain
authorJouni Malinen <jouni@qca.qualcomm.com>
Fri, 18 Oct 2013 11:12:09 +0000 (14:12 +0300)
committerJouni Malinen <j@w1.fi>
Fri, 18 Oct 2013 11:13:45 +0000 (14:13 +0300)
This is in preparation for supporting multiple domain values after which
setting the domain value does not replace the old value, but adds a new
one.

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>

tests/hwsim/test_ap_hs20.py

index def7bfedd04832409fa1e391d7b5b81907263dc3..95ff8050e1dc1ec969f58c7978375985ab7023a3 100644 (file)
@@ -71,7 +71,12 @@ def test_ap_hs20_select(dev, apdev):
     if "type=home" not in ev:
         raise Exception("Home network not recognized")
 
-    dev[0].set_cred_quoted(id, "domain", "no.match.example.com");
+    dev[0].remove_cred(id)
+    id = dev[0].add_cred()
+    dev[0].set_cred_quoted(id, "realm", "example.com")
+    dev[0].set_cred_quoted(id, "username", "test")
+    dev[0].set_cred_quoted(id, "password", "secret")
+    dev[0].set_cred_quoted(id, "domain", "no.match.example.com")
     dev[0].dump_monitor()
     dev[0].request("INTERWORKING_SELECT")
     ev = dev[0].wait_event(["INTERWORKING-AP", "INTERWORKING-NO-MATCH"],