From 0076a18f391195878531f148a1692f2142838943 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Fri, 18 Oct 2013 14:12:09 +0300 Subject: [PATCH] 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 --- tests/hwsim/test_ap_hs20.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/hwsim/test_ap_hs20.py b/tests/hwsim/test_ap_hs20.py index def7bfedd..95ff8050e 100644 --- a/tests/hwsim/test_ap_hs20.py +++ b/tests/hwsim/test_ap_hs20.py @@ -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"],