mirror of
https://github.com/OpenRouterTeam/spawn.git
synced 2026-05-22 03:14:57 +00:00
debug: Test alternate URL path formats
This commit is contained in:
parent
4c35f1db78
commit
4f78b9b172
1 changed files with 17 additions and 7 deletions
24
.github/workflows/improve.yml
vendored
24
.github/workflows/improve.yml
vendored
|
|
@ -17,12 +17,22 @@ jobs:
|
|||
env:
|
||||
SPRITE_TOKEN: ${{ secrets.SPRITE_TOKEN }}
|
||||
run: |
|
||||
# Debug: try both API and direct sprite URL
|
||||
echo "--- Test 1: start service API ---"
|
||||
curl -sv -X POST -H "Authorization: Bearer ${SPRITE_TOKEN}" \
|
||||
"https://api.sprites.dev/v1/sprites/lab-spawn-discovery/services/improve_trigger/start" 2>&1 | tail -5
|
||||
# Debug: test different URL path formats
|
||||
echo "--- Test A: /services/{name}/start ---"
|
||||
curl -s -X POST -H "Authorization: Bearer ${SPRITE_TOKEN}" \
|
||||
"https://api.sprites.dev/v1/sprites/lab-spawn-discovery/services/improve_trigger/start" 2>&1
|
||||
echo ""
|
||||
echo "--- Test 2: direct sprite URL ---"
|
||||
curl -sv -X POST \
|
||||
"https://lab-spawn-discovery-lg6f.sprites.app/trigger?reason=workflow_dispatch" 2>&1 | tail -5
|
||||
echo "--- Test B: /services/start/{name} ---"
|
||||
curl -s -X POST -H "Authorization: Bearer ${SPRITE_TOKEN}" \
|
||||
"https://api.sprites.dev/v1/sprites/lab-spawn-discovery/services/start/improve_trigger" 2>&1
|
||||
echo ""
|
||||
echo "--- Test C: /services:start with body ---"
|
||||
curl -s -X POST -H "Authorization: Bearer ${SPRITE_TOKEN}" \
|
||||
-H "Content-Type: application/json" \
|
||||
-d '{"service_name":"improve_trigger"}' \
|
||||
"https://api.sprites.dev/v1/sprites/lab-spawn-discovery/services:start" 2>&1
|
||||
echo ""
|
||||
echo "--- Test D: sprite-env from inside ---"
|
||||
curl -s --unix-socket /.sprite/sprite-env.sock -X POST \
|
||||
"http://localhost/services/improve_trigger/start" 2>&1
|
||||
echo ""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue