summaryrefslogtreecommitdiff
path: root/tests/plugins/http/http_plugin_test.go
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2021-03-13 21:06:20 +0300
committerValery Piashchynski <[email protected]>2021-03-13 21:06:20 +0300
commit594d801d14bb394b20eec14690d1b616e2c4d56d (patch)
tree7643d6e74c69f078e704730a8217f3204654060d /tests/plugins/http/http_plugin_test.go
parentd3e3fba7ce313b9e9563cca35ebd6432a0fba6e4 (diff)
- Add ability to print http/https/fcgi to the rr logger under the Info
level - Update tests and CHANGELOG Signed-off-by: Valery Piashchynski <[email protected]>
Diffstat (limited to 'tests/plugins/http/http_plugin_test.go')
-rw-r--r--tests/plugins/http/http_plugin_test.go9
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/plugins/http/http_plugin_test.go b/tests/plugins/http/http_plugin_test.go
index d55491ea..752bd84e 100644
--- a/tests/plugins/http/http_plugin_test.go
+++ b/tests/plugins/http/http_plugin_test.go
@@ -705,11 +705,18 @@ func TestH2CUpgrade(t *testing.T) {
Path: "configs/.rr-h2c.yaml",
Prefix: "rr",
}
+ controller := gomock.NewController(t)
+ mockLogger := mocks.NewMockLogger(controller)
+
+ mockLogger.EXPECT().Info("server internal stderr", "message", gomock.Any()).MinTimes(1)
+ mockLogger.EXPECT().Debug("worker destructed", "pid", gomock.Any()).MinTimes(1)
+ mockLogger.EXPECT().Debug("worker constructed", "pid", gomock.Any()).MinTimes(1)
+ mockLogger.EXPECT().Debug("worker event received", "event", events.EventWorkerLog, "worker state", gomock.Any()).MinTimes(1)
err = cont.RegisterAll(
cfg,
&rpcPlugin.Plugin{},
- &logger.ZapLogger{},
+ mockLogger,
&server.Plugin{},
&httpPlugin.Plugin{},
)