Wireless Daemon for Linux
 help / color / mirror / Atom feed
From: James Prestwood <prestwoj at gmail.com>
To: iwd at lists.01.org
Subject: [PATCH 11/12] auto-t: add test for IWD as configurator + initiator
Date: Tue, 18 Jan 2022 13:25:11 -0800	[thread overview]
Message-ID: <20220118212512.2017977-11-prestwoj@gmail.com> (raw)
In-Reply-To: 20220118212512.2017977-1-prestwoj@gmail.com

[-- Attachment #1: Type: text/plain, Size: 1116 bytes --]

---
 autotests/testDPP/connection_test.py | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/autotests/testDPP/connection_test.py b/autotests/testDPP/connection_test.py
index 38d44b25..160e533e 100644
--- a/autotests/testDPP/connection_test.py
+++ b/autotests/testDPP/connection_test.py
@@ -82,6 +82,22 @@ class Test(unittest.TestCase):
 
         self.hapd.wait_for_event('AP-STA-CONNECTED 42:00:00:00:00:00')
 
+    def test_iwd_as_configurator_initiator(self):
+        self.hapd.reload()
+        self.hapd.wait_for_event('AP-ENABLED')
+
+        IWD.copy_to_storage('ssidCCMP.psk')
+        self.device.autoconnect = True
+
+        condition = 'obj.state == DeviceState.connected'
+        self.wd.wait_for_object_condition(self.device, condition)
+
+        uri = self.wpas.dpp_enrollee_start(oper_and_channel='81/2')
+
+        self.device.dpp_start_configurator(uri)
+
+        self.hapd.wait_for_event('AP-STA-CONNECTED 42:00:00:00:00:00')
+
     def setUp(self):
         self.wd = IWD(True)
         self.device = self.wd.list_devices(1)[0]
-- 
2.31.1

                 reply	other threads:[~2022-01-18 21:25 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20220118212512.2017977-11-prestwoj@gmail.com \
    --to=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