bb9fbd2ef9
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
23 lines
410 B
Go
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)
|
|
})
|
|
}
|