Skip to content

Commit

Permalink
Use the right create-item.sh script :)
Browse files Browse the repository at this point in the history
  • Loading branch information
namedgraph committed Oct 20, 2023
1 parent 399973b commit cd34a83
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions http-tests/graph-store-protocol/PUT-item-parent-403.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ pushd . > /dev/null && cd "$SCRIPT_ROOT/admin/acl"

popd > /dev/null

pushd . > /dev/null && cd "$SCRIPT_ROOT"

# create item

slug="test-item"
Expand All @@ -31,15 +33,17 @@ item=$(./create-item.sh \
--slug "$slug" \
--container "$END_USER_BASE_URL")

popd > /dev/null

# check that item as parent is forbidden

(
curl -k -w "%{http_code}\n" -o /dev/null -s \
-X POST \
-X PUT \
-E "$AGENT_CERT_FILE":"$AGENT_CERT_PWD" \
-H "Content-Type: application/n-triples" \
--data-binary @- \
"${item}/child/" <<EOF
"${item}child/" <<EOF
<http://s> <http://p> <http://o> .
EOF
) \
Expand Down

0 comments on commit cd34a83

Please sign in to comment.