Skip to content

Commit 5fa932b

Browse files
committed
Fixed owner ACL test
1 parent 7eae976 commit 5fa932b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

http-tests/access/acl-owner-authorization.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ ntriples=$(curl -k -s -G \
3636
"${ADMIN_BASE_URL}access"
3737
)
3838

39-
auth1=$(cat "$ntriples" | grep "<http://www.w3.org/1999/02/22-rdf-syntax-ns#> <https://w3id.org/atomgraph/linkeddatahub/admin/acl#OwnerAuthorization>" | cut -d' ' -f1 | head -n1)
40-
auth2=$(cat "$ntriples" | grep "<http://www.w3.org/ns/auth/acl#agent> <${AGENT_URI}>" | cut -d' ' -f1 | head -n1)
39+
auth1=$(echo "$ntriples" | grep -F "<http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://w3id.org/atomgraph/linkeddatahub/admin/acl#OwnerAuthorization>" | cut -d' ' -f1)
40+
auth2=$(echo "$ntriples" | grep -F "<http://www.w3.org/ns/auth/acl#agent> <${AGENT_URI}>" | cut -d' ' -f1)
4141

4242
# if the subjects of the two triples are different, the agent is not the owner of the container
4343
if [ "$auth1" != "$auth2" ]; then

0 commit comments

Comments
 (0)