Sign and ingest your test results
Run this after your test suite finishes. It signs the payload with HMAC-SHA256 before sending.
PAYLOAD=$(cat reports/junit-results.xml)
SIGNATURE="sha256=$(echo -n "$PAYLOAD" | openssl dgst -sha256 -hmac "$VERIFAI_SECRET" | sed 's/^.* //')"
curl -X POST https://alloyqa.com/api/results/ingest \
-H "Content-Type: application/xml" \
-H "x-ci-run-id: $CI_RUN_ID" \
-H "x-ticket-id: $TICKET_ID" \
-H "x-verifai-user-id: $VERIFAI_USER_ID" \
-H "x-verifai-signature: $SIGNATURE" \
-d "$PAYLOAD"
RecommendedWorks with Playwright, Jest, pytest, Maven Surefire, and any JUnit-compatible runner.