]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Additional venue_url parsing coverage
authorJouni Malinen <j@w1.fi>
Sat, 10 Aug 2019 14:02:10 +0000 (17:02 +0300)
committerJouni Malinen <j@w1.fi>
Sat, 10 Aug 2019 14:02:10 +0000 (17:02 +0300)
Signed-off-by: Jouni Malinen <j@w1.fi>
tests/hwsim/test_ap_config.py

index 9752282970439eff76cda54319c573e4ee70b2c3..d7df6f43abaab3fbe23ae2852f9780ef44bca191 100644 (file)
@@ -323,6 +323,8 @@ def test_ap_config_invalid_value(dev, apdev, params):
              ("anqp_elem", "265:1q"),
              ("fst_priority", ""),
              ("fils_cache_id", "q"),
+             ("venue_url", "foo"),
+             ("venue_url", "1:" + 255*"a"),
              ("unknown-item", "foo")]
     for field, val in tests:
         if "FAIL" not in hapd.request("SET %s %s" % (field, val)):
@@ -415,6 +417,7 @@ def test_ap_config_set_oom(dev, apdev):
              (2, "parse_nai_realm", "SET nai_realm 0,example.com;example.net"),
              (1, "parse_anqp_elem", "SET anqp_elem 265:0000"),
              (2, "parse_anqp_elem", "SET anqp_elem 266:000000"),
+             (1, "parse_venue_url", "SET venue_url 1:http://example.com/"),
              (1, "hs20_parse_conn_capab", "SET hs20_conn_capab 1:0:2"),
              (1, "hs20_parse_wan_metrics",
               "SET hs20_wan_metrics 01:8000:1000:80:240:3000"),