Skip to content

Commit c3fd2de

Browse files
author
Andrei Neagu
committed
unify naming
1 parent f8ed436 commit c3fd2de

File tree

7 files changed

+9
-9
lines changed

7 files changed

+9
-9
lines changed

packages/settings-library/src/settings_library/director_v0.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66

77

88
class DirectorV0Settings(BaseCustomSettings):
9-
DIRECTOR_V0_ENABLED: bool = True
9+
DIRECTOR_ENABLED: bool = True
1010

1111
DIRECTOR_HOST: str = "director"
1212
DIRECTOR_PORT: PortInt = TypeAdapter(PortInt).validate_python(8000)
13-
DIRECTOR_V0_VTAG: VersionTag = Field(
13+
DIRECTOR_VTAG: VersionTag = Field(
1414
default="v0", description="Director-v0 service API's version tag"
1515
)
1616

@@ -20,6 +20,6 @@ def endpoint(self) -> str:
2020
scheme="http",
2121
host=self.DIRECTOR_HOST,
2222
port=self.DIRECTOR_PORT,
23-
path=f"{self.DIRECTOR_V0_VTAG}",
23+
path=f"{self.DIRECTOR_VTAG}",
2424
)
2525
return f"{url}"

services/director-v2/src/simcore_service_director_v2/core/application.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ def init_app(settings: AppSettings | None = None) -> FastAPI:
147147
if settings.DIRECTOR_V2_TRACING:
148148
setup_tracing(app, settings.DIRECTOR_V2_TRACING, APP_NAME)
149149

150-
if settings.DIRECTOR_V0.DIRECTOR_V0_ENABLED:
150+
if settings.DIRECTOR_V0.DIRECTOR_ENABLED:
151151
director_v0.setup(
152152
app,
153153
director_v0_settings=settings.DIRECTOR_V0,

services/director-v2/tests/unit/test_modules_catalog.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def minimal_catalog_config(
2323
"""set a minimal configuration for testing the director connection only"""
2424
monkeypatch.setenv("DIRECTOR_ENABLED", "0")
2525
monkeypatch.setenv("DIRECTOR_V2_DYNAMIC_SCHEDULER_ENABLED", "false")
26-
monkeypatch.setenv("DIRECTOR_V0_ENABLED", "0")
26+
monkeypatch.setenv("DIRECTOR_ENABLED", "0")
2727
monkeypatch.setenv("COMPUTATIONAL_BACKEND_DASK_CLIENT_ENABLED", "0")
2828
monkeypatch.setenv("COMPUTATIONAL_BACKEND_ENABLED", "0")
2929

services/director-v2/tests/unit/test_modules_dask_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ def _minimal_dask_config(
131131
"""set a minimal configuration for testing the dask connection only"""
132132
monkeypatch.setenv("DIRECTOR_ENABLED", "0")
133133
monkeypatch.setenv("DIRECTOR_V2_DYNAMIC_SIDECAR_ENABLED", "false")
134-
monkeypatch.setenv("DIRECTOR_V0_ENABLED", "0")
134+
monkeypatch.setenv("DIRECTOR_ENABLED", "0")
135135
monkeypatch.setenv("DIRECTOR_V2_CATALOG", "null")
136136
monkeypatch.setenv("COMPUTATIONAL_BACKEND_DASK_CLIENT_ENABLED", "1")
137137
monkeypatch.setenv("COMPUTATIONAL_BACKEND_ENABLED", "0")

services/director-v2/tests/unit/test_modules_dask_clients_pool.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def minimal_dask_config(
4343
"""set a minimal configuration for testing the dask connection only"""
4444
monkeypatch.setenv("DIRECTOR_ENABLED", "0")
4545
monkeypatch.setenv("DIRECTOR_V2_DYNAMIC_SIDECAR_ENABLED", "false")
46-
monkeypatch.setenv("DIRECTOR_V0_ENABLED", "0")
46+
monkeypatch.setenv("DIRECTOR_ENABLED", "0")
4747
monkeypatch.setenv("DIRECTOR_V2_CATALOG", "null")
4848
monkeypatch.setenv("COMPUTATIONAL_BACKEND_DASK_CLIENT_ENABLED", "1")
4949
monkeypatch.setenv("COMPUTATIONAL_BACKEND_ENABLED", "0")

services/director-v2/tests/unit/test_modules_notifier.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def mock_env(
6565
"S3_SECRET_KEY": faker.pystr(),
6666
"S3_BUCKET_NAME": faker.pystr(),
6767
"DIRECTOR_ENABLED": "0",
68-
"DIRECTOR_V0_ENABLED": "0",
68+
"DIRECTOR_ENABLED": "0",
6969
"DIRECTOR_V2_CATALOG": "null",
7070
"COMPUTATIONAL_BACKEND_DASK_CLIENT_ENABLED": "0",
7171
"COMPUTATIONAL_BACKEND_ENABLED": "0",

services/director-v2/tests/unit/test_modules_storage.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def minimal_storage_config(
1717
"""set a minimal configuration for testing the director connection only"""
1818
monkeypatch.setenv("DIRECTOR_ENABLED", "0")
1919
monkeypatch.setenv("DIRECTOR_V2_DYNAMIC_SCHEDULER_ENABLED", "false")
20-
monkeypatch.setenv("DIRECTOR_V0_ENABLED", "0")
20+
monkeypatch.setenv("DIRECTOR_ENABLED", "0")
2121
monkeypatch.setenv("DIRECTOR_V2_CATALOG", "null")
2222
monkeypatch.setenv("COMPUTATIONAL_BACKEND_DASK_CLIENT_ENABLED", "0")
2323
monkeypatch.setenv("COMPUTATIONAL_BACKEND_ENABLED", "0")

0 commit comments

Comments
 (0)