Enclavely Docs
Guides

Test API Smoke

Deploy the bundled test API and verify health, routing, and echo.

Use the bundled test workload at packages/enclave-template/test-api for repeatable smoke validation.

1) Start from the template directory

cd packages/enclave-template/test-api

2) Validate config

enclavely build --config enclavely.yaml

3) Deploy a release

enclavely deploy \
  --project <project> \
  --env <env> \
  --image-digest sha256:<image-digest> \
  --eif-digest sha256:<eif-digest> \
  --wait

4) Check routing

enclavely routing --project <project> --env <env>

Confirm the route has:

  • target with http1-vsock and cid/port
  • latest in healthy status

5) Validate endpoint behavior

curl -sS https://<project>.<tenant>.<env>.<base-domain>/healthz
curl -sS https://<project>.<tenant>.<env>.<base-domain>/readyz
curl -sS -X POST https://<project>.<tenant>.<env>.<base-domain>/echo \
  -H 'content-type: application/json' \
  -d '{"hello":"world"}'

On this page