From: Jouni Malinen Date: Sun, 7 Mar 2021 10:46:38 +0000 (+0200) Subject: tests: Invalid DAC_REQUEST values X-Git-Tag: hostap_2_10~451 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=39ff1a67ade49d79e8c90e9a3594072d801c444a;p=thirdparty%2Fhostap.git tests: Invalid DAC_REQUEST values Signed-off-by: Jouni Malinen --- diff --git a/tests/hwsim/test_ap_hs20.py b/tests/hwsim/test_ap_hs20.py index c8ba76770..de781f764 100644 --- a/tests/hwsim/test_ap_hs20.py +++ b/tests/hwsim/test_ap_hs20.py @@ -6330,6 +6330,10 @@ def run_ap_hs20_terms_and_conditions_sql(dev, apdev, params, url_template, raise Exeception("Unexpected number of rows in current_sessions (%d; expected %d)" % (len(rows), 1)) logger.info("current_sessions: " + str(rows)) + tests = ["foo", "disconnect q", "coa %s" % dev[0].own_addr()] + for t in tests: + if "FAIL" not in authsrv.request("DAC_REQUEST " + t): + raise Exception("Invalid DAC_REQUEST accepted: " + t) if "OK" not in authsrv.request("DAC_REQUEST coa %s t_c_clear" % dev[0].own_addr()): raise Exception("DAC_REQUEST failed")