source: mod_gnutls/test/test-23_TLS_reverse_proxy_mismatched_priorities.bash @ 4038c7a

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

Test suite: Add tests to "dist" target and support VPATH builds

Supporting VPATH builds requires using $srcdir to find non-generated
data rather than fixed relative paths. If test are not called through
the make system, local defaults must be used. Not changing directories
during tests any more makes this easier.

A few files (e.g. templates, generated CRL) have been moved around to
better match the new structure.

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