commit 4b147217ac2b5a115013bb27dcc478d7447eb717
parent 6afda046c2947542832b953e10f08addafbbc433
Author: James Prestwood <prestwoj@gmail.com>
Date: Fri, 17 Nov 2023 06:12:26 -0800
auto-t: add checks for DPP 3rd party settings
Ensure the newly configured profile contains the additional
SendHostname setting that the configurator sends.
Diffstat:
2 files changed, 6 insertions(+), 9 deletions(-)
diff --git a/autotests/testDPP/pkex_test.py b/autotests/testDPP/pkex_test.py
@@ -168,6 +168,12 @@ class Test(unittest.TestCase):
condition = 'obj.state == DeviceState.connected'
self.wd.wait_for_object_condition(self.device[1], condition)
+ # Check additional settings were carried over
+ with open('/tmp/ns0/ssidCCMP.psk', 'r') as f:
+ settings = f.read()
+
+ self.assertIn("SendHostname=true", settings)
+
def test_pkex_configurator_with_agent(self):
self.start_iwd_pkex_configurator(self.device[0], agent=True)
diff --git a/autotests/testDPP/ssidCCMP.psk b/autotests/testDPP/ssidCCMP.psk
@@ -1,14 +1,5 @@
[Security]
Passphrase=secret123
-[DeviceProvisioning]
-SharedCode=secret123
-SharedCodeIdentifier=test
-ExactConfig=true
-
[IPv4]
SendHostname=true
-
-[Settings]
-AutoConnect=true
-Hidden=false