diff options
author | Valery Piashchynski <[email protected]> | 2021-01-21 13:25:36 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2021-01-21 13:25:36 +0300 |
commit | 7da6c78449776e1f3c6716250bca0b712a0423a4 (patch) | |
tree | f3512de66aca2bba408485a0ea2fc936c0e4fb9b /tests/plugins/http/uploads_config_test.go | |
parent | 0ff05b2732b4fd0783f959c94c54d7e39169f979 (diff) |
Uniform all configs
Add debug server
Check nil's for all plugin intialization
Diffstat (limited to 'tests/plugins/http/uploads_config_test.go')
-rw-r--r-- | tests/plugins/http/uploads_config_test.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/plugins/http/uploads_config_test.go b/tests/plugins/http/uploads_config_test.go index e76078ee..4f99b621 100644 --- a/tests/plugins/http/uploads_config_test.go +++ b/tests/plugins/http/uploads_config_test.go @@ -4,12 +4,12 @@ import ( "os" "testing" - httpPlugin "github.com/spiral/roadrunner/v2/plugins/http" + "github.com/spiral/roadrunner/v2/plugins/http/config" "github.com/stretchr/testify/assert" ) func TestFsConfig_Forbids(t *testing.T) { - cfg := httpPlugin.UploadsConfig{Forbid: []string{".php"}} + cfg := config.Uploads{Forbid: []string{".php"}} assert.True(t, cfg.Forbids("index.php")) assert.True(t, cfg.Forbids("index.PHP")) @@ -18,9 +18,9 @@ func TestFsConfig_Forbids(t *testing.T) { } func TestFsConfig_TmpFallback(t *testing.T) { - cfg := httpPlugin.UploadsConfig{Dir: "test"} + cfg := config.Uploads{Dir: "test"} assert.Equal(t, "test", cfg.TmpDir()) - cfg = httpPlugin.UploadsConfig{Dir: ""} + cfg = config.Uploads{Dir: ""} assert.Equal(t, os.TempDir(), cfg.TmpDir()) } |