tests: sigma_dut and updated ConfResult value for Configurator failures

Signed-off-by: Jouni Malinen <quic_jouni@quicinc.com>
This commit is contained in:
Jouni Malinen 2022-07-29 18:56:49 +03:00 committed by Jouni Malinen
parent 89de431f23
commit b704dc72ef

View file

@ -2194,6 +2194,8 @@ def test_sigma_dut_dpp_enrollee_does_not_support_signing_curve(dev, apdev):
res = sigma_dut_cmd(cmd, timeout=10) res = sigma_dut_cmd(cmd, timeout=10)
if "status,COMPLETE" not in res: if "status,COMPLETE" not in res:
raise Exception("dev_exec_action did not succeed: " + res) raise Exception("dev_exec_action did not succeed: " + res)
if "BootstrapResult,OK,AuthResult,OK,ConfResult,FAILED" not in res:
raise Exception("Unexpected result: " + res)
ev = dev[1].wait_event(["DPP-CONF-RECEIVED", "DPP-CONF-FAILED"], ev = dev[1].wait_event(["DPP-CONF-RECEIVED", "DPP-CONF-FAILED"],
timeout=20) timeout=20)
if not ev: if not ev:
@ -3779,7 +3781,7 @@ def test_sigma_dut_dpp_tcp_configurator_init_mutual_unsupported_curve(dev, apdev
cmd = "dev_exec_action,program,DPP,DPPActionType,AutomaticDPP,DPPAuthRole,Initiator,DPPAuthDirection,Mutual,DPPProvisioningRole,Configurator,DPPConfIndex,1,DPPNAKECC,P-521,DPPConfEnrolleeRole,STA,DPPBS,QR,DPPOverTCP,127.0.0.1,DPPTimeout,6" cmd = "dev_exec_action,program,DPP,DPPActionType,AutomaticDPP,DPPAuthRole,Initiator,DPPAuthDirection,Mutual,DPPProvisioningRole,Configurator,DPPConfIndex,1,DPPNAKECC,P-521,DPPConfEnrolleeRole,STA,DPPBS,QR,DPPOverTCP,127.0.0.1,DPPTimeout,6"
res = sigma_dut_cmd(cmd, timeout=10) res = sigma_dut_cmd(cmd, timeout=10)
if "BootstrapResult,OK,AuthResult,OK,ConfResult,OK" not in res: if "BootstrapResult,OK,AuthResult,OK,ConfResult,FAILED" not in res:
raise Exception("Unexpected result: " + res) raise Exception("Unexpected result: " + res)
ev = dev[1].wait_event(["DPP-FAIL"], timeout=20) ev = dev[1].wait_event(["DPP-FAIL"], timeout=20)
if not ev: if not ev: