From: Jouni Malinen Date: Thu, 27 Feb 2014 17:34:34 +0000 (+0200) Subject: tests: Verify that home operator is preferred over roaming operator X-Git-Tag: hostap_2_2~725 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cfa57df68de6d3a42da38e4b7207adb710c420a3;p=thirdparty%2Fhostap.git tests: Verify that home operator is preferred over roaming operator Signed-off-by: Jouni Malinen --- diff --git a/tests/hwsim/test_ap_hs20.py b/tests/hwsim/test_ap_hs20.py index 342ecb55d..d9103f284 100644 --- a/tests/hwsim/test_ap_hs20.py +++ b/tests/hwsim/test_ap_hs20.py @@ -762,6 +762,23 @@ def default_cred(): 'username': "hs20-test", 'password': "password" } +def test_ap_hs20_prefer_home(dev, apdev): + """Hotspot 2.0 required roaming consortium""" + params = hs20_ap_params() + params['domain_name'] = "example.org" + hostapd.add_ap(apdev[0]['ifname'], params) + + params = hs20_ap_params() + params['ssid'] = "test-hs20-other" + params['domain_name'] = "example.com" + hostapd.add_ap(apdev[1]['ifname'], params) + + values = default_cred() + values['domain'] = "example.com" + policy_test(dev[0], apdev[1], values, only_one=False) + values['domain'] = "example.org" + policy_test(dev[0], apdev[0], values, only_one=False) + def test_ap_hs20_req_roaming_consortium(dev, apdev): """Hotspot 2.0 required roaming consortium""" params = hs20_ap_params()