Used in FLAT tests to change the environment of the FLAT app under test.
Normally, env vars are set on server start-up and are immutable later on. They are available in the pre-defined variable $env.
$env
The action allows to override variables in the $env structure for testing purposes.
<set-env> { "VAR_NAME": "VALUE", "BUILD_TIME": {{ unixtime() - 3600 }} } </set-env>
The action argument is a JSON Object. The property values should be of type string.
As env vars from the system (shell or docker) can only be strings, numeric or boolean values are cast to their string representation.
docker
If the value is null, the env var is unset.
null
The action argument may be a JSON template.
$env (reference)
Using Env Vars (cookbook)
Testing (reference)
Last updated 6 years ago