summaryrefslogtreecommitdiff
path: root/plugins/headers
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/headers')
-rw-r--r--plugins/headers/tests/configs/.rr-cors-headers.yaml4
-rw-r--r--plugins/headers/tests/configs/.rr-headers-init.yaml4
-rw-r--r--plugins/headers/tests/configs/.rr-req-headers.yaml4
-rw-r--r--plugins/headers/tests/configs/.rr-res-headers.yaml4
-rw-r--r--plugins/headers/tests/headers_plugin_test.go8
5 files changed, 16 insertions, 8 deletions
diff --git a/plugins/headers/tests/configs/.rr-cors-headers.yaml b/plugins/headers/tests/configs/.rr-cors-headers.yaml
index 5c1a200b..df985809 100644
--- a/plugins/headers/tests/configs/.rr-cors-headers.yaml
+++ b/plugins/headers/tests/configs/.rr-cors-headers.yaml
@@ -33,5 +33,7 @@ http:
maxJobs: 0
allocateTimeout: 60s
destroyTimeout: 60s
-
+logs:
+ mode: development
+ level: error
diff --git a/plugins/headers/tests/configs/.rr-headers-init.yaml b/plugins/headers/tests/configs/.rr-headers-init.yaml
index 252fe8f3..21a4373a 100644
--- a/plugins/headers/tests/configs/.rr-headers-init.yaml
+++ b/plugins/headers/tests/configs/.rr-headers-init.yaml
@@ -33,5 +33,7 @@ http:
maxJobs: 0
allocateTimeout: 60s
destroyTimeout: 60s
-
+logs:
+ mode: development
+ level: error
diff --git a/plugins/headers/tests/configs/.rr-req-headers.yaml b/plugins/headers/tests/configs/.rr-req-headers.yaml
index 9256e98d..bf305227 100644
--- a/plugins/headers/tests/configs/.rr-req-headers.yaml
+++ b/plugins/headers/tests/configs/.rr-req-headers.yaml
@@ -26,5 +26,7 @@ http:
maxJobs: 0
allocateTimeout: 60s
destroyTimeout: 60s
-
+logs:
+ mode: development
+ level: error
diff --git a/plugins/headers/tests/configs/.rr-res-headers.yaml b/plugins/headers/tests/configs/.rr-res-headers.yaml
index 1bca2c3d..ae354051 100644
--- a/plugins/headers/tests/configs/.rr-res-headers.yaml
+++ b/plugins/headers/tests/configs/.rr-res-headers.yaml
@@ -26,5 +26,7 @@ http:
maxJobs: 0
allocateTimeout: 60s
destroyTimeout: 60s
-
+logs:
+ mode: development
+ level: error
diff --git a/plugins/headers/tests/headers_plugin_test.go b/plugins/headers/tests/headers_plugin_test.go
index f1de8cb9..73aedb2c 100644
--- a/plugins/headers/tests/headers_plugin_test.go
+++ b/plugins/headers/tests/headers_plugin_test.go
@@ -20,7 +20,7 @@ import (
)
func TestHeadersInit(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{
@@ -83,7 +83,7 @@ func TestHeadersInit(t *testing.T) {
}
func TestRequestHeaders(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{
@@ -166,7 +166,7 @@ func reqHeaders(t *testing.T) {
}
func TestResponseHeaders(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{
@@ -250,7 +250,7 @@ func resHeaders(t *testing.T) {
}
func TestCORSHeaders(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{