#!/bin/sh 

set -eu

REQUIRED_CMDLINE="-c examples/network.conf"
. regression.inc

NAME="check ports"
HOST="secure.example.com"
PORTS="62111 62222 62333 62444"
WPATH="/"
CODE=200
do_request

PORTS=62555
HOST="no_secure.example.com"

NAME="check virtual host port"
WPATH="/no_secure.html"
CODE=200
do_request

NAME="check virtual host not found"
WPATH="/secure.html"
CODE=404
do_request

echo "All tests passed"
