mirror of
https://github.com/project-zot/zot.git
synced 2024-12-30 22:34:13 -05:00
efc55b013e
Add mixed write-only tests Add mixed read-write tests Signed-off-by: Roxana Nemulescu <roxana.nemulescu@gmail.com>
22 lines
442 B
Go
22 lines
442 B
Go
package main // nolint:testpackage // separate binary
|
|
|
|
import (
|
|
"testing"
|
|
|
|
. "github.com/smartystreets/goconvey/convey"
|
|
"zotregistry.io/zot/pkg/api"
|
|
"zotregistry.io/zot/pkg/api/config"
|
|
)
|
|
|
|
func TestIntegration(t *testing.T) {
|
|
Convey("Make a new controller", t, func() {
|
|
conf := config.New()
|
|
c := api.NewController(conf)
|
|
So(c, ShouldNotBeNil)
|
|
|
|
cl := NewPerfRootCmd()
|
|
So(cl, ShouldNotBeNil)
|
|
|
|
So(cl.Execute(), ShouldBeNil)
|
|
})
|
|
}
|