Skip to content

Commit c69d613

Browse files
committed
New HTTP test for non-existing namespaces
1 parent 069f1fb commit c69d613

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/usr/bin/env bash
2+
set -euo pipefail
3+
4+
# Test that accessing a non-configured dataspace returns 404, not 500
5+
6+
# Try to access admin on non-existent test.localhost dataspace
7+
curl -k -w "%{http_code}\n" -o /dev/null -s \
8+
-H "Accept: application/xhtml+xml" \
9+
"https://admin.non-existing.localhost:4443/" \
10+
| grep -q "$STATUS_NOT_FOUND"
11+
12+
# Try to access end-user on non-existent test.localhost dataspace
13+
curl -k -w "%{http_code}\n" -o /dev/null -s \
14+
-H "Accept: application/xhtml+xml" \
15+
"https://non-existing.localhost:4443/" \
16+
| grep -q "$STATUS_NOT_FOUND"

0 commit comments

Comments
 (0)