Skip to content

Commit d74ec90

Browse files
author
Andrei Neagu
committed
fixed dynamic-scheduler tests
1 parent 7839b52 commit d74ec90

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

services/dynamic-scheduler/tests/unit/service_tracker/test__api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,8 +208,8 @@ def _get_dynamic_service_get_from(
208208
service_state: ServiceState,
209209
) -> DynamicServiceGet:
210210
dict_data = DynamicServiceGet.model_config["json_schema_extra"]["examples"][1]
211-
assert "state" in dict_data
212-
dict_data["state"] = service_state
211+
assert "service_state" in dict_data
212+
dict_data["service_state"] = service_state
213213
return TypeAdapter(DynamicServiceGet).validate_python(dict_data)
214214

215215

services/dynamic-scheduler/tests/unit/status_monitor/test_services_status_monitor__monitor.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,8 @@ def _get_dynamic_service_get_legacy_with(
9999
_add_to_dict(
100100
dict_data,
101101
[
102-
("state", state),
103-
("uuid", f"{node_id}"),
104-
("node_uuid", f"{node_id}"),
102+
("service_state", state),
103+
("service_uuid", f"{node_id}"),
105104
],
106105
)
107106
return TypeAdapter(DynamicServiceGet).validate_python(dict_data)
@@ -116,9 +115,8 @@ def _get_dynamic_service_get_new_style_with(
116115
_add_to_dict(
117116
dict_data,
118117
[
119-
("state", state),
120-
("uuid", f"{node_id}"),
121-
("node_uuid", f"{node_id}"),
118+
("service_state", state),
119+
("service_uuid", f"{node_id}"),
122120
],
123121
)
124122
return TypeAdapter(DynamicServiceGet).validate_python(dict_data)

0 commit comments

Comments
 (0)