File tree Expand file tree Collapse file tree 2 files changed +6
-8
lines changed
services/dynamic-scheduler/tests/unit Expand file tree Collapse file tree 2 files changed +6
-8
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments