mirror of
https://github.com/emqx/neuron.git
synced 2026-10-18 21:50:42 +08:00
delete api related to log file (deprecated)
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user