74일차 정답 공개 (LAB-A · VIBE-A · answers · tver), Lab 03 예제 3 이해하기 보강
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
2ae33432a9
commit
d663d045e3
86 files changed
+16144
No files matched your search
@@ -0,0 +1,17 @@
|
||||
#!/usr/bin/env bash
|
||||
# Quick check of the day 74 data API (instructor, before class): releases, policy, gates, prompt fault switch.
|
||||
set -u
|
||||
B=localhost:8800
|
||||
show() { echo "\$ $1"; shift; "$@"; echo; }
|
||||
show "GET /releases/helpdesk" curl -s $B/releases/helpdesk
|
||||
show "policy on" curl -s -XPOST $B/releases/helpdesk/policy -d '{"require_gate":true}'
|
||||
show "deploy 1.1.0 without a gate record (409)" curl -s -XPOST $B/releases/helpdesk -d '{"active":"1.1.0"}'
|
||||
show "gate record 1.1.0 promote" curl -s -XPOST $B/gates/helpdesk -d '{"release":"1.1.0","verdict":"promote","passed":6,"total":6,"source":"check"}'
|
||||
show "deploy 1.1.0 again (200)" curl -s -XPOST $B/releases/helpdesk -d '{"active":"1.1.0"}'
|
||||
show "fault prompts error" curl -s -XPOST $B/admin/fault -d '{"prompts":"error"}'
|
||||
show "GET /prompts/helpdesk/p1 (500)" curl -s $B/prompts/helpdesk/p1
|
||||
show "fault prompts ok" curl -s -XPOST $B/admin/fault -d '{"prompts":"ok"}'
|
||||
show "GET /prompts/helpdesk/p9 (404)" curl -s $B/prompts/helpdesk/p9
|
||||
show "reset" curl -s -XPOST $B/releases/helpdesk/reset
|
||||
show "gates clear" curl -s -XPOST $B/gates/helpdesk/clear
|
||||
show "GET /audit (day 73 endpoint still there)" curl -s $B/audit
|
||||
Reference in new issue
Block a user