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 @@ -268,6 +268,37 @@ jobs:
268268 echo "$result"
269269 echo "$result" | grep -oE "<meta name=\"title\" [^>]*>" | grep "Environmental & Architectural Phenomenology Vol. 28, No. 1"
270270
271+ # Verify 301 Handle redirect behavior
272+ # Note: /handle/123456789/260 is the same test Publication used by our e2e tests
273+ - name : Verify 301 redirect from '/handle' URLs
274+ run : |
275+ result=$(wget --server-response --quiet http://127.0.0.1:4000/handle/123456789/260 2>&1 | head -1 | awk '{print $2}')
276+ echo "$result"
277+ [[ "$result" -eq "301" ]]
278+
279+ # Verify 403 error code behavior
280+ - name : Verify 403 error code from '/403'
281+ run : |
282+ result=$(wget --server-response --quiet http://127.0.0.1:4000/403 2>&1 | head -1 | awk '{print $2}')
283+ echo "$result"
284+ [[ "$result" -eq "403" ]]
285+
286+ # Verify 404 error code behavior
287+ - name : Verify 404 error code from '/404' and on invalid pages
288+ run : |
289+ result=$(wget --server-response --quiet http://127.0.0.1:4000/404 2>&1 | head -1 | awk '{print $2}')
290+ echo "$result"
291+ result2=$(wget --server-response --quiet http://127.0.0.1:4000/invalidurl 2>&1 | head -1 | awk '{print $2}')
292+ echo "$result2"
293+ [[ "$result" -eq "404" && "$result2" -eq "404" ]]
294+
295+ # Verify 500 error code behavior
296+ - name : Verify 500 error code from '/500'
297+ run : |
298+ result=$(wget --server-response --quiet http://127.0.0.1:4000/500 2>&1 | head -1 | awk '{print $2}')
299+ echo "$result"
300+ [[ "$result" -eq "500" ]]
301+
271302 - name : Stop running app
272303 run : kill -9 $(lsof -t -i:4000)
273304
You can’t perform that action at this time.
0 commit comments