public inbox for iwd@lists.linux.dev
 help / color / mirror / Atom feed
From: James Prestwood <prestwoj@gmail.com>
To: iwd@lists.linux.dev
Cc: James Prestwood <prestwoj@gmail.com>
Subject: [PATCH 3/4] auto-t: add checks for DPP 3rd party settings
Date: Fri, 17 Nov 2023 06:12:26 -0800	[thread overview]
Message-ID: <20231117141227.60722-3-prestwoj@gmail.com> (raw)
In-Reply-To: <20231117141227.60722-1-prestwoj@gmail.com>

Ensure the newly configured profile contains the additional
SendHostname setting that the configurator sends.
---
 autotests/testDPP/pkex_test.py | 6 ++++++
 autotests/testDPP/ssidCCMP.psk | 9 ---------
 2 files changed, 6 insertions(+), 9 deletions(-)

diff --git a/autotests/testDPP/pkex_test.py b/autotests/testDPP/pkex_test.py
index 6c5cf054..9e0b5dd8 100644
--- 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
index d428fd34..a82324c8 100644
--- 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
-- 
2.34.1


  parent reply	other threads:[~2023-11-17 14:12 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-17 14:12 [PATCH 1/4] dpp-util: add support for 3rd party JSON fields James Prestwood
2023-11-17 14:12 ` [PATCH 2/4] dpp: include 3rd party settings in network profile James Prestwood
2023-11-17 14:12 ` James Prestwood [this message]
2023-11-17 14:12 ` [PATCH 4/4] json: fix comment typo, "json_object_is_valid" James Prestwood
2023-11-17 15:49 ` [PATCH 1/4] dpp-util: add support for 3rd party JSON fields Denis Kenzior

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20231117141227.60722-3-prestwoj@gmail.com \
    --to=prestwoj@gmail.com \
    --cc=iwd@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox