summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2021-01-19 14:57:58 +0300
committerGitHub <[email protected]>2021-01-19 14:57:58 +0300
commit75ebbaac89ce8ebc3ab8de47b16e137844cfcd8a (patch)
treeff51fa5552b897db6e118f3da6771f248efaeaa6 /tests
parent8704e833dffd7d41614830b5347ba15fa9f297fd (diff)
parentd34f7defd974918d64c225a535a2d98f3f7294cf (diff)
Merge pull request #486 from spiral/refactor/better_http_debug_logs
refactor(http): Uniform debug message from the http hanlder
Diffstat (limited to 'tests')
-rw-r--r--tests/plugins/http/http_plugin_test.go2
-rw-r--r--tests/plugins/static/static_plugin_test.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/plugins/http/http_plugin_test.go b/tests/plugins/http/http_plugin_test.go
index 3aa0f57a..51bf7d0b 100644
--- a/tests/plugins/http/http_plugin_test.go
+++ b/tests/plugins/http/http_plugin_test.go
@@ -1027,7 +1027,7 @@ logs:
mockLogger.EXPECT().Info("worker destructed", "pid", gomock.Any()).MinTimes(1)
mockLogger.EXPECT().Info("worker constructed", "pid", gomock.Any()).MinTimes(1)
- mockLogger.EXPECT().Debug("http handler response received", "elapsed", gomock.Any(), "remote address", "127.0.0.1").MinTimes(1)
+ mockLogger.EXPECT().Debug("", "remote", gomock.Any(), "ts", gomock.Any(), "resp.status", gomock.Any(), "method", gomock.Any(), "uri", gomock.Any()).MinTimes(1)
mockLogger.EXPECT().Info("WORLD", "pid", gomock.Any()).MinTimes(1)
mockLogger.EXPECT().Debug("worker event received", "event", events.EventWorkerLog, "worker state", gomock.Any()).MinTimes(1)
mockLogger.EXPECT().Info(gomock.Any(), gomock.Any(), gomock.Any()).AnyTimes() // placeholder for the workerlogerror
diff --git a/tests/plugins/static/static_plugin_test.go b/tests/plugins/static/static_plugin_test.go
index 74daaa16..a411193d 100644
--- a/tests/plugins/static/static_plugin_test.go
+++ b/tests/plugins/static/static_plugin_test.go
@@ -304,7 +304,7 @@ func TestStaticFilesForbid(t *testing.T) {
mockLogger := mocks.NewMockLogger(controller)
mockLogger.EXPECT().Info("worker constructed", "pid", gomock.Any()).AnyTimes()
- mockLogger.EXPECT().Debug("http handler response received", "elapsed", gomock.Any(), "remote address", "127.0.0.1").AnyTimes()
+ mockLogger.EXPECT().Debug("", "remote", gomock.Any(), "ts", gomock.Any(), "resp.status", gomock.Any(), "method", gomock.Any(), "uri", gomock.Any()).AnyTimes()
mockLogger.EXPECT().Error("file open error", "error", gomock.Any()).AnyTimes()
mockLogger.EXPECT().Info(gomock.Any(), gomock.Any(), gomock.Any()).AnyTimes() // placeholder for the workerlogerror