diff options
Diffstat (limited to 'plugins/http/test/http_test.go')
-rw-r--r-- | plugins/http/test/http_test.go | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/plugins/http/test/http_test.go b/plugins/http/test/http_test.go new file mode 100644 index 00000000..c109d930 --- /dev/null +++ b/plugins/http/test/http_test.go @@ -0,0 +1,23 @@ +package test + +import ( + "testing" + + "github.com/spiral/endure" + "github.com/spiral/roadrunner/v2/plugins/config" + "github.com/stretchr/testify/assert" +) + +func TestHTTPInit(t *testing.T) { + cont, err := endure.NewContainer(nil, endure.SetLogLevel(endure.DebugLevel), endure.Visualize(endure.StdOut, "")) + assert.NoError(t, err) + + cfg := &config.Viper{ + Path: ".rr-http.yaml", + Prefix: "", + } + err = cont.RegisterAll( + + ) + assert.NoError(t, err) +} |