Nikos Mavrogiannopoulos
86ae99864b
tests: check whether ocserv is build with oath support prior to running otp tests
...
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org >
2018-02-25 16:03:33 +01:00
Nikos Mavrogiannopoulos
66f9f97d1d
test: replaced docker otp-test with cwrap test-otp
...
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org >
2018-02-25 16:00:09 +01:00
Nikos Mavrogiannopoulos
00c6f566cb
tests: introduced test with OTP-password and certificate auth
...
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org >
2018-02-25 14:38:19 +01:00
Daniel Lenski
fbdf8f875e
Make escape_url() percent-escape fewer characters and escape ' ' as '+'
...
Per RFC 3986, neither ASCII alphanumeric characters, nor any of '-', '_',
'.', '~', need to be escaped anywhere in a URL or query string.
2018-01-13 13:11:33 -08:00
Daniel Lenski
38ebf44620
tests for unescaping decimal HTML escapes and '+' in URLs
2018-01-13 12:56:59 -08:00
Nikos Mavrogiannopoulos
7a19296119
tests: updated for increase in slack time
...
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org >
2018-01-06 08:55:02 +01:00
Nikos Mavrogiannopoulos
705b65d168
tests: updated to account for changes in cookie invalidation
...
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org >
2017-12-11 08:26:48 +01:00
Frank Huang
f10c5bc73e
Update ocpasswd-test
...
Signed-off-by: Frank Huang <chuang213@gmail.com >
2017-10-09 21:42:30 +02: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
6bf1341c21
.gitlab-ci.yml: root tests are run on CI systems
...
Because these tests can only be run in-tree, the CI builds
were switched to be in-tree, except for FreeBSD build which
now runs out-of-tree.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org >
2017-09-09 11:35:14 +02:00
Nikos Mavrogiannopoulos
b5d77da7f4
Separate root from docker tests
...
This allows running the root tests under CI, even if the
docker tests (which cannot be run) are not.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org >
2017-09-09 11:27:35 +02:00
Nikos Mavrogiannopoulos
8eafacf2a9
tests: test-gssapi is now run as non-root
...
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com >
2017-09-09 10:51:42 +02:00
Nikos Mavrogiannopoulos
834326fe70
tests: provide more verbose output on test-pam
...
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com >
2017-09-08 11:29:31 +02:00
Nikos Mavrogiannopoulos
077e16e36d
tests: check server functionality with Ed25519/RSA-PSS certs
...
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com >
2017-08-23 12:00:15 +02:00
Nikos Mavrogiannopoulos
5d74492a59
tests: verify correct operation with locked account
...
That checks whether connecting to a locked account will have
unexpected effects (e.g., login allowed).
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com >
2017-08-23 09:26:58 +02:00
Nikos Mavrogiannopoulos
37f8ebc8c9
tests: added unit test for proxy protocol v1
...
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org >
2017-03-28 08:15:35 +02:00
Nikos Mavrogiannopoulos
0c18e122e6
tests: added check for proxy protocol v1
...
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org >
2017-03-28 08:11:53 +02:00
Nikos Mavrogiannopoulos
83bea71e38
tests: added unit test for cstp_recv_nb()
...
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org >
2017-03-24 20:07:47 +01:00
Nikos Mavrogiannopoulos
50c551b56e
tests: kerberos tests use F25
...
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com >
2017-03-23 09:33:14 +01:00
Nikos Mavrogiannopoulos
8e66136a1b
tests: test-user-config: fixed check for 401 error
...
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com >
2017-03-23 09:28:43 +01:00
Nikos Mavrogiannopoulos
6986a97d12
tests: added missing file to dist files
2017-02-12 10:19:02 +01:00
Nikos Mavrogiannopoulos
12c4970c9e
tests: removed firewall tests
...
These were no longer up-to-date and were not checking the provided
functionality.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com >
2017-02-06 01:54:48 +01:00
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