21 Commits

Author SHA1 Message Date
Nikos Mavrogiannopoulos
a7c3c4f1bc Regenerated expired certificates and updated scripts for new ones
Also added rules and templates to regenerate certificates when
needed.

Signed-off-by: Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com>
2023-06-02 06:15:45 +02:00
Nikos Mavrogiannopoulos
b2c0c6c1cf tests: replaced explicit ports with random assignment
Signed-off-by: Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com>
2020-08-09 13:14:22 +02:00
Nikos Mavrogiannopoulos
7a7d432d0f use REMOTE_HOSTNAME to pass the user's advertised hostname
The previously used HOSTNAME variable is being overriden by bash and
thus was not a reliable one. We switch to setting REMOTE_HOSTNAME,
but keep the HOSTNAME for compatibility.

This also changes 'test-pass-script' to check for the new variable.

Signed-off-by: Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com>
2020-08-05 23:05:24 +02:00
Nikos Mavrogiannopoulos
99fd5d7263 test-pass-script: introduced more sophisticated timeouts
Signed-off-by: Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com>
2020-08-04 22:48:33 +02:00
Alan Jowett
780fbb89a0 Script needs access to additional client metadata.
Export more information to the script, including client device platform,
type and user agent.

Resolves: #256

Signed-off-by: Alan Jowett <alanjo@microsoft.com>
2020-03-11 09:13:55 +01:00
Nikos Mavrogiannopoulos
cc651b9de5 Ensure scripts have all the information on all disconnection types
When a client re-uses a cookie and takes over a previous connection
previously the disconnect script of the old connection wouldn't receive
the IP information. Ensure that all information is provided to scripts
at this case.

Resolves: #231

Signed-off-by: Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com>
2020-02-23 13:44:19 +01:00
Nikos Mavrogiannopoulos
d852195e64 tests: reproduce #231
This modifies test-pass-script to force a DPD timeout to
verify whether ${IP_REMOTE} is set on the disconnect script.

Signed-off-by: Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com>
2020-02-19 22:17:31 +01:00
Nikos Mavrogiannopoulos
a779b18a81 tests: test-pass-script: only run when openconnect supports --local-hostname
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
2017-09-09 11:49:57 +02:00
Nikos Mavrogiannopoulos
b18cd67917 tests: make test-pass-script pass with new openconnect
The new versions (7.07+) do not automatically send a bogus hostname,
they require the --local-hostname parameter to be passed.

Resolves #80
2016-12-16 09:37:44 +01:00
Nikos Mavrogiannopoulos
f3a182dbdf tests: moved config files to data/ 2016-06-17 11:54:03 +02:00
Nikos Mavrogiannopoulos
ab5d22c005 tests: added check for host-update-script being run 2016-06-04 20:02:15 +02:00
Nikos Mavrogiannopoulos
eba415def6 tests: openconnect binary is now set in variable 2015-03-29 19:38:38 +02:00
Nikos Mavrogiannopoulos
a3b8745f44 tests: check for special characters into username in addition to password 2014-06-09 15:18:50 +02:00
Nikos Mavrogiannopoulos
6f5ec79678 use a more portable way to kill the openconnect process. 2014-05-31 18:30:28 +02:00
Nikos Mavrogiannopoulos
044b910128 Force full connection after cookie when a script is involved.
That is because in the new design of ocserv, the cookie is being
provided prior to any script being run or evaluated.
2014-05-15 11:52:17 +02:00
Nikos Mavrogiannopoulos
3bf5c03b4b Test whether the connect and disconnect scripts have been called. 2014-04-12 21:07:53 +02:00
Nikos Mavrogiannopoulos
a3ecb5b91f simplified and corrected test execution 2014-04-01 18:35:01 +02:00
Nikos Mavrogiannopoulos
816c51c7d2 reduced fragility of the tests 2013-12-08 13:28:26 +01:00
Nikos Mavrogiannopoulos
5938943d39 use different ports per test 2013-11-23 16:55:38 +01:00
Nikos Mavrogiannopoulos
d85669aedc relicensed files. 2013-11-11 23:16:54 +01:00
Nikos Mavrogiannopoulos
44f0a7193a Added login-test when a connect or disconnect script is set. 2013-10-31 17:21:48 +01:00