Skip to content

Commit faaf5da

Browse files
authored
Add smoke test script for ENS verification
1 parent d3bbcea commit faaf5da

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

scripts/smoke-ens.sh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/usr/bin/env bash
2+
set -euo pipefail
3+
4+
BASE="${RUNTIME_BASE:-https://runtime.commandlayer.org}"
5+
6+
curl -sS -X POST "$BASE/describe/v1.0.0" \
7+
-H "content-type: application/json" \
8+
--data-binary '{"input":{"subject":"hello"}}' > /tmp/receipt.json
9+
10+
curl -sS -X POST "$BASE/verify?ens=1&strict_kid=1" \
11+
-H "content-type: application/json" \
12+
--data-binary @/tmp/receipt.json | jq -e '.ok == true' >/dev/null
13+
14+
echo "OK: ENS strict verify passed for $BASE"

0 commit comments

Comments
 (0)