Documentation
¶
Overview ¶
Package stdimagortestfx provides the stdimagorfx client for tests, on an Imagor server of the fx app's own, so they need no Docker Compose or other prior setup. Only test code should import this package: it pulls in testcontainers-go and the Docker client.
Index ¶
Constants ¶
const Secret = "stdimagortest-secret" //nolint:gosec // signs test requests only
Secret signs the tests' requests to Imagor; not a secret.
Variables ¶
This section is empty.
Functions ¶
func Provide ¶
Provide works like stdimagorfx.Provide, but connects to an Imagor server that is started from image for the fx app, and stopped when tb ends, instead of the one in STDIMAGOR_URL. The server writes its results to the app's bucket with alias bucket, under prefix, on the S3 server that stds3testfx started from s3Image, which it reaches on stdtestcontainer.Network. It loads sources only from that server, as stds3fx's client pre-signs them for services.
Each app gets its own server, since Imagor writes to one bucket, and each app has buckets of its own. It needs stds3testfx's client.
Types ¶
This section is empty.