Skip to content

Commit

Permalink
fix director-v2 unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sanderegg committed Dec 2, 2022
1 parent b162719 commit f4f1f63
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions services/director-v2/.env-devel
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ POSTGRES_DB=test
POSTGRES_HOST=localhost
POSTGRES_PORT=5432

RABBIT_HOST=rabbit
RABBIT_USER=admin
RABBIT_PASSWORD=adminadmin

Expand Down
3 changes: 3 additions & 0 deletions services/director-v2/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,9 @@ def mock_env(
"COMPUTATIONAL_BACKEND_DASK_CLIENT_ENABLED": "false",
"COMPUTATIONAL_BACKEND_ENABLED": "false",
"DIRECTOR_V2_DYNAMIC_SCHEDULER_ENABLED": "false",
"RABBIT_HOST": "mocked_host",
"RABBIT_USER": "mocked_user",
"RABBIT_PASSWORD": "mocked_password",
"REGISTRY_AUTH": "false",
"REGISTRY_USER": "test",
"REGISTRY_PW": "test",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,10 @@ def mock_env(monkeypatch: MonkeyPatch) -> None:
monkeypatch.setenv("DIRECTOR_V2_DYNAMIC_SCHEDULER_ENABLED", "true")
monkeypatch.setenv("DIRECTOR_V2_TRACING", "null")

monkeypatch.setenv("RABBIT_HOST", "mocked_host")
monkeypatch.setenv("RABBIT_USER", "mocked_user")
monkeypatch.setenv("RABBIT_PASSWORD", "mocked_password")

monkeypatch.setenv("REGISTRY_AUTH", "false")
monkeypatch.setenv("REGISTRY_USER", "test")
monkeypatch.setenv("REGISTRY_PW", "test")
Expand Down

0 comments on commit f4f1f63

Please sign in to comment.