zot-wo-auth/cmd/zot/main_test.go

23 lines
410 B
Go
Raw Normal View History

2019-06-20 16:36:40 -07:00
package main_test
import (
"testing"
"github.com/anuvu/zot/pkg/api"
"github.com/anuvu/zot/pkg/cli"
. "github.com/smartystreets/goconvey/convey"
)
func TestIntegration(t *testing.T) {
Convey("Make a new controller", t, func() {
config := api.NewConfig()
c := api.NewController(config)
So(c, ShouldNotBeNil)
cl := cli.NewRootCmd()
2019-06-20 16:36:40 -07:00
So(cl, ShouldNotBeNil)
So(cl.Execute(), ShouldBeNil)
})
}