summaryrefslogtreecommitdiff
path: root/plugins/gzip
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/gzip')
-rw-r--r--plugins/gzip/tests/configs/.rr-http-middlewareNotExist.yaml5
-rw-r--r--plugins/gzip/tests/configs/.rr-http-withGzip.yaml5
-rw-r--r--plugins/gzip/tests/plugin_test.go4
3 files changed, 10 insertions, 4 deletions
diff --git a/plugins/gzip/tests/configs/.rr-http-middlewareNotExist.yaml b/plugins/gzip/tests/configs/.rr-http-middlewareNotExist.yaml
index 3dc5f9df..08c9b0ff 100644
--- a/plugins/gzip/tests/configs/.rr-http-middlewareNotExist.yaml
+++ b/plugins/gzip/tests/configs/.rr-http-middlewareNotExist.yaml
@@ -19,4 +19,7 @@ http:
numWorkers: 2
maxJobs: 0
allocateTimeout: 60s
- destroyTimeout: 60s \ No newline at end of file
+ destroyTimeout: 60s
+logs:
+ mode: development
+ level: error \ No newline at end of file
diff --git a/plugins/gzip/tests/configs/.rr-http-withGzip.yaml b/plugins/gzip/tests/configs/.rr-http-withGzip.yaml
index 38fdfe47..3475d5dd 100644
--- a/plugins/gzip/tests/configs/.rr-http-withGzip.yaml
+++ b/plugins/gzip/tests/configs/.rr-http-withGzip.yaml
@@ -19,4 +19,7 @@ http:
numWorkers: 2
maxJobs: 0
allocateTimeout: 60s
- destroyTimeout: 60s \ No newline at end of file
+ destroyTimeout: 60s
+logs:
+ mode: development
+ level: error \ No newline at end of file
diff --git a/plugins/gzip/tests/plugin_test.go b/plugins/gzip/tests/plugin_test.go
index 39979895..97291ebe 100644
--- a/plugins/gzip/tests/plugin_test.go
+++ b/plugins/gzip/tests/plugin_test.go
@@ -21,7 +21,7 @@ import (
)
func TestGzipPlugin(t *testing.T) {
- cont, err := endure.NewContainer(nil, endure.SetLogLevel(endure.DebugLevel))
+ cont, err := endure.NewContainer(nil, endure.SetLogLevel(endure.ErrorLevel))
assert.NoError(t, err)
cfg := &config.Viper{
@@ -102,7 +102,7 @@ func headerCheck(t *testing.T) {
}
func TestMiddlewareNotExist(t *testing.T) {
- cont, err := endure.NewContainer(nil, endure.SetLogLevel(endure.DebugLevel))
+ cont, err := endure.NewContainer(nil, endure.SetLogLevel(endure.ErrorLevel))
assert.NoError(t, err)
cfg := &config.Viper{