source: mod_gnutls/test/test-21_TLS_reverse_proxy_wrong_cert.bash @ ed82a6a

debian/masterdebian/stretch-backportsjessie-backportsupstream
Last change on this file since ed82a6a was ed82a6a, checked in by Thomas Klute <thomas2.klute@…>, 5 years ago

Two more test cases for TLS reverse proxy and test locking fix

New test cases:

20: TLS reverse proxy with TLS client authentication between proxy and back end

server, otherwise the same as test case 19.

21: TLS reverse proxy scenario with the back end server presenting an imposter

certificate. The proxy must abort the connection and send an error message to
the client.

Bugfix: Each proxy test case used a lock file in its own test directory to protect
the back end server instance. Obviously, locking is only useful if the lock file
is shared between all potentially conflicting instances, thus it is moved to the
main test suite directory.

  • Property mode set to 100755
File size: 347 bytes
RevLine 
[ed82a6a]1#!/bin/bash
2
3set -e
4
5testdir="./tests/21_TLS_reverse_proxy_wrong_cert"
6. ./proxy_backend.bash
7
8function stop_backend
9{
10    backend_apache "${dir}" "backend.conf" stop
11}
12backend_apache "${testdir}" "backend.conf" start "${BACKEND_LOCK}"
13trap stop_backend EXIT
14
15make -f TestMakefile t-21
16
17backend_apache "${testdir}" "backend.conf" stop
18trap - EXIT
Note: See TracBrowser for help on using the repository browser.