File tree Expand file tree Collapse file tree 2 files changed +14
-2
lines changed
Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -268,7 +268,7 @@ jobs:
268268 start_ts=$(date +%s)
269269 until [ x$(curl \
270270 --silent --output /dev/null \
271- -w '%{http_code}\n' --fail 'http://localhost:8080/') = x200 ]
271+ -w '%{http_code}\n' --fail 'http://localhost:8080/_health ') = x200 ]
272272 do
273273 sleep 1
274274 if [ "$(expr "${start_ts}" \+ 30)" -lt "$(date +%s)" ]; then
@@ -278,7 +278,7 @@ jobs:
278278 done
279279
280280 rc=0
281- printf '## Test (%s)\n\n' $platform | tee -a "$GITHUB_STEP_SUMMARY"
281+ printf '## Test (%s)\n\n' "$(curl 'http://localhost:8080/_arch')" | tee -a "$GITHUB_STEP_SUMMARY"
282282 (run_test "$test_command" | tee -a "$GITHUB_STEP_SUMMARY") || rc=$?
283283 if [ $rc -ne 0 ]; then
284284 exit $rc
Original file line number Diff line number Diff line change 1+ import platform
2+
13from flask import Flask
24
35app = Flask (__name__ )
68@app .route ("/" )
79def hello_world () -> str :
810 return "<p>Hello, World!</p>"
11+
12+
13+ @app .route ("/_health" )
14+ def check_health () -> str :
15+ return "ok"
16+
17+
18+ @app .route ("/_arch" )
19+ def show_config () -> str :
20+ return platform .uname ().machine
You can’t perform that action at this time.
0 commit comments