#!/bin/bash
. testsuite/functions.sh

PORT=12354
run_weborf -b site1 -p $PORT

curl -siLXPROPFIND http://127.0.0.1:$PORT | grep "403 Forbidden"

curl -siLXCOPY http://127.0.0.1:$PORT/robots.txt -H "Destination: /robots.copy"

curl -siLXCOPY http://127.0.0.1:$PORT/robots.txt -H "Destination: /robots.copy" | grep "403 Forbidden"

curl -siLXCOPY http://127.0.0.1:$PORT/robots.txt -H "Destination: /../../../../../../../../../../../../../tmp/robots.copy" | grep "403 Forbidden"

curl -siLXMOVE http://127.0.0.1:$PORT/robots.txt -H "Destination: /robots.copy" | grep "403 Forbidden"

curl -siLXMOVE http://127.0.0.1:$PORT/robots.txt -H "Destination: /../../../../../../../../../../../../../tmp/robots.copy" | grep "403 Forbidden"

curl -siLXMKCOL http://127.0.0.1:$PORT/bleble | grep "403 Forbidden"

curl -siLXPUT http://127.0.0.1:$PORT/bleble | grep "403 Forbidden"
