delete api related to log file (deprecated)

This commit is contained in:
fengzero
2026-05-22 07:16:40 +00:00
parent b345be612f
commit 99de5e9e3c
2 changed files with 1 additions and 30 deletions
-18
View File
@@ -122,12 +122,6 @@ static struct neu_http_handler cors_handler[] = {
{
.url = "/api/v2/log/level",
},
{
.url = "/api/v2/log/list",
},
{
.url = "/api/v2/log/file",
},
{
.url = "/api/v2/global/config",
},
@@ -495,18 +489,6 @@ static struct neu_http_handler rest_handlers[] = {
.url = "/api/v2/log/global",
.value.handler = handle_get_global_log_level,
},
{
.method = NEU_HTTP_METHOD_GET,
.type = NEU_HTTP_HANDLER_FUNCTION,
.url = "/api/v2/log/list",
.value.handler = handle_log_list,
},
{
.method = NEU_HTTP_METHOD_GET,
.type = NEU_HTTP_HANDLER_FUNCTION,
.url = "/api/v2/log/file",
.value.handler = handle_log_file,
},
{
.method = NEU_HTTP_METHOD_GET,
.type = NEU_HTTP_HANDLER_FUNCTION,
+1 -12
View File
@@ -126,15 +126,4 @@ class TestLog:
response = api.get_nodes_state(node='')
assert 200 == response.status_code
assert "notice" == response.json()['neuron_core']
@description(given="neuron started", when="get log list", then="success")
def test_get_log_list(self):
response = api.get_log_list()
assert 200 == response.status_code
print(response.json())
assert "neuron.log" in [item['file'] for item in response.json()["files"]]
@description(given="neuron started", when="get log file", then="success")
def test_get_log_file(self):
response = api.get_log_file(file_name='neuron.log')
assert 200 == response.status_code