apiVersion: batch/v1 kind: Job metadata: name: postsync-smoke-test namespace: polymarket-bot annotations: argocd.argoproj.io/hook: PostSync argocd.argoproj.io/hook-delete-policy: HookSucceeded spec: ttlSecondsAfterFinished: 600 backoffLimit: 0 template: spec: restartPolicy: Never containers: - name: smoke-test image: curlimages/curl:latest command: ["/bin/sh", "-c"] args: - | set -e API="http://api.polymarket-bot.svc.cluster.local:8000" DASH="http://dashboard.polymarket-bot.svc.cluster.local:80" echo "--- [1/3] GET /api/summary ---" SUMMARY=$(curl -sf --max-time 15 --retry 3 --retry-delay 5 --retry-all-errors \ "$API/api/summary") echo "$SUMMARY" echo "$SUMMARY" | grep -qF '"paper_mode": true' \ || { echo "FAIL: paper_mode is not true"; exit 1; } echo "OK" echo "--- [2/3] GET /api/trades?status=open ---" curl -sf --max-time 15 --retry 3 --retry-delay 5 --retry-all-errors \ "$API/api/trades?status=open" > /dev/null echo "OK" echo "--- [3/3] Dashboard HTTP 200 ---" curl -sf --max-time 15 --retry 3 --retry-delay 5 --retry-all-errors \ "$DASH/" > /dev/null echo "OK" echo "=== polymarket-bot: all smoke tests passed ==="