Skip to content

Commit

Permalink
🐛 Minor fix: adding log_format_local_dev_enabled env-var to the …
Browse files Browse the repository at this point in the history
…dynamic sidecar (#4173)
  • Loading branch information
matusdrobuliak66 authored May 4, 2023
1 parent 0b69cfb commit 7a7c601
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ def _get_environment_variables(
"DY_SIDECAR_USER_ID": f"{scheduler_data.user_id}",
"DYNAMIC_SIDECAR_COMPOSE_NAMESPACE": compose_namespace,
"DYNAMIC_SIDECAR_LOG_LEVEL": app_settings.DYNAMIC_SERVICES.DYNAMIC_SIDECAR.DYNAMIC_SIDECAR_LOG_LEVEL,
"DIRECTOR_V2_LOG_FORMAT_LOCAL_DEV_ENABLED": f"{app_settings.DIRECTOR_V2_LOG_FORMAT_LOCAL_DEV_ENABLED}",
"POSTGRES_DB": f"{app_settings.POSTGRES.POSTGRES_DB}",
"POSTGRES_ENDPOINT": f"{app_settings.POSTGRES.POSTGRES_HOST}:{app_settings.POSTGRES.POSTGRES_PORT}",
"POSTGRES_HOST": f"{app_settings.POSTGRES.POSTGRES_HOST}",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"DY_SIDECAR_USER_SERVICES_HAVE_INTERNET_ACCESS",
"DYNAMIC_SIDECAR_COMPOSE_NAMESPACE",
"DYNAMIC_SIDECAR_LOG_LEVEL",
"DIRECTOR_V2_LOG_FORMAT_LOCAL_DEV_ENABLED",
"POSTGRES_DB",
"POSTGRES_ENDPOINT",
"POSTGRES_HOST",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ def expected_dynamic_sidecar_spec(
"DY_SIDECAR_USER_SERVICES_HAVE_INTERNET_ACCESS": "False",
"FORWARD_ENV_DISPLAY": ":0",
"DYNAMIC_SIDECAR_LOG_LEVEL": "DEBUG",
"DIRECTOR_V2_LOG_FORMAT_LOCAL_DEV_ENABLED": "False",
"POSTGRES_DB": "test",
"POSTGRES_HOST": "localhost",
"POSTGRES_PORT": "5432",
Expand Down Expand Up @@ -420,6 +421,7 @@ def test_get_dynamic_proxy_spec(
# TODO: finish test when working on https://github.com/ITISFoundation/osparc-simcore/issues/2454


@pytest.mark.testit
async def test_merge_dynamic_sidecar_specs_with_user_specific_specs(
mocked_catalog_service_api: respx.MockRouter,
minimal_app: FastAPI,
Expand Down

0 comments on commit 7a7c601

Please sign in to comment.