zotregistry.io/zot@v1.4.4-0.20231124084042-02a8ed785457/cmd/zb/main_test.go (about)

     1  package main //nolint:testpackage // separate binary
     2  
     3  import (
     4  	"testing"
     5  
     6  	. "github.com/smartystreets/goconvey/convey"
     7  
     8  	"zotregistry.io/zot/pkg/api"
     9  	"zotregistry.io/zot/pkg/api/config"
    10  )
    11  
    12  func TestIntegration(t *testing.T) {
    13  	Convey("Make a new controller", t, func() {
    14  		conf := config.New()
    15  		c := api.NewController(conf)
    16  		So(c, ShouldNotBeNil)
    17  
    18  		cl := NewPerfRootCmd()
    19  		So(cl, ShouldNotBeNil)
    20  
    21  		So(cl.Execute(), ShouldBeNil)
    22  	})
    23  }