diff --git a/test/test_restconf.sh b/test/test_restconf.sh index 9ac72a47..fa7e29f7 100755 --- a/test/test_restconf.sh +++ b/test/test_restconf.sh @@ -368,8 +368,8 @@ function testrun() expectpart "$(curl $CURLOPTS --http1.0 -X GET $proto://$addr/.well-known/host-meta | tr '\0' '\n')" 0 "" --not-- 'HTTP' else new "restconf GET https/1.0 - close" - expectpart "$(curl $CURLOPTS --http1.0 -X GET $proto://$addr/.well-known/host-meta)" "52 56" "" --not-- 'HTTP' - + # expectpart "$(curl $CURLOPTS --http1.0 -X GET $proto://$addr/.well-known/host-meta | tr '\0' '\n')" "52 56" "" --not-- 'HTTP' + expectpart "$(curl $CURLOPTS --http1.0 -X GET $proto://$addr/.well-known/host-meta | tr '\0' '\n')" 0 "" --not-- 'HTTP' fi if [ $proto = http ]; then @@ -377,7 +377,7 @@ function testrun() expectpart "$(curl $CURLOPTS --http1.1 -X GET $proto://$addr/.well-known/host-meta | tr '\0' '\n')" 0 --not-- 'HTTP' else new "restconf GET https/1.1 - close" - expectpart "$(curl $CURLOPTS --http1.1 -X GET $proto://$addr/.well-known/host-meta)" "52 56" --not-- 'HTTP' + expectpart "$(curl $CURLOPTS --http1.1 -X GET $proto://$addr/.well-known/host-meta | tr '\0' '\n')" 0 --not-- 'HTTP' fi if [ $proto = http ]; then diff --git a/test/test_restconf_noalpn.sh b/test/test_restconf_noalpn.sh index d413d751..0ed17e73 100755 --- a/test/test_restconf_noalpn.sh +++ b/test/test_restconf_noalpn.sh @@ -3,9 +3,9 @@ # Test of CLICON_RESTCONF_NOALPN_DEFAULT AND client certs # Also client certs (reason is usecase was POSTMAN w client certs) -dir=/tmp/test_restconf_noalpn.sh # Magic line must be first in script (see README.md) s="$_" ; . ./lib.sh || if [ "$s" = $0 ]; then exit 0; else return 0; fi +dir=/tmp/test_restconf_noalpn.sh # Only works with native and https if [ "${WITH_RESTCONF}" != "native" ]; then