Skip to content

Commit 0fc008f

Browse files
committed
Test fixes
1 parent 3530bea commit 0fc008f

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

http-tests/document-hierarchy/DELETE-non-existing-403.sh renamed to http-tests/document-hierarchy/DELETE-404.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ add-agent-to-group.sh \
1515
--agent "$AGENT_URI" \
1616
"${ADMIN_BASE_URL}acl/groups/writers/"
1717

18-
# check that access to non-existing graph is forbidden
18+
# check that non-existing document is not found
1919

2020
curl -k -w "%{http_code}\n" -o /dev/null -s -G \
2121
-E "$AGENT_CERT_FILE":"$AGENT_CERT_PWD" \
2222
-X DELETE \
2323
-H "Accept: application/n-triples" \
2424
"${END_USER_BASE_URL}non-existing/" \
25-
| grep -q "$STATUS_FORBIDDEN"
25+
| grep -q "$STATUS_NOT_FOUND"

http-tests/document-hierarchy/GET-non-existing-403.sh renamed to http-tests/document-hierarchy/GET-404.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ add-agent-to-group.sh \
1515
--agent "$AGENT_URI" \
1616
"${ADMIN_BASE_URL}acl/groups/writers/"
1717

18-
# check that access to graph with parent is allowed, but the graph is not found
18+
# check that non-existing document is not found
1919

2020
curl -k -w "%{http_code}\n" -o /dev/null -s -G \
2121
-E "$AGENT_CERT_FILE":"$AGENT_CERT_PWD" \
2222
-H "Accept: application/n-triples" \
2323
"${END_USER_BASE_URL}non-existing/" \
24-
| grep -q "$STATUS_FORBIDDEN"
24+
| grep -q "$STATUS_NOT_FOUND"

http-tests/document-hierarchy/POST-non-existing-403.sh renamed to http-tests/document-hierarchy/POST-404.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ add-agent-to-group.sh \
1515
--agent "$AGENT_URI" \
1616
"${ADMIN_BASE_URL}acl/groups/writers/"
1717

18-
# check that access to non-existing graph is forbidden
18+
# check that non-existing document is not found
1919

2020
(
2121
curl -k -w "%{http_code}\n" -o /dev/null -s \
@@ -27,4 +27,4 @@ curl -k -w "%{http_code}\n" -o /dev/null -s \
2727
<http://s> <http://p> <http://o> .
2828
EOF
2929
) \
30-
| grep -q "$STATUS_FORBIDDEN"
30+
| grep -q "$STATUS_NOT_FOUND"

0 commit comments

Comments
 (0)