Skip to content

Commit e765a60

Browse files
committed
HTTP test for accept param on non-exsistent dataspaces
1 parent ae475fa commit e765a60

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#!/usr/bin/env bash
2+
set -euo pipefail
3+
4+
# Regression: ?accept= param must be honoured even when the dataspace does not exist
5+
6+
# admin app
7+
content_type=$(curl -k -s -G -w "%{content_type}" -o /dev/null \
8+
--data-urlencode "accept=text/turtle" \
9+
"https://admin.non-existing.localhost:4443/")
10+
11+
echo "$content_type" | grep -q "text/turtle"
12+
13+
# end-user app
14+
content_type=$(curl -k -s -G -w "%{content_type}" -o /dev/null \
15+
--data-urlencode "accept=text/turtle" \
16+
"https://non-existing.localhost:4443/")
17+
18+
echo "$content_type" | grep -q "text/turtle"

0 commit comments

Comments
 (0)