zot-wo-auth/cmd/zot/main_test.go
Tanmay Naik bb9fbd2ef9 cli: move client-only code out of the server flow
earlier, some of the client exclusive code was being run on zot server
instance too.

cli: fix the bug: spinner is not stopped with -o
2020-07-14 13:35:56 -04:00

23 lines
410 B
Go

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()
So(cl, ShouldNotBeNil)
So(cl.Execute(), ShouldBeNil)
})
}