2023-09-15 17:17:01 -05:00
|
|
|
//go:build search
|
|
|
|
// +build search
|
|
|
|
|
2022-01-10 20:15:35 -05:00
|
|
|
package main_test
|
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
|
|
|
|
|
|
|
. "github.com/smartystreets/goconvey/convey"
|
2022-10-20 11:39:20 -05:00
|
|
|
|
2024-01-31 23:34:07 -05:00
|
|
|
"zotregistry.dev/zot/pkg/api"
|
|
|
|
"zotregistry.dev/zot/pkg/api/config"
|
|
|
|
cli "zotregistry.dev/zot/pkg/cli/client"
|
2022-01-10 20:15:35 -05:00
|
|
|
)
|
|
|
|
|
|
|
|
func TestIntegration(t *testing.T) {
|
|
|
|
Convey("Make a new controller", t, func() {
|
|
|
|
conf := config.New()
|
|
|
|
c := api.NewController(conf)
|
|
|
|
So(c, ShouldNotBeNil)
|
|
|
|
|
|
|
|
cl := cli.NewCliRootCmd()
|
|
|
|
So(cl, ShouldNotBeNil)
|
|
|
|
|
|
|
|
So(cl.Execute(), ShouldBeNil)
|
|
|
|
})
|
|
|
|
}
|