X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=t%2Ft5540-http-push.sh;h=10e5fd0d5a5c38eaa102d88e607f2585e1157526;hb=69fd60a649dbe40390fa47e0ccc7478fcf64f451;hp=c236b5e83beed8997e8f6c3a50f0bb74f73f3f33;hpb=6e5d7ddc490fc7fdf46a5d0af35aa6fd64ae4a96;p=git.git diff --git a/t/t5540-http-push.sh b/t/t5540-http-push.sh index c236b5e83..10e5fd0d5 100755 --- a/t/t5540-http-push.sh +++ b/t/t5540-http-push.sh @@ -94,6 +94,18 @@ test_expect_success 'MKCOL sends directory names with trailing slashes' ' ' +x1="[0-9a-f]" +x2="$x1$x1" +x5="$x1$x1$x1$x1$x1" +x38="$x5$x5$x5$x5$x5$x5$x5$x1$x1$x1" +x40="$x38$x2" + +test_expect_success 'PUT and MOVE sends object to URLs with SHA-1 hash suffix' ' + sed -e "s/PUT /OP /" -e "s/MOVE /OP /" "$HTTPD_ROOT_PATH"/access.log | + grep -e "\"OP .*/objects/$x2/${x38}_$x40 HTTP/[.0-9]*\" 20[0-9] " + +' + stop_httpd test_done