miniature-apartment-8295
07/25/2024, 3:16 PMextra_env_vars
for tests running in a docker_environment. First a quick description of my setup. The test ist located in \path\to\test
and has a BUILD file:
python_tests(
name="tests",
dependencies=[
"some/dependency.py"
],
extra_env_vars=env_vars_test(),
environment="qgis_docker",
xdist_concurrency=0,
)
The env_vars_test
are defined in the macros.py
, i.e.:
def env_vars_test_django(**kwargs): # noqa: ANN201, D103, ARG001
envs = [
'TILES_BUCKET=tiles-bucket',
'TILES_URL=tiles.nefino.local',
'SHAPEFILES_BUCKET=shapefiles-bucket',
'PEL_PDF_EXPORTS_BUCKET=pel-bucket',
'GLOBALWINDATLAS_BUCKET=globalwindatlas-bucket',
'GLOBALWINDATLAS_V3_BUCKET=globalwindatlas-v3-bucket',
'EARTHDATA_BUCKET_TRANSFORMED=earthdata-transformed-bucket',
'EARTHDATA_BUCKET_ORIG=earthdata-bucket',
...
]
return envs
In the BUILD file in \path
I am defining an environment
...
docker_environment(
name="local_qgis",
platform="linux_x86_64",
image="qgis/qgis:3.34.7-bookworm",
)
...
Whicht gets the name in the pants.toml
Now when I run the test I have the problem that not all Environment variables are set but it gets cut off at some variable, in my case it was a URL which was set as `SOME_URL=https" and all the rest and most other variables are missing. @wide-midnight-78598 do you maybe have an idea what happened?wide-midnight-78598
07/25/2024, 3:31 PMpants peek THE_TARGET_NAME give?
wide-midnight-78598
07/25/2024, 3:33 PMminiature-apartment-8295
07/25/2024, 4:14 PMwide-midnight-78598
07/25/2024, 4:23 PMminiature-apartment-8295
07/26/2024, 7:29 AMminiature-apartment-8295
07/26/2024, 7:30 AMminiature-apartment-8295
07/26/2024, 7:30 AMwide-midnight-78598
07/26/2024, 12:12 PMcurved-television-6568
07/26/2024, 3:19 PMhappy-kitchen-89482
07/26/2024, 4:55 PMwide-midnight-78598
07/26/2024, 9:45 PMwide-midnight-78598
07/31/2024, 2:18 PM