Commit Graph

290 Commits

Author SHA1 Message Date
Nikos Mavrogiannopoulos
b3cbfbbcd5 tests: Added check for certificate alternative name checking
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
2017-01-28 15:23:17 +01:00
Nikos Mavrogiannopoulos
2ceb0ffb47 radius-test: check whether the special IP values are handled
In particular we check whether 255.255.255.254 is correctly
and the expected IP is assigned to client.
2017-01-18 15:26:31 +01:00
Nikos Mavrogiannopoulos
d2f07e7c70 tests: use fedora 25 for docker tests
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
2017-01-18 15:18:49 +01:00
Mike Miller
e69a07ed6e tests: allow running tests with alternate OpenConnect
Allow $OPENCONNECT in the caller's environment to override the default
openconnect system installation.

Signed-off-by: Mike Miller <mtmiller@debian.org>
2016-12-23 08:04:59 +01:00
Mike Miller
dc222463e0 tests: fix test-sighup-key-change for current OpenConnect
OpenConnect 7.08 removed the option `--no-cert-check`. Pass the actual
id of the newly generated server key. On systems with older versions of
GnuTLS, pass the server key fingerprint instead.

Resolves #81

Signed-off-by: Mike Miller <mtmiller@debian.org>
2016-12-17 12:52:15 -08: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
Mike Miller
d3370cccd0 tests: allow test-gssapi to run on Debian
Check for alternate filename of ntlmssp.conf on Debian-based systems.

Resolves #82

Signed-off-by: Mike Miller <mtmiller@debian.org>
2016-12-16 09:24:43 +01:00
Mike Miller
9f0776e6ae tests: ensure unique temporary config file names
Some unit tests share the same ocserv config file. Ensure that the file
written and used by each test script has a unique name.

Resolves #83

Signed-off-by: Mike Miller <mtmiller@debian.org>
2016-12-15 16:44:14 -08:00
Nikos Mavrogiannopoulos
cd39da8ae1 tests: coverted to bash tests which had bashishms 2016-12-15 21:23:17 +01:00
Mike Miller
34fd11d3a8 Fix typos in man pages, config files, and comments
Signed-off-by: Mike Miller <mtmiller@debian.org>
2016-12-13 18:01:23 -08:00
Nikos Mavrogiannopoulos
2c64c99baa Reverted recursive make in src/
This simplifies the make process and allows for greater parallelism
during build.
2016-12-13 15:37:07 +01:00
Nikos Mavrogiannopoulos
34caca57b0 tests: added basic checks for HTML escaping/unescaping 2016-10-16 16:58:49 +02:00
Nikos Mavrogiannopoulos
32e9766fe8 tests: added basic checks for URL escaping/unescaping 2016-10-16 15:48:42 +02:00
Nikos Mavrogiannopoulos
284af95d79 tests: link valid-hostname with gnulib
It is used by its included file.
2016-09-14 11:35:58 +02:00
Nikos Mavrogiannopoulos
56e82a2f31 test-gssapi: use an unlikely username to avoid clashes
That prevents the test from failing if the host system contains a
user called 'test'.
2016-09-09 16:33:25 +02:00
Nikos Mavrogiannopoulos
a1889e100d Allow disabling the tests requiring root
This allows seamless operation on the CI.
2016-09-04 15:29:39 +02:00
Nikos Mavrogiannopoulos
8163e5c486 tests: use fedora24 2016-07-28 16:23:46 +02:00
Nikos Mavrogiannopoulos
e12d2e6818 tests: made pam check independent of builddir 2016-06-29 10:05:00 +02:00
Nikos Mavrogiannopoulos
ae3c20c3ed tests: pam tests were converted to use pam-wrapper
This allows running the PAM tests without requiring root access
2016-06-25 23:05:18 +02:00
Nikos Mavrogiannopoulos
3d4fb9b3e6 tests: added unit test for valid_hostname() function 2016-06-18 14:27:40 +02:00
Nikos Mavrogiannopoulos
f7e057a6dd tests: check whether the hostname is overriden by per-user conf 2016-06-18 14:21:46 +02:00
Nikos Mavrogiannopoulos
efafdd9e73 tests: added missing certs 2016-06-17 23:11:21 +02:00
Nikos Mavrogiannopoulos
a0ffa818c0 tests: use the .tmp suffix to pid files 2016-06-17 11:56:43 +02:00
Nikos Mavrogiannopoulos
cbc4dde44b tests: moved passwd files to data/ 2016-06-17 11:54:05 +02:00
Nikos Mavrogiannopoulos
f3a182dbdf tests: moved config files to data/ 2016-06-17 11:54:03 +02:00
Nikos Mavrogiannopoulos
5c88ee7715 tests: moved all certificates and keys in certs/ 2016-06-17 11:53:50 +02:00
Nikos Mavrogiannopoulos
aa27271f3b tests: remove the explicit docker pull commands from docker-common.sh 2016-06-08 17:01:48 +02:00
Nikos Mavrogiannopoulos
ab5d22c005 tests: added check for host-update-script being run 2016-06-04 20:02:15 +02:00
Nikos Mavrogiannopoulos
a9c5a8271c tests: added check for the CA certificate handler 2016-05-17 14:46:12 +02:00
Nikos Mavrogiannopoulos
6687220e48 tests: added check for cert handler validity 2016-04-30 13:53:32 +02:00
Nikos Mavrogiannopoulos
46a53437d0 ocpasswd-test: updated grep check for more portability across systems 2016-04-19 16:57:08 +02:00
Nikos Mavrogiannopoulos
5ea4b32f4d tests: use 127.0.0.1 for debian radiusclient conf
That is because freeradius listens to IPv4 by default.
Also adjusted the default log directory to match the
Fedora's one and simplify the test.
2016-04-17 12:51:05 +02:00
Nikos Mavrogiannopoulos
0561534639 tests: updated debian tests to use libgnutls30 2016-04-17 11:05:32 +02:00
Nikos Mavrogiannopoulos
b088d2df73 Makefiles: combined the rules for local libraries 2016-04-16 10:47:18 +02:00
Nikos Mavrogiannopoulos
9a125c3aba tests: update tests to include the running username/group
That removes the requirement to keep a uid_wrapper specific
hack in check_upeer_id().
2016-04-15 11:17:35 +02:00
Nikos Mavrogiannopoulos
4c43f06ab5 tests: added check for connection using invalid certificate 2016-04-12 22:13:54 +02:00
Nikos Mavrogiannopoulos
071a37aaa4 tests: Added test for radius group receiving
This tests the receiving of groups using "Class" radius attribute
in the format "OU=group1;group2".
2016-04-01 15:39:38 +02:00
Nikos Mavrogiannopoulos
b5cabb9589 tests: added check for trim_trailing_whitespace() 2016-04-01 15:33:11 +02:00
Nikos Mavrogiannopoulos
34857ff5a5 tests: check for DNS information propagation in user config 2016-04-01 15:32:20 +02:00
Nikos Mavrogiannopoulos
4541a73d3d tests: fixed proxyproto test on debian 2016-03-05 16:58:17 +01:00
Nikos Mavrogiannopoulos
94e44d2eda tests: updated debian docker file 2016-03-05 14:10:30 +01:00
Nikos Mavrogiannopoulos
0be5ada07b tests: removed cookie key rotation check
It is no longer applicable.
2016-02-23 15:31:17 +01:00
Nikos Mavrogiannopoulos
220a6c2c4d tests: check the ipv4-network directive from user config 2016-02-23 14:49:20 +01:00
Nikos Mavrogiannopoulos
260b07955c tests: allow compilation with included protobuf 2016-02-23 14:19:02 +01:00
Nikos Mavrogiannopoulos
0d91834624 tests: allow compilation without http-parser lib 2016-02-19 10:05:48 +01:00
Nikos Mavrogiannopoulos
b3fe8afe3a tests: added check for human_addr() output 2016-02-19 10:04:21 +01:00
Nikos Mavrogiannopoulos
83dde24620 tests: reference debian testing by name 2016-02-14 14:50:49 +01:00
Nikos Mavrogiannopoulos
5dbe753512 tests: increase timeout for radius accounting report 2016-01-28 15:22:22 +01:00
Nikos Mavrogiannopoulos
d49d3f2253 tests: fixed test-sighup-key-change to be able to cope with diffent build dir 2016-01-27 11:56:50 +01:00
Nikos Mavrogiannopoulos
ed2edd65c5 tests: added check for certificate update on reload 2016-01-26 12:51:05 +01:00