Skip to content

Commit 03efe23

Browse files
authored
Update L0_logging to reflect error when trying to update log_file (#7112) (#7114)
1 parent a7ce16a commit 03efe23

File tree

1 file changed

+7
-20
lines changed

1 file changed

+7
-20
lines changed

qa/L0_logging/logging_endpoint_test.py

Lines changed: 7 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -227,34 +227,21 @@ def test_grpc_update_settings(self):
227227
triton_client = grpcclient.InferenceServerClient("localhost:8001")
228228

229229
log_settings_1 = {
230+
"log_file": "log_file.log",
230231
"log_info": True,
231232
"log_warning": True,
232233
"log_error": True,
233234
"log_verbose_level": 0,
234235
"log_format": "default",
235236
}
236-
expected_log_settings_1 = grpcclient.service_pb2.LogSettingsResponse()
237-
json_format.Parse(
238-
json.dumps(
239-
{
240-
"settings": {
241-
"log_file": {"stringParam": ""},
242-
"log_info": {"boolParam": True},
243-
"log_warning": {"boolParam": True},
244-
"log_error": {"boolParam": True},
245-
"log_verbose_level": {"uint32Param": 0},
246-
"log_format": {"stringParam": "default"},
247-
}
248-
}
249-
),
250-
expected_log_settings_1,
237+
expected_log_settings_1 = (
238+
"log file location can not be updated through network protocol"
251239
)
252240

253-
self.assertEqual(
254-
expected_log_settings_1,
255-
triton_client.update_log_settings(settings=log_settings_1),
256-
"Unexpected updated log settings",
257-
)
241+
with self.assertRaisesRegex(
242+
InferenceServerException, expected_log_settings_1
243+
) as e:
244+
triton_client.update_log_settings(settings=log_settings_1)
258245

259246
log_settings_2 = {
260247
"log_info": False,

0 commit comments

Comments
 (0)