source: mod_gnutls/test/test-23_TLS_reverse_proxy_mismatched_priorities.bash @ cf4e708

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

Run tests in separate network namespaces

Creating a network namespace for each test avoids port conflicts so
Apache instances can run in parallel, and also isolates the tests from
the host system.

Test namespaces are automatically used if the "unshare" command is
available, and can be disabled by passing "--disable-test-namespaces"
to ./configure.

  • Property mode set to 100755
File size: 704 bytes
Line 
1#!/bin/bash
2
3set -e
4: ${srcdir:="."}
5. ${srcdir}/common.bash
6netns_reexec ${@}
7
8testdir="${srcdir}/tests/23_TLS_reverse_proxy_mismatched_priorities"
9. $(dirname ${0})/proxy_backend.bash
10
11# This test checks if server and proxy priorities are applied
12# properly. The proxy server requries a TLS 1.2 connection, but the
13# back end server is configured not to use TLS 1.2. The proxy request
14# must fail and the client must receive an error message to pass.
15
16function stop_backend
17{
18    backend_apache "${dir}" "backend.conf" stop
19}
20backend_apache "${testdir}" "backend.conf" start "${BACKEND_LOCK}"
21trap stop_backend EXIT
22
23${srcdir}/runtests t-23
24
25backend_apache "${testdir}" "backend.conf" stop
26trap - EXIT
Note: See TracBrowser for help on using the repository browser.