Skip to content

Commit ed8a000

Browse files
committed
fixed test
1 parent 0232617 commit ed8a000

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

services/clusters-keeper/src/simcore_service_clusters_keeper/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ class PrimaryEC2InstancesSettings(BaseCustomSettings):
253253
] = "172.20.0.0/14" # nosec
254254

255255
PRIMARY_EC2_INSTANCES_RABBIT_SETTINGS: Annotated[
256-
RabbitSettings,
256+
RabbitSettings | None,
257257
Field(
258258
description="defines the Rabbit settings for the primary instance (may be disabled)",
259259
json_schema_extra={"auto_default_from_env": True},

services/clusters-keeper/tests/unit/conftest.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,7 @@ def disable_clusters_management_background_task(
224224
@pytest.fixture
225225
def disabled_rabbitmq(app_environment: EnvVarsDict, monkeypatch: pytest.MonkeyPatch):
226226
monkeypatch.setenv("CLUSTERS_KEEPER_RABBITMQ", "null")
227+
monkeypatch.delenv("RABBIT_HOST", raising=False)
227228

228229

229230
@pytest.fixture
@@ -331,7 +332,7 @@ async def _do(num: int) -> list[str]:
331332
"Tags": [
332333
{
333334
"Key": "Name",
334-
"Value": f"{get_cluster_name(app_settings,user_id=user_id,wallet_id=wallet_id,is_manager=False)}_blahblah",
335+
"Value": f"{get_cluster_name(app_settings, user_id=user_id, wallet_id=wallet_id, is_manager=False)}_blahblah",
335336
}
336337
],
337338
}

0 commit comments

Comments
 (0)