From 59fe33e0bab87af484dcfa1236ee2c65d6978b3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yuan-Ting=20Hsieh=20=28=E8=AC=9D=E6=B2=85=E5=BB=B7=29?= Date: Wed, 27 Nov 2024 15:08:23 -0800 Subject: [PATCH] Fix auth ls command response (#3075) * Fix auth ls command response * Remove error.log --- nvflare/lighter/impl/master_template.yml | 2 +- .../data/test_configs/authorization/shell_commands.yml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/nvflare/lighter/impl/master_template.yml b/nvflare/lighter/impl/master_template.yml index 7b1e51af88..44f5b5d42d 100644 --- a/nvflare/lighter/impl/master_template.yml +++ b/nvflare/lighter/impl/master_template.yml @@ -326,7 +326,7 @@ log_config: | class=FileHandler level=ERROR formatter=fullFormatter - args=('error.log', 'a') + args=('error_log.txt', 'a') [formatter_fullFormatter] format=%(asctime)s - %(name)s - %(levelname)s - %(message)s diff --git a/tests/integration_test/data/test_configs/authorization/shell_commands.yml b/tests/integration_test/data/test_configs/authorization/shell_commands.yml index c2de5c619c..b2abbd6410 100644 --- a/tests/integration_test/data/test_configs/authorization/shell_commands.yml +++ b/tests/integration_test/data/test_configs/authorization/shell_commands.yml @@ -14,7 +14,7 @@ tests: "admin_user_name": "admin@a.org" "result": "type": "admin_api_response" - "data": "audit.log daemon_pid.fl local log.txt pid.fl readme.txt startup transfer" + "data": "audit.log daemon_pid.fl error_log.txt local log.txt pid.fl readme.txt startup transfer" - "trigger": "type": "server_log" "data": "Server started" @@ -29,7 +29,7 @@ tests: "actions": [ "shell_commands ls site-1" ] "result": "type": "admin_api_response" - "data": "audit.log daemon_pid.fl local log.txt pid.fl readme.txt startup transfer" + "data": "audit.log daemon_pid.fl error_log.txt local log.txt pid.fl readme.txt startup transfer" - "trigger": "type": "server_log" "data": "Server started"