Documentation
¶
Overview ¶
Package oolongtest starts an oolong TEA server (github.com/oolong-project/oolong, oolong/oolong-server) for integration tests.
Start uses, in order:
- OOLONG_BASE_URL: a running server (for example http://127.0.0.1:3005 from oolong/docker-compose.tea-interop.yml).
- OOLONG_SERVER_DIR: an oolong/oolong-server directory where `npm ci` and `npm run build` have run. The fixtures next to it (../fixtures/tea-1.0.0) are copied into a temporary directory the test owns, and `node dist/main.js` is started on a free port of 127.0.0.1 (node from PATH, or OOLONG_NODE).
With neither set the test is skipped, unless TEA_INTEGRATION_REQUIRED=1, in which case it fails.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// URL is the server's origin, e.g. http://127.0.0.1:41234. It is the
// API root (SERVER_HOST) and the base of /.well-known/tea.
URL string
}
Server is a running oolong server.