Jouni Malinen
360440db2d
tests: More WPA2 PSK from RADIUS Tunnel-Password coverage
...
Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
2017-02-08 23:48:20 +02:00
Jouni Malinen
77376f3057
tests: RADIUS MAC ACL and server unreachable
...
Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
2017-02-08 23:48:20 +02:00
Jouni Malinen
b3f32a24d4
tests: RADIUS MAC ACL and OOM
...
Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
2017-02-08 23:48:19 +02:00
Jouni Malinen
7745728ee8
tests: RADIUS Accounting in RSN and failure to add attributes due to OOM
...
Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
2017-02-08 23:48:19 +02:00
Jouni Malinen
b8564c9db0
tests: Make radius_acct_interim more robust
...
Wait one more second to make the test case less likely to fail while
still being able to verify that interim updates are performed.
Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
2017-02-07 23:58:55 +02:00
Jouni Malinen
eb04c3bf8a
tests: RADIUS Accounting local failure cases
...
Signed-off-by: Jouni Malinen <j@w1.fi>
2017-02-05 17:19:44 +02:00
Jouni Malinen
ef40b1b95e
tests: RADIUS Dynamic Authorization Extensions - Disconnect - time window
...
Signed-off-by: Jouni Malinen <j@w1.fi>
2016-12-29 01:06:11 +02:00
Jouni Malinen
fd7f3440eb
tests: Additional radius_auth/acct_req_attr coverage
...
The third attribute is needed in the list to cover full parsing code
coverage.
Signed-off-by: Jouni Malinen <j@w1.fi>
2016-12-28 20:10:18 +02:00
Jouni Malinen
49897fb065
tests: Invalid VLAN ID from RADIUS server for ACL
...
Signed-off-by: Jouni Malinen <j@w1.fi>
2016-12-26 18:39:49 +02:00
Jonathan Afek
9fd6804d61
tests: Mark 525 tests as remote compatible
...
After successfully passing the 525 tests on a remote setup mark the
tests as remote compatible.
Signed-off-by: Jonathan Afek <jonathanx.afek@intel.com>
2016-06-27 21:47:37 +03:00
Janusz Dziedzic
6f334bf7a0
tests: Use hapd from hostapd.add_ap()
...
Signed-off-by: Janusz Dziedzic <janusz.dziedzic@tieto.com>
2016-04-24 20:16:29 +03:00
Jouni Malinen
39881726d5
tests: RADIUS failure when adding MPPE keys
...
This is a regression test case for a radius_msg_add_mppe_keys() memory
leak on an error path.
Signed-off-by: Jouni Malinen <j@w1.fi>
2016-04-08 11:41:08 +03:00
Jouni Malinen
675c036fff
tests: WPA2 with invalid PSK from RADIUS
...
This is a regression test case for a memory leak on a
decode_tunnel_passwords() error path.
Signed-off-by: Jouni Malinen <j@w1.fi>
2016-04-08 11:28:45 +03:00
Jouni Malinen
0307eebdb9
tests: Fix pyrad exception name in RADIUS test cases
...
Signed-off-by: Jouni Malinen <j@w1.fi>
2016-04-08 11:28:19 +03:00
Janusz Dziedzic
8b8a1864ff
tests: Pass full apdev to add_ap() function (1)
...
Pass the full apdev to the add_ap() function instead of just ifname.
This allows us to handle also remote hosts while we can check
apdev['hostname'], apdev['port'].
This step (1) converts the cases where apdev[#]['ifname'] was used as
the argument to hostapd.add_ap().
Signed-off-by: Janusz Dziedzic <janusz.dziedzic@tieto.com>
2016-04-03 22:45:57 +03:00
Jouni Malinen
03aac597a0
tests: RADIUS accounting with various security cases
...
Signed-off-by: Jouni Malinen <j@w1.fi>
2016-03-27 21:26:19 +03:00
Jouni Malinen
9961c70a85
tests: RADIUS Accounting interim update retry
...
Signed-off-by: Jouni Malinen <j@w1.fi>
2016-02-29 17:43:13 +02:00
Jouni Malinen
44f4394296
tests: RADIUS Accounting and non-ASCII SSID
...
This shows an example of Called-Station-Id in Access-Request and
Accounting-Request with non-ASCII characters.
Signed-off-by: Jouni Malinen <j@w1.fi>
2015-12-24 12:19:41 +02:00
Jouni Malinen
e1195efd1e
tests: Skip radius_acct_ipaddr if kernel does not support ProxyARP
...
Signed-off-by: Jouni Malinen <j@w1.fi>
2015-10-26 00:47:47 +02:00
Jouni Malinen
2ab957afc5
tests: RADIUS Accounting and Framed-IP-Address
...
Signed-off-by: Jouni Malinen <j@w1.fi>
2015-10-17 19:55:12 +03:00
Jouni Malinen
0b5740fdef
tests: More RADIUS testing coverage with CUI/User-Name in ACL response
...
Signed-off-by: Jouni Malinen <j@w1.fi>
2015-06-19 00:23:49 +03:00
Michael Braun
bfcc073caf
tests: Verify dynamic_vlan=required is honored with macaddr_acl=2
...
dynamic_vlan=required also applies to macaddr_acl=2 (RADIUS), especially
when used with WPA-PSK.
Signed-off-by: Michael Braun <michael-dev@fami-braun.de>
2015-04-25 10:28:19 +03:00
Jouni Malinen
96cbb7b561
tests: Skip radius_acct_unreachable3 when not running under VM
...
It looks like the IP routing table changes used here to trigger
unreachability and following reachability of the server do not work very
well with full IP routing configuration, so run this test case only when
executed under vm-run.sh.
Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
2015-03-02 16:30:13 +02:00
Jouni Malinen
58980654af
tests: RADIUS server failure cases
...
Signed-off-by: Jouni Malinen <j@w1.fi>
2015-03-01 22:36:52 +02:00
Jouni Malinen
5ff53fd6dd
tests: RADIUS failover and failed attempt to return to primary server
...
Signed-off-by: Jouni Malinen <j@w1.fi>
2015-03-01 22:36:52 +02:00
Jouni Malinen
7c5658c661
tests: RADIUS client address specified
...
Signed-off-by: Jouni Malinen <j@w1.fi>
2015-03-01 22:36:52 +02:00
Jouni Malinen
1b5664f0fb
tests: RADIUS Accounting server unreachable and multiple STAs
...
This verifies behavior on reaching RADIUS_CLIENT_MAX_ENTRIES.
Signed-off-by: Jouni Malinen <j@w1.fi>
2015-03-01 22:36:52 +02:00
Jouni Malinen
48d9065f7d
tests: RADIUS Accounting server initially unreachable, but then available
...
Signed-off-by: Jouni Malinen <j@w1.fi>
2015-03-01 22:36:52 +02:00
Jouni Malinen
abeea374a4
tests: RADIUS server connect() failing during startup
...
Signed-off-by: Jouni Malinen <j@w1.fi>
2015-02-28 15:45:17 +02:00
Jouni Malinen
c4668009d0
tests: Remove unnecessary use of sudo from test cases
...
run-tests.py is running as root, so sudo does not need to be used
anymore from within each test case.
Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
2015-02-07 15:37:13 +02:00
Jouni Malinen
4a4cd04cad
tests: RADIUS MAC ACL and accounting enabled
...
This ends up using the special User-Name = STA MAC address case for
Accounting-Request. In addition, add Chargeable-User-Identity for one of
the STAs.
Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
2015-01-29 15:55:48 +02:00
Jouni Malinen
6ace81ea77
tests: Disconnect-Request with no session identification attributes
...
Signed-off-by: Jouni Malinen <j@w1.fi>
2015-01-16 16:16:28 +02:00
Jouni Malinen
9921689759
tests: Use a helper function to send and check RADIUS DAS messages
...
No need to have this same sequence of steps duplicated in multiple
places.
Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
2015-01-16 16:14:54 +02:00
Jouni Malinen
05dad77c8f
tests: RADIUS DAS and Disconnect-Request removing PMKSA cache entry
...
Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
2015-01-16 16:07:52 +02:00
Jouni Malinen
e94a3f626d
tests: RADIUS DAS with Acct-Multi-Session-Id
...
Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
2015-01-16 13:10:48 +02:00
Jouni Malinen
9142b4dd45
tests: Disconnect-Request multi-session-match
...
Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
2015-01-16 12:50:16 +02:00
Jouni Malinen
c2b48088f6
tests: Fix radius_das_disconnect match + non-match case
...
If Calling-Station-Id matches, but CUI does not, NAS is expected to
reject the request instead of accepting it. Verify that Disconnect-NAK
is returned for this.
Signed-off-by: Jouni Malinen <j@w1.fi>
2015-01-16 12:50:16 +02:00
Jouni Malinen
81e787b750
tests: Convert test skipping to use exception
...
Instead of returning "skip" from the test function, raise the new
HwsimSkip exception to indicate a test case was skipped.
Signed-off-by: Jouni Malinen <j@w1.fi>
2015-01-08 22:43:47 +02:00
Jouni Malinen
5f35a5e27f
tests: Add wait_connected() and wait_disconnected() helpers
...
Signed-off-by: Jouni Malinen <j@w1.fi>
2014-12-20 13:10:09 +02:00
Jouni Malinen
7c8f5ea6a0
tests: WPA2-PSK with RADIUS for passphrase
...
Signed-off-by: Jouni Malinen <j@w1.fi>
2014-11-25 01:28:34 +02:00
Jouni Malinen
414236b5db
tests: RADIUS accounting with PMKSA caching
...
Signed-off-by: Jouni Malinen <j@w1.fi>
2014-10-18 10:20:07 +03:00
Jouni Malinen
a47f815ff3
tests: Extend RADIUS protocol testing coverage
...
Test RADIUS client behavior with various invalid Access-Accept messages.
Signed-off-by: Jouni Malinen <j@w1.fi>
2014-06-08 18:17:08 +03:00
Jouni Malinen
8f614cd7a7
tests: Initial mechanism for RADIUS protocol testing
...
This brings in a minimal pyrad-based RADIUS server to allow various
protocol tests to be run. For now, the server is not adding
Message-Authenticator, so that error case is checked. Additional tests
can be added in the future.
Signed-off-by: Jouni Malinen <j@w1.fi>
2014-06-01 00:52:03 +03:00
Jouni Malinen
8b5f1095ce
tests: RADIUS interim accounting with unreachable server
...
This adds coverage for radius_client_list_del() loop that deletes
pending messages related to the specific STA.
Signed-off-by: Jouni Malinen <j@w1.fi>
2014-06-01 00:02:15 +03:00
Jouni Malinen
0aee8330bd
tests: RADIUS server failover
...
Signed-off-by: Jouni Malinen <j@w1.fi>
2014-05-31 12:43:37 +03:00
Jouni Malinen
6a188ba3fc
tests: RADIUS server unreachable with error handling
...
radius_{auth,acct}_unreachable tested some parts of RADIUS client code
error handling. However, they did not test everything since the send()
calls for unreachable port on localhost did not return an error (that
error was reported on receive side). Extend this with similar test cases
using unreachable IP address to get send() error returns covered as
well.
Signed-off-by: Jouni Malinen <j@w1.fi>
2014-05-30 18:34:39 +03:00
Jouni Malinen
19d64886ef
tests: RADIUS MAC ACL
...
Signed-off-by: Jouni Malinen <j@w1.fi>
2014-03-29 19:32:45 +02:00
Jouni Malinen
86c1861821
tests: Chargeable-User-Idnetity in Accounting-Request
...
Signed-off-by: Jouni Malinen <j@w1.fi>
2014-03-29 16:16:24 +02:00
Jouni Malinen
945cc2fd88
tests: RADIUS Disconnect-Request using CUI
...
Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
2014-03-13 23:08:01 +02:00
Jouni Malinen
4056b0c747
tests: RADIUS Class attribute
...
Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
2014-03-10 11:16:29 +02:00