We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 069f1fb commit c69d613Copy full SHA for c69d613
http-tests/dataspaces/non-existent-dataspace-xhtml.sh
@@ -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
14
15
+ "https://non-existing.localhost:4443/" \
16
0 commit comments