diff --git a/plugins/restful/handle.c b/plugins/restful/handle.c index d021db11..d81bf507 100644 --- a/plugins/restful/handle.c +++ b/plugins/restful/handle.c @@ -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, diff --git a/tests/ft/log/test_log.py b/tests/ft/log/test_log.py index 3311667b..5f7ae816 100644 --- a/tests/ft/log/test_log.py +++ b/tests/ft/log/test_log.py @@ -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 + \ No newline at end of file