Skip to content

Device Variables ​

The Test Runner requires the following variables to be configured on the balena fleet, applied to All services. For instructions on adding them to your fleet, see Deploying to a Device.

Test Runner Variables ​

VariableDescriptionValue
BACKEND_API_URLInternal URL the services use to reach the Test Runner backend API.https://backend:8888
BACKEND_CORS_ORIGINSJSON array of origins allowed to make cross-origin (CORS) requests to the backend.["http://localhost", "http://localhost:8080"]
CELERY_BROKER_URLMessage broker (RabbitMQ) URL Celery uses to queue and dispatch test tasks.amqp://guest:guest@queue:5672/
FIRST_OPERATORUsername for the default operator account created on first startup.<operator-username>
FIRST_OPERATOR_PASSWORDPassword for the default operator account.<operator-password>
FIRST_SUPERUSERUsername for the default admin (superuser) account created on first startup.<admin-username>
FIRST_SUPERUSER_PASSWORDPassword for the default admin (superuser) account.<admin-password>
POSTGRES_DBName of the PostgreSQL database used by the Test Runner.app
POSTGRES_PASSWORDPassword for the PostgreSQL user.<db-password>
POSTGRES_SERVERHostname of the PostgreSQL service container.db
POSTGRES_USERUsername for the PostgreSQL database.postgres
PROJECT_NAMEDisplay name shown for this Test Runner deployment.<project-name>
PYTEST_API_URLInternal URL of the pytest-f3ts-api service.http://pytest-f3ts-api:8886
REFRESH_PLANSReload test plans from TEST_PLAN_DIR on startup (1 = enabled, 0 = disabled).1
SECRET_KEYSecret key used to sign authentication tokens and other cryptographic operations.<your-secret-key>
SENTRY_DSNSentry DSN for error reporting; leave empty to disable.(empty)
START_SSHDStart the SSH daemon for remote access to the device (1 = enabled).1
TEST_PLAN_DIRFilesystem path where test plans are stored on the device./data/test_plans
WEB_CONCURRENCYNumber of web server worker processes to run.1

Values shown as <placeholders> must be replaced with your own. In particular, set unique secrets for SECRET_KEY, FIRST_SUPERUSER_PASSWORD, FIRST_OPERATOR_PASSWORD, and POSTGRES_PASSWORD rather than reusing values across fleets.