stunnel4/tests/recipes/037_failover_prio1

33 lines
698 B
Plaintext
Raw Normal View History

2018-03-29 12:42:35 +02:00
#!/bin/sh
. $(dirname $0)/../test_library
start() {
../../src/stunnel -fd 0 <<EOT
debug = debug
syslog = no
pid = ${result_path}/stunnel.pid
output = ${result_path}/stunnel.log
[https client]
client = yes
failover = prio
accept = 127.0.0.1:${http1}
connect = 127.0.0.1:${https}
connect = 127.0.0.1:${https2}
[https server_1]
accept = 127.0.0.1:${https}
connect = 127.0.0.1:${http2}
cert = ${script_path}/certs/server_cert.pem
[https server_2]
accept = 127.0.0.1:${https2}
connect = 127.0.0.1:${http2}
cert = ${script_path}/certs/server_cert.pem
EOT
}
check_ports "037_failover_prio1"
test_log_for "037_failover_prio1" "prio" "$1" 2>> "stderr.log"
exit $?