tests: Remove cred before changing domain
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>
This commit is contained in:
parent
01f809c7db
commit
0076a18f39
1 changed files with 6 additions and 1 deletions
|
@ -71,7 +71,12 @@ def test_ap_hs20_select(dev, apdev):
|
||||||
if "type=home" not in ev:
|
if "type=home" not in ev:
|
||||||
raise Exception("Home network not recognized")
|
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].dump_monitor()
|
||||||
dev[0].request("INTERWORKING_SELECT")
|
dev[0].request("INTERWORKING_SELECT")
|
||||||
ev = dev[0].wait_event(["INTERWORKING-AP", "INTERWORKING-NO-MATCH"],
|
ev = dev[0].wait_event(["INTERWORKING-AP", "INTERWORKING-NO-MATCH"],
|
||||||
|
|
Loading…
Reference in a new issue