commit d745fbe24ef5e16908aaa68ae06e92c2aa4405b6 parent cc44f50d670f94fa2994d7df50f7cdc3fa206cb8 Author: James Prestwood <prestwoj@gmail.com> Date: Wed, 16 Sep 2020 12:39:45 -0700 auto-t: update EAP-PEAP-SIM test to use ofono Diffstat:
6 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/autotests/misc/secrets/eap-user-peap-sim.text b/autotests/misc/secrets/eap-user-peap-sim.text @@ -1,4 +1,4 @@ # Phase 1 users * PEAP # Phase 2 -"132010000000000@example.com" SIM [2] +"112345678@phonesim.org" SIM [2] diff --git a/autotests/testEAP-PEAP-SIM/connection_test.py b/autotests/testEAP-PEAP-SIM/connection_test.py @@ -9,6 +9,7 @@ import iwd from iwd import IWD from iwd import NetworkType from hlrauc import AuthCenter +from ofono import Ofono class Test(unittest.TestCase): def validate_connection(self, wd): @@ -44,6 +45,11 @@ class Test(unittest.TestCase): def test_connection_success(self): auth = AuthCenter('/tmp/hlrauc.sock', '/tmp/sim.db') + + ofono = Ofono() + ofono.enable_modem('/phonesim') + ofono.wait_for_sim_auth() + wd = IWD(True) try: diff --git a/autotests/testEAP-PEAP-SIM/hw.conf b/autotests/testEAP-PEAP-SIM/hw.conf @@ -1,9 +1,7 @@ [SETUP] num_radios=2 start_iwd=0 -max_test_exec_interval_sec=60 -tmpfs_extra_stuff=sim.eap_user:sim.db:sim_keys.conf:../misc/certs:../misc/secrets -sim_keys=/tmp/sim_keys.conf +sim_keys=ofono [HOSTAPD] rad0=ssidEAP-PEAP-SIM.conf diff --git a/autotests/testEAP-PEAP-SIM/sim.db b/autotests/testEAP-PEAP-SIM/sim.db @@ -1 +1 @@ -32010000000000:D0D1D2D3D4D5D6D7:E1E2E3E4:DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD +12345678:673fb8cd35f98800:1fb1e3b5:DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD diff --git a/autotests/testEAP-PEAP-SIM/sim.eap_user b/autotests/testEAP-PEAP-SIM/sim.eap_user @@ -1 +1 @@ -"132010000000000@example.com" SIM +"112345678@phonesim.org" SIM diff --git a/autotests/testEAP-PEAP-SIM/sim_keys.conf b/autotests/testEAP-PEAP-SIM/sim_keys.conf @@ -1,4 +0,0 @@ -[SIM] -Identity=32010000000000@example.com -Kc=d0d1d2d3d4d5d6d7d0d1d2d3d4d5d6d7d0d1d2d3d4d5d6d7 -SRES=e1e2e3e4e1e2e3e4e1e2e3e4