File tree Expand file tree Collapse file tree
http-tests/document-hierarchy Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+ set -euo pipefail
3+
4+ initialize_dataset " $END_USER_BASE_URL " " $TMP_END_USER_DATASET " " $END_USER_ENDPOINT_URL "
5+ initialize_dataset " $ADMIN_BASE_URL " " $TMP_ADMIN_DATASET " " $ADMIN_ENDPOINT_URL "
6+ purge_cache " $END_USER_VARNISH_SERVICE "
7+ purge_cache " $ADMIN_VARNISH_SERVICE "
8+ purge_cache " $FRONTEND_VARNISH_SERVICE "
9+
10+ # add agent to the writers group
11+
12+ add-agent-to-group.sh \
13+ -f " $OWNER_CERT_FILE " \
14+ -p " $OWNER_CERT_PWD " \
15+ --agent " $AGENT_URI " \
16+ " ${ADMIN_BASE_URL} acl/groups/writers/"
17+
18+ # create container
19+
20+ slug=" test"
21+
22+ container=$( create-container.sh \
23+ -f " $AGENT_CERT_FILE " \
24+ -p " $AGENT_CERT_PWD " \
25+ -b " $END_USER_BASE_URL " \
26+ --title " Test" \
27+ --slug " $slug " \
28+ --parent " $END_USER_BASE_URL " )
29+
30+ # check that the item was created at the expected URL and attached to the document hierarchy
31+
32+ get.sh \
33+ -f " $AGENT_CERT_FILE " \
34+ -p " $AGENT_CERT_PWD " \
35+ --accept ' application/n-triples' \
36+ " $container " \
37+ | grep " <${container} > <http://www.w3.org/ns/auth/acl#owner> <${AGENT_URI} >"
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+ set -euo pipefail
3+
4+ initialize_dataset " $END_USER_BASE_URL " " $TMP_END_USER_DATASET " " $END_USER_ENDPOINT_URL "
5+ initialize_dataset " $ADMIN_BASE_URL " " $TMP_ADMIN_DATASET " " $ADMIN_ENDPOINT_URL "
6+ purge_cache " $END_USER_VARNISH_SERVICE "
7+ purge_cache " $ADMIN_VARNISH_SERVICE "
8+ purge_cache " $FRONTEND_VARNISH_SERVICE "
9+
10+ # add agent to the writers group
11+
12+ add-agent-to-group.sh \
13+ -f " $OWNER_CERT_FILE " \
14+ -p " $OWNER_CERT_PWD " \
15+ --agent " $AGENT_URI " \
16+ " ${ADMIN_BASE_URL} acl/groups/writers/"
17+
18+ # create item
19+
20+ slug=" test-item"
21+
22+ item=$( create-item.sh \
23+ -f " $AGENT_CERT_FILE " \
24+ -p " $AGENT_CERT_PWD " \
25+ -b " $END_USER_BASE_URL " \
26+ --title " Test" \
27+ --slug " $slug " \
28+ --container " $END_USER_BASE_URL " )
29+
30+ # check that the item was created at the expected URL and attached to the document hierarchy
31+
32+ get.sh \
33+ -f " $AGENT_CERT_FILE " \
34+ -p " $AGENT_CERT_PWD " \
35+ --accept ' application/n-triples' \
36+ " $item " \
37+ | grep " <${item} > <http://www.w3.org/ns/auth/acl#owner> <${AGENT_URI} >"
You can’t perform that action at this time.
0 commit comments