Skip to content

Commit 6d93326

Browse files
committed
New HTTP test for PUT with empty request body
Increased burst limit for static files
1 parent 32e1501 commit 6d93326

2 files changed

Lines changed: 30 additions & 1 deletion

File tree

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
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
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+
# check that graph without parent is forbidden
19+
20+
(
21+
curl -k -w "%{http_code}\n" -o /dev/null -s \
22+
-X PUT \
23+
-E "$AGENT_CERT_FILE":"$AGENT_CERT_PWD" \
24+
-H "Content-Type: application/n-triples" \
25+
--data-binary @- \
26+
"${END_USER_BASE_URL}non-existing/" <<EOF
27+
EOF
28+
) \
29+
| grep -q "$STATUS_OK"

platform/nginx.conf.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ http {
4848

4949
location ^~ /static/ {
5050
proxy_pass http://linkeddatahub;
51-
limit_req zone=static_files burst=20 nodelay;
51+
limit_req zone=static_files burst=50 nodelay;
5252

5353
add_header Cache-Control "public, max-age=604800, immutable";
5454
}

0 commit comments

Comments
 (0)