tests: wpa_supplicant cred roaming_consortiums parsing/writing
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
This commit is contained in:
parent
909a948b0f
commit
53fa04e197
1 changed files with 6 additions and 0 deletions
|
@ -216,6 +216,8 @@ def test_wpas_config_file(dev, apdev, params):
|
||||||
wpas.set_cred_quoted(id, "domain_suffix_match", "example.com")
|
wpas.set_cred_quoted(id, "domain_suffix_match", "example.com")
|
||||||
wpas.set_cred(id, "roaming_consortium", "112233")
|
wpas.set_cred(id, "roaming_consortium", "112233")
|
||||||
wpas.set_cred(id, "required_roaming_consortium", "112233")
|
wpas.set_cred(id, "required_roaming_consortium", "112233")
|
||||||
|
wpas.set_cred_quoted(id, "roaming_consortiums",
|
||||||
|
"112233,aabbccddee,445566")
|
||||||
wpas.set_cred_quoted(id, "roaming_partner",
|
wpas.set_cred_quoted(id, "roaming_partner",
|
||||||
"roaming.example.net,1,127,*")
|
"roaming.example.net,1,127,*")
|
||||||
wpas.set_cred_quoted(id, "ca_cert", "/tmp/ca.pem")
|
wpas.set_cred_quoted(id, "ca_cert", "/tmp/ca.pem")
|
||||||
|
@ -243,6 +245,10 @@ def test_wpas_config_file(dev, apdev, params):
|
||||||
if len(wpas.request("LIST_CREDS").splitlines()) != 2:
|
if len(wpas.request("LIST_CREDS").splitlines()) != 2:
|
||||||
raise Exception("Unexpected number of credentials")
|
raise Exception("Unexpected number of credentials")
|
||||||
|
|
||||||
|
val = wpas.get_cred(0, "roaming_consortiums")
|
||||||
|
if val != "112233,aabbccddee,445566":
|
||||||
|
raise Exception("Unexpected roaming_consortiums value: " + val)
|
||||||
|
|
||||||
if "OK" not in wpas.request("SAVE_CONFIG"):
|
if "OK" not in wpas.request("SAVE_CONFIG"):
|
||||||
raise Exception("Failed to save configuration file")
|
raise Exception("Failed to save configuration file")
|
||||||
data2 = check_config(capa, config)
|
data2 = check_config(capa, config)
|
||||||
|
|
Loading…
Reference in a new issue