mirror of
https://github.com/project-zot/zot.git
synced 2024-12-16 21:56:37 -05:00
22 lines
410 B
Go
22 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)
|
|
})
|
|
}
|