Ignore:
Timestamp:
Oct 11, 2017, 2:25:39 AM (2 years ago)
Author:
Thomas Klute <thomas2.klute@…>
Branches:
debian/master, debian/stretch-backports, master, upstream
Children:
1872744
Parents:
c9e4709
Message:

Test suite: Start proxy backend server from runtests if config exists

Proxy tests started the backend server from the test script until now,
so this removes a lot of duplicate code.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/test-23_TLS_reverse_proxy_mismatched_priorities.bash

    rc9e4709 rb28158c  
    11#!/bin/bash
    2 
    3 set -e
    4 : ${srcdir:="."}
    5 . ${srcdir}/common.bash
    6 netns_reexec ${@}
    7 
    8 testdir="${srcdir}/tests/23_TLS_reverse_proxy_mismatched_priorities"
    9 . $(dirname ${0})/proxy_backend.bash
    102
    113# This test checks if server and proxy priorities are applied
     
    135# back end server is configured not to use TLS 1.2. The proxy request
    146# must fail and the client must receive an error message to pass.
    15 
    16 function stop_backend
    17 {
    18     backend_apache "${testdir}" "backend.conf" stop
    19 }
    20 backend_apache "${testdir}" "backend.conf" start "${BACKEND_LOCK}"
    21 trap stop_backend EXIT
    22 
    237${srcdir}/runtests t-23
    24 
    25 backend_apache "${testdir}" "backend.conf" stop
    26 trap - EXIT
Note: See TracChangeset for help on using the changeset viewer.