Add proper error message if namespace not found in module-set header

This commit is contained in:
Olof hagsand 2022-11-28 13:50:41 +01:00
parent 7a388b960a
commit 8ebab16c4c
4 changed files with 9 additions and 4 deletions

View file

@ -427,7 +427,8 @@ function err(){
ret=$2
echo -e "\e[31m\nError in Test$testnr [$testname]:"
if [ $# -gt 0 ]; then
echo "Expected: $1"
echo "Expected"
echo "$1"
echo
fi
if [ $# -gt 1 ]; then

View file

@ -195,7 +195,6 @@ EOF
if ! $enable; then
# XXX or bad request?
new "WWW get html, not enabled, expect not found"
# echo "curl $CURLOPTS -X GET -H 'Accept: text/html' $proto://localhost/data/index.html"
expectpart "$(curl $CURLOPTS -X GET -H 'Accept: text/html' $proto://localhost/data/index.html)" 0 "HTTP/$HVER 404"
else
new "WWW get root expect 404 without body"