Around remaining blockers (Zapier login, live Verae): generate PDF receipts without extra deps; AES-256-GCM object store with tenant isolation and share tokens; scripts/nats-tunnel.sh to NS1; SHA256 Hash Text local Zapier action; scripts/test-offline.sh for the no-login suite. Learned: other-tenant object GET is 403; share token is the mock unwrap path.
21 lines
602 B
Bash
Executable file
21 lines
602 B
Bash
Executable file
#!/usr/bin/env bash
|
|
# Tests that do not need Zapier login or live api.veraetime.net.
|
|
set -euo pipefail
|
|
ROOT="$(cd "$(dirname "$0")/.." && pwd)"
|
|
cd "$ROOT"
|
|
export MOCK_VERAE=true
|
|
npm run gate:0
|
|
npm run gate:1
|
|
npm run gate:2
|
|
npm run gate:3
|
|
npm run gate:4
|
|
npm run gate:5
|
|
npm run gate:6
|
|
npm run gate:10
|
|
npm run gate:11
|
|
npm --prefix packages/verae-zapier-middleware run test:hash
|
|
node --test packages/verae-zapier-middleware/test/integration/receipt.test.js
|
|
node --test packages/verae-zapier-middleware/test/integration/objects.test.js
|
|
npm run test:activate
|
|
npm run test:zappier
|
|
echo "OFFLINE SUITE PASSED"
|