3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-22 14:49:24 +01:00

auto-t: update EAP-PEAP-SIM test to use ofono

This commit is contained in:
James Prestwood 2020-09-16 12:39:45 -07:00 committed by Denis Kenzior
parent cc44f50d67
commit d745fbe24e
6 changed files with 10 additions and 10 deletions

View File

@ -1,4 +1,4 @@
# Phase 1 users # Phase 1 users
* PEAP * PEAP
# Phase 2 # Phase 2
"132010000000000@example.com" SIM [2] "112345678@phonesim.org" SIM [2]

View File

@ -9,6 +9,7 @@ import iwd
from iwd import IWD from iwd import IWD
from iwd import NetworkType from iwd import NetworkType
from hlrauc import AuthCenter from hlrauc import AuthCenter
from ofono import Ofono
class Test(unittest.TestCase): class Test(unittest.TestCase):
def validate_connection(self, wd): def validate_connection(self, wd):
@ -44,6 +45,11 @@ class Test(unittest.TestCase):
def test_connection_success(self): def test_connection_success(self):
auth = AuthCenter('/tmp/hlrauc.sock', '/tmp/sim.db') auth = AuthCenter('/tmp/hlrauc.sock', '/tmp/sim.db')
ofono = Ofono()
ofono.enable_modem('/phonesim')
ofono.wait_for_sim_auth()
wd = IWD(True) wd = IWD(True)
try: try:

View File

@ -1,9 +1,7 @@
[SETUP] [SETUP]
num_radios=2 num_radios=2
start_iwd=0 start_iwd=0
max_test_exec_interval_sec=60 sim_keys=ofono
tmpfs_extra_stuff=sim.eap_user:sim.db:sim_keys.conf:../misc/certs:../misc/secrets
sim_keys=/tmp/sim_keys.conf
[HOSTAPD] [HOSTAPD]
rad0=ssidEAP-PEAP-SIM.conf rad0=ssidEAP-PEAP-SIM.conf

View File

@ -1 +1 @@
32010000000000:D0D1D2D3D4D5D6D7:E1E2E3E4:DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD 12345678:673fb8cd35f98800:1fb1e3b5:DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD

View File

@ -1 +1 @@
"132010000000000@example.com" SIM "112345678@phonesim.org" SIM

View File

@ -1,4 +0,0 @@
[SIM]
Identity=32010000000000@example.com
Kc=d0d1d2d3d4d5d6d7d0d1d2d3d4d5d6d7d0d1d2d3d4d5d6d7
SRES=e1e2e3e4e1e2e3e4e1e2e3e4