File tree Expand file tree Collapse file tree 1 file changed +31
-0
lines changed
Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Original file line number Diff line number Diff line change @@ -262,6 +262,37 @@ jobs:
262262 echo "$result"
263263 echo "$result" | grep -oE "<meta name=\"title\" [^>]*>" | grep "Environmental & Architectural Phenomenology Vol. 28, No. 1"
264264
265+ # Verify 301 Handle redirect behavior
266+ # Note: /handle/123456789/260 is the same test Publication used by our e2e tests
267+ - name : Verify 301 redirect from '/handle' URLs
268+ run : |
269+ result=$(wget --server-response --quiet http://127.0.0.1:4000/handle/123456789/260 2>&1 | head -1 | awk '{print $2}')
270+ echo "$result"
271+ [[ "$result" -eq "301" ]]
272+
273+ # Verify 403 error code behavior
274+ - name : Verify 403 error code from '/403'
275+ run : |
276+ result=$(wget --server-response --quiet http://127.0.0.1:4000/403 2>&1 | head -1 | awk '{print $2}')
277+ echo "$result"
278+ [[ "$result" -eq "403" ]]
279+
280+ # Verify 404 error code behavior
281+ - name : Verify 404 error code from '/404' and on invalid pages
282+ run : |
283+ result=$(wget --server-response --quiet http://127.0.0.1:4000/404 2>&1 | head -1 | awk '{print $2}')
284+ echo "$result"
285+ result2=$(wget --server-response --quiet http://127.0.0.1:4000/invalidurl 2>&1 | head -1 | awk '{print $2}')
286+ echo "$result2"
287+ [[ "$result" -eq "404" && "$result2" -eq "404" ]]
288+
289+ # Verify 500 error code behavior
290+ - name : Verify 500 error code from '/500'
291+ run : |
292+ result=$(wget --server-response --quiet http://127.0.0.1:4000/500 2>&1 | head -1 | awk '{print $2}')
293+ echo "$result"
294+ [[ "$result" -eq "500" ]]
295+
265296 - name : Stop running app
266297 run : kill -9 $(lsof -t -i:4000)
267298
You can’t perform that action at this time.
0 commit comments