Skip to content

Commit a3c977c

Browse files
committed
fixed test
1 parent 9883b63 commit a3c977c

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
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
@@ -252,7 +252,7 @@ class PrimaryEC2InstancesSettings(BaseCustomSettings):
252252
),
253253
] = "172.20.0.0/14" # nosec
254254

255-
PRIMARY_EC2_INSTANCES_RABBIT_SETTINGS: Annotated[
255+
PRIMARY_EC2_INSTANCES_RABBIT: Annotated[
256256
RabbitSettings | None,
257257
Field(
258258
description="defines the Rabbit settings for the primary instance (may be disabled)",

services/clusters-keeper/src/simcore_service_clusters_keeper/utils/clusters.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ def _convert_to_env_dict(entries: dict[str, Any]) -> str:
106106
f"WORKERS_EC2_INSTANCES_SUBNET_ID={app_settings.CLUSTERS_KEEPER_WORKERS_EC2_INSTANCES.WORKERS_EC2_INSTANCES_SUBNET_ID}",
107107
f"WORKERS_EC2_INSTANCES_TIME_BEFORE_DRAINING={app_settings.CLUSTERS_KEEPER_WORKERS_EC2_INSTANCES.WORKERS_EC2_INSTANCES_TIME_BEFORE_DRAINING}",
108108
f"WORKERS_EC2_INSTANCES_TIME_BEFORE_TERMINATION={app_settings.CLUSTERS_KEEPER_WORKERS_EC2_INSTANCES.WORKERS_EC2_INSTANCES_TIME_BEFORE_TERMINATION}",
109-
f"AUTOSCALING_RABBITMQ={json_dumps(model_dump_with_secrets(app_settings.CLUSTERS_KEEPER_PRIMARY_EC2_INSTANCES.PRIMARY_EC2_INSTANCES_RABBIT_SETTINGS, show_secrets=True)) if app_settings.CLUSTERS_KEEPER_PRIMARY_EC2_INSTANCES.PRIMARY_EC2_INSTANCES_RABBIT_SETTINGS else 'null'}",
109+
f"AUTOSCALING_RABBITMQ={json_dumps(model_dump_with_secrets(app_settings.CLUSTERS_KEEPER_PRIMARY_EC2_INSTANCES.PRIMARY_EC2_INSTANCES_RABBIT, show_secrets=True)) if app_settings.CLUSTERS_KEEPER_PRIMARY_EC2_INSTANCES.PRIMARY_EC2_INSTANCES_RABBIT else 'null'}",
110110
]
111111

112112

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ def test_rabbitmq_settings_are_passed_with_pasword_clear(
238238
assert app_settings.CLUSTERS_KEEPER_PRIMARY_EC2_INSTANCES
239239
assert (
240240
rabbitmq_settings_fixture
241-
== app_settings.CLUSTERS_KEEPER_PRIMARY_EC2_INSTANCES.PRIMARY_EC2_INSTANCES_RABBIT_SETTINGS
241+
== app_settings.CLUSTERS_KEEPER_PRIMARY_EC2_INSTANCES.PRIMARY_EC2_INSTANCES_RABBIT
242242
)
243243

244244
additional_custom_tags = {

0 commit comments

Comments
 (0)