summaryrefslogtreecommitdiff
path: root/tests/plugins/http
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2021-01-19 13:48:43 +0300
committerValery Piashchynski <[email protected]>2021-01-19 13:48:43 +0300
commit9bb05ec11065e765d14701f3f0c6aef19640dff7 (patch)
tree10e88d11ac3571c701d06e3671e6e2b538d879ed /tests/plugins/http
parenta9a206b31e272e0508fff496e9641c4db291ddb7 (diff)
Uniform debug message from the http hanlder
Update tests Signed-off-by: Valery Piashchynski <[email protected]>
Diffstat (limited to 'tests/plugins/http')
-rw-r--r--tests/plugins/http/configs/.rr-resetter.yaml2
-rw-r--r--tests/plugins/http/http_plugin_test.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/plugins/http/configs/.rr-resetter.yaml b/tests/plugins/http/configs/.rr-resetter.yaml
index 88c54858..5f5203d2 100644
--- a/tests/plugins/http/configs/.rr-resetter.yaml
+++ b/tests/plugins/http/configs/.rr-resetter.yaml
@@ -26,5 +26,5 @@ http:
destroy_timeout: 60s
logs:
mode: development
- level: error
+ level: debug
diff --git a/tests/plugins/http/http_plugin_test.go b/tests/plugins/http/http_plugin_test.go
index 88857df5..54e26480 100644
--- a/tests/plugins/http/http_plugin_test.go
+++ b/tests/plugins/http/http_plugin_test.go
@@ -963,7 +963,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