From 2d0d5aeaf12b3d258db900523710db7c9db73018 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 10 Apr 2024 21:37:09 +0200 Subject: Adding debian version 1.59.0-1. Signed-off-by: Daniel Baumann --- debian/tests/proxy-works | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 debian/tests/proxy-works (limited to 'debian/tests/proxy-works') diff --git a/debian/tests/proxy-works b/debian/tests/proxy-works new file mode 100755 index 0000000..1e03100 --- /dev/null +++ b/debian/tests/proxy-works @@ -0,0 +1,17 @@ +#!/bin/bash + +# Nghttpx should proxy the port 80 by default. + +exec 2>&1 +set -eux + +PROXY=http://localhost:3000 + +# Verify that we can connect +nghttp ${PROXY} > /dev/null + +# Extract HTTP error code +STATUS=$(nghttp ${PROXY} -v | grep -Po '(?<=:status: )(\d+)') + +# Verify it's OK (200). +echo ${STATUS} | grep 200 -- cgit v1.2.3