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

     1  package main_test
     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  	cli "zotregistry.io/zot/pkg/cli/server"
    11  )
    12  
    13  func TestIntegration(t *testing.T) {
    14  	Convey("Make a new controller", t, func() {
    15  		conf := config.New()
    16  		c := api.NewController(conf)
    17  		So(c, ShouldNotBeNil)
    18  
    19  		cl := cli.NewServerRootCmd()
    20  		So(cl, ShouldNotBeNil)
    21  
    22  		So(cl.Execute(), ShouldBeNil)
    23  	})
    24  }