zotregistry.io/zot@v1.4.4-0.20231124084042-02a8ed785457/cmd/zli/main_test.go (about) 1 //go:build search 2 // +build search 3 4 package main_test 5 6 import ( 7 "testing" 8 9 . "github.com/smartystreets/goconvey/convey" 10 11 "zotregistry.io/zot/pkg/api" 12 "zotregistry.io/zot/pkg/api/config" 13 cli "zotregistry.io/zot/pkg/cli/client" 14 ) 15 16 func TestIntegration(t *testing.T) { 17 Convey("Make a new controller", t, func() { 18 conf := config.New() 19 c := api.NewController(conf) 20 So(c, ShouldNotBeNil) 21 22 cl := cli.NewCliRootCmd() 23 So(cl, ShouldNotBeNil) 24 25 So(cl.Execute(), ShouldBeNil) 26 }) 27 }