From 710dde1faf4846c5889fc77f4502c5d056b08678 Mon Sep 17 00:00:00 2001 From: Florent Daigniere Date: Sat, 12 Nov 2022 14:27:32 +0100 Subject: [PATCH] Fix #948: ensure the admin panel is disabled --- tests/compose/webmail/01_ensure_admin_unreachable.sh | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 tests/compose/webmail/01_ensure_admin_unreachable.sh diff --git a/tests/compose/webmail/01_ensure_admin_unreachable.sh b/tests/compose/webmail/01_ensure_admin_unreachable.sh new file mode 100644 index 00000000..c4afc76a --- /dev/null +++ b/tests/compose/webmail/01_ensure_admin_unreachable.sh @@ -0,0 +1,4 @@ +#!/bin/sh + +[[ `curl -I -so /dev/null -w "%{http_code}" http://localhost/` -ne 200 ]] && echo "The default page of rainloop hasn't returned 200!" >>/dev/stderr && exit 1 +[[ `curl -I -so /dev/null -w "%{http_code}" http://localhost/?admin` -ne 403 ]] && echo "The admin of rainloop is not disabled!" >>/dev/stderr && exit 1