diff options
author | Valery Piashchynski <[email protected]> | 2020-12-17 10:11:56 +0300 |
---|---|---|
committer | GitHub <[email protected]> | 2020-12-17 10:11:56 +0300 |
commit | a1dc59cabb6e63eab232922f4eb5a19dbd168f44 (patch) | |
tree | a35057cd5b8d22002bbd05812a3fb604ce03b705 /plugins/static | |
parent | de3c2274d0009b63ead05ddf3d699012f1d11ada (diff) | |
parent | 1033c25b6bfc752d6059e446510f651e22cbf49b (diff) |
Merge pull request #448 from spiral/plugin/reloader
[RR2] Plugin/reload
Diffstat (limited to 'plugins/static')
5 files changed, 20 insertions, 8 deletions
diff --git a/plugins/static/tests/configs/.rr-http-static-disabled.yaml b/plugins/static/tests/configs/.rr-http-static-disabled.yaml index d0b9b388..e8917c06 100644 --- a/plugins/static/tests/configs/.rr-http-static-disabled.yaml +++ b/plugins/static/tests/configs/.rr-http-static-disabled.yaml @@ -27,4 +27,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/static/tests/configs/.rr-http-static-files-disable.yaml b/plugins/static/tests/configs/.rr-http-static-files-disable.yaml index a3d814a3..1cae9ed7 100644 --- a/plugins/static/tests/configs/.rr-http-static-files-disable.yaml +++ b/plugins/static/tests/configs/.rr-http-static-files-disable.yaml @@ -27,4 +27,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/static/tests/configs/.rr-http-static-files.yaml b/plugins/static/tests/configs/.rr-http-static-files.yaml index 35938b80..32d0a6c7 100644 --- a/plugins/static/tests/configs/.rr-http-static-files.yaml +++ b/plugins/static/tests/configs/.rr-http-static-files.yaml @@ -28,4 +28,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/static/tests/configs/.rr-http-static.yaml b/plugins/static/tests/configs/.rr-http-static.yaml index 80a1fa7f..d3bd05f5 100644 --- a/plugins/static/tests/configs/.rr-http-static.yaml +++ b/plugins/static/tests/configs/.rr-http-static.yaml @@ -26,4 +26,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/static/tests/static_plugin_test.go b/plugins/static/tests/static_plugin_test.go index 528d5eea..5bad54bf 100644 --- a/plugins/static/tests/static_plugin_test.go +++ b/plugins/static/tests/static_plugin_test.go @@ -25,7 +25,7 @@ import ( ) func TestStaticPlugin(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{ @@ -133,7 +133,7 @@ func serveStaticSample(t *testing.T) { } func TestStaticDisabled(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{ @@ -206,7 +206,7 @@ func staticDisabled(t *testing.T) { } func TestStaticFilesDisabled(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{ @@ -282,7 +282,7 @@ func staticFilesDisabled(t *testing.T) { } func TestStaticFilesForbid(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{ |