mirror of
https://github.com/project-zot/zot.git
synced 2026-06-17 04:48:26 +08:00
refactor: rename go module from zotregistry.io/zot to zotregistry.dev/zot (#2187)
Signed-off-by: Andrei Aaron <aaaron@luxoft.com>
This commit is contained in:
@@ -5,7 +5,7 @@ import (
|
||||
|
||||
. "github.com/smartystreets/goconvey/convey"
|
||||
|
||||
auth "zotregistry.io/zot/pkg/test/auth"
|
||||
auth "zotregistry.dev/zot/pkg/test/auth"
|
||||
)
|
||||
|
||||
func TestBearerServer(t *testing.T) {
|
||||
|
||||
@@ -13,7 +13,7 @@ import (
|
||||
. "github.com/smartystreets/goconvey/convey"
|
||||
"golang.org/x/crypto/bcrypt"
|
||||
|
||||
tcommon "zotregistry.io/zot/pkg/test/common"
|
||||
tcommon "zotregistry.dev/zot/pkg/test/common"
|
||||
)
|
||||
|
||||
var ErrTestError = errors.New("ErrTestError")
|
||||
|
||||
@@ -8,9 +8,9 @@ import (
|
||||
|
||||
. "github.com/smartystreets/goconvey/convey"
|
||||
|
||||
"zotregistry.io/zot/pkg/api"
|
||||
"zotregistry.io/zot/pkg/api/config"
|
||||
tcommon "zotregistry.io/zot/pkg/test/common"
|
||||
"zotregistry.dev/zot/pkg/api"
|
||||
"zotregistry.dev/zot/pkg/api/config"
|
||||
tcommon "zotregistry.dev/zot/pkg/test/common"
|
||||
)
|
||||
|
||||
func TestWaitTillTrivyDBDownloadStarted(t *testing.T) {
|
||||
|
||||
@@ -11,9 +11,9 @@ import (
|
||||
"github.com/opencontainers/image-spec/specs-go"
|
||||
ispec "github.com/opencontainers/image-spec/specs-go/v1"
|
||||
|
||||
"zotregistry.io/zot/pkg/common"
|
||||
mTypes "zotregistry.io/zot/pkg/meta/types"
|
||||
storageConstants "zotregistry.io/zot/pkg/storage/constants"
|
||||
"zotregistry.dev/zot/pkg/common"
|
||||
mTypes "zotregistry.dev/zot/pkg/meta/types"
|
||||
storageConstants "zotregistry.dev/zot/pkg/storage/constants"
|
||||
)
|
||||
|
||||
const (
|
||||
|
||||
@@ -8,8 +8,8 @@ import (
|
||||
ispec "github.com/opencontainers/image-spec/specs-go/v1"
|
||||
. "github.com/smartystreets/goconvey/convey"
|
||||
|
||||
"zotregistry.io/zot/pkg/common"
|
||||
. "zotregistry.io/zot/pkg/test/image-utils"
|
||||
"zotregistry.dev/zot/pkg/common"
|
||||
. "zotregistry.dev/zot/pkg/test/image-utils"
|
||||
)
|
||||
|
||||
func TestImageBuilder(t *testing.T) {
|
||||
|
||||
@@ -7,7 +7,7 @@ import (
|
||||
"github.com/opencontainers/image-spec/specs-go"
|
||||
ispec "github.com/opencontainers/image-spec/specs-go/v1"
|
||||
|
||||
mTypes "zotregistry.io/zot/pkg/meta/types"
|
||||
mTypes "zotregistry.dev/zot/pkg/meta/types"
|
||||
)
|
||||
|
||||
type MultiarchImage struct {
|
||||
|
||||
@@ -10,8 +10,8 @@ import (
|
||||
ispec "github.com/opencontainers/image-spec/specs-go/v1"
|
||||
"gopkg.in/resty.v1"
|
||||
|
||||
tcommon "zotregistry.io/zot/pkg/test/common"
|
||||
"zotregistry.io/zot/pkg/test/inject"
|
||||
tcommon "zotregistry.dev/zot/pkg/test/common"
|
||||
"zotregistry.dev/zot/pkg/test/inject"
|
||||
)
|
||||
|
||||
var (
|
||||
|
||||
@@ -11,11 +11,11 @@ import (
|
||||
ispec "github.com/opencontainers/image-spec/specs-go/v1"
|
||||
. "github.com/smartystreets/goconvey/convey"
|
||||
|
||||
"zotregistry.io/zot/pkg/api"
|
||||
"zotregistry.io/zot/pkg/api/config"
|
||||
tcommon "zotregistry.io/zot/pkg/test/common"
|
||||
. "zotregistry.io/zot/pkg/test/image-utils"
|
||||
"zotregistry.io/zot/pkg/test/inject"
|
||||
"zotregistry.dev/zot/pkg/api"
|
||||
"zotregistry.dev/zot/pkg/api/config"
|
||||
tcommon "zotregistry.dev/zot/pkg/test/common"
|
||||
. "zotregistry.dev/zot/pkg/test/image-utils"
|
||||
"zotregistry.dev/zot/pkg/test/inject"
|
||||
)
|
||||
|
||||
func TestUploadImage(t *testing.T) {
|
||||
|
||||
@@ -13,7 +13,7 @@ import (
|
||||
godigest "github.com/opencontainers/go-digest"
|
||||
ispec "github.com/opencontainers/image-spec/specs-go/v1"
|
||||
|
||||
tcommon "zotregistry.io/zot/pkg/test/common"
|
||||
tcommon "zotregistry.dev/zot/pkg/test/common"
|
||||
)
|
||||
|
||||
var vulnerableLayer []byte //nolint: gochecknoglobals
|
||||
|
||||
@@ -7,7 +7,7 @@ import (
|
||||
godigest "github.com/opencontainers/go-digest"
|
||||
ispec "github.com/opencontainers/image-spec/specs-go/v1"
|
||||
|
||||
stypes "zotregistry.io/zot/pkg/storage/types"
|
||||
stypes "zotregistry.dev/zot/pkg/storage/types"
|
||||
)
|
||||
|
||||
func WriteImageToFileSystem(image Image, repoName, ref string, storeController stypes.StoreController) error {
|
||||
|
||||
@@ -8,9 +8,9 @@ import (
|
||||
godigest "github.com/opencontainers/go-digest"
|
||||
. "github.com/smartystreets/goconvey/convey"
|
||||
|
||||
"zotregistry.io/zot/pkg/storage"
|
||||
. "zotregistry.io/zot/pkg/test/image-utils"
|
||||
"zotregistry.io/zot/pkg/test/mocks"
|
||||
"zotregistry.dev/zot/pkg/storage"
|
||||
. "zotregistry.dev/zot/pkg/test/image-utils"
|
||||
"zotregistry.dev/zot/pkg/test/mocks"
|
||||
)
|
||||
|
||||
var ErrTestError = errors.New("ErrTestError")
|
||||
|
||||
@@ -9,8 +9,8 @@ import (
|
||||
"net/http"
|
||||
"sync"
|
||||
|
||||
zerr "zotregistry.io/zot/errors"
|
||||
"zotregistry.io/zot/pkg/log"
|
||||
zerr "zotregistry.dev/zot/errors"
|
||||
"zotregistry.dev/zot/pkg/log"
|
||||
)
|
||||
|
||||
func Ok(ok bool) bool {
|
||||
|
||||
@@ -11,7 +11,7 @@ import (
|
||||
|
||||
. "github.com/smartystreets/goconvey/convey"
|
||||
|
||||
"zotregistry.io/zot/pkg/test/inject"
|
||||
"zotregistry.dev/zot/pkg/test/inject"
|
||||
)
|
||||
|
||||
var (
|
||||
|
||||
@@ -3,8 +3,8 @@ package mocks
|
||||
import (
|
||||
"context"
|
||||
|
||||
"zotregistry.io/zot/pkg/common"
|
||||
cvemodel "zotregistry.io/zot/pkg/extensions/search/cve/model"
|
||||
"zotregistry.dev/zot/pkg/common"
|
||||
cvemodel "zotregistry.dev/zot/pkg/extensions/search/cve/model"
|
||||
)
|
||||
|
||||
type CveInfoMock struct {
|
||||
|
||||
@@ -9,7 +9,7 @@ import (
|
||||
ispec "github.com/opencontainers/image-spec/specs-go/v1"
|
||||
artifactspec "github.com/oras-project/artifacts-spec/specs-go/v1"
|
||||
|
||||
"zotregistry.io/zot/pkg/scheduler"
|
||||
"zotregistry.dev/zot/pkg/scheduler"
|
||||
)
|
||||
|
||||
type MockedImageStore struct {
|
||||
|
||||
@@ -3,7 +3,7 @@ package mocks
|
||||
import (
|
||||
godigest "github.com/opencontainers/go-digest"
|
||||
|
||||
storageTypes "zotregistry.io/zot/pkg/storage/types"
|
||||
storageTypes "zotregistry.dev/zot/pkg/storage/types"
|
||||
)
|
||||
|
||||
type MockedLint struct {
|
||||
|
||||
@@ -4,8 +4,8 @@ import (
|
||||
godigest "github.com/opencontainers/go-digest"
|
||||
ispec "github.com/opencontainers/image-spec/specs-go/v1"
|
||||
|
||||
"zotregistry.io/zot/pkg/common"
|
||||
cvemodel "zotregistry.io/zot/pkg/extensions/search/cve/model"
|
||||
"zotregistry.dev/zot/pkg/common"
|
||||
cvemodel "zotregistry.dev/zot/pkg/extensions/search/cve/model"
|
||||
)
|
||||
|
||||
type OciLayoutUtilsMock struct {
|
||||
|
||||
@@ -6,7 +6,7 @@ import (
|
||||
|
||||
godigest "github.com/opencontainers/go-digest"
|
||||
|
||||
mTypes "zotregistry.io/zot/pkg/meta/types"
|
||||
mTypes "zotregistry.dev/zot/pkg/meta/types"
|
||||
)
|
||||
|
||||
type MetaDBMock struct {
|
||||
|
||||
@@ -16,12 +16,12 @@ import (
|
||||
godigest "github.com/opencontainers/go-digest"
|
||||
ispec "github.com/opencontainers/image-spec/specs-go/v1"
|
||||
|
||||
zerr "zotregistry.io/zot/errors"
|
||||
"zotregistry.io/zot/pkg/common"
|
||||
"zotregistry.io/zot/pkg/extensions/search/convert"
|
||||
cvemodel "zotregistry.io/zot/pkg/extensions/search/cve/model"
|
||||
"zotregistry.io/zot/pkg/log"
|
||||
stypes "zotregistry.io/zot/pkg/storage/types"
|
||||
zerr "zotregistry.dev/zot/errors"
|
||||
"zotregistry.dev/zot/pkg/common"
|
||||
"zotregistry.dev/zot/pkg/extensions/search/convert"
|
||||
cvemodel "zotregistry.dev/zot/pkg/extensions/search/cve/model"
|
||||
"zotregistry.dev/zot/pkg/log"
|
||||
stypes "zotregistry.dev/zot/pkg/storage/types"
|
||||
)
|
||||
|
||||
type OciUtils interface { //nolint: interfacebloat
|
||||
|
||||
@@ -15,20 +15,20 @@ import (
|
||||
ispec "github.com/opencontainers/image-spec/specs-go/v1"
|
||||
. "github.com/smartystreets/goconvey/convey"
|
||||
|
||||
zerr "zotregistry.io/zot/errors"
|
||||
"zotregistry.io/zot/pkg/api"
|
||||
"zotregistry.io/zot/pkg/api/config"
|
||||
extconf "zotregistry.io/zot/pkg/extensions/config"
|
||||
"zotregistry.io/zot/pkg/extensions/monitoring"
|
||||
cvemodel "zotregistry.io/zot/pkg/extensions/search/cve/model"
|
||||
"zotregistry.io/zot/pkg/log"
|
||||
"zotregistry.io/zot/pkg/storage"
|
||||
"zotregistry.io/zot/pkg/storage/local"
|
||||
tcommon "zotregistry.io/zot/pkg/test/common"
|
||||
. "zotregistry.io/zot/pkg/test/image-utils"
|
||||
"zotregistry.io/zot/pkg/test/mocks"
|
||||
ociutils "zotregistry.io/zot/pkg/test/oci-utils"
|
||||
signature "zotregistry.io/zot/pkg/test/signature"
|
||||
zerr "zotregistry.dev/zot/errors"
|
||||
"zotregistry.dev/zot/pkg/api"
|
||||
"zotregistry.dev/zot/pkg/api/config"
|
||||
extconf "zotregistry.dev/zot/pkg/extensions/config"
|
||||
"zotregistry.dev/zot/pkg/extensions/monitoring"
|
||||
cvemodel "zotregistry.dev/zot/pkg/extensions/search/cve/model"
|
||||
"zotregistry.dev/zot/pkg/log"
|
||||
"zotregistry.dev/zot/pkg/storage"
|
||||
"zotregistry.dev/zot/pkg/storage/local"
|
||||
tcommon "zotregistry.dev/zot/pkg/test/common"
|
||||
. "zotregistry.dev/zot/pkg/test/image-utils"
|
||||
"zotregistry.dev/zot/pkg/test/mocks"
|
||||
ociutils "zotregistry.dev/zot/pkg/test/oci-utils"
|
||||
signature "zotregistry.dev/zot/pkg/test/signature"
|
||||
)
|
||||
|
||||
var ErrTestError = fmt.Errorf("testError")
|
||||
|
||||
@@ -4,10 +4,10 @@ import (
|
||||
"context"
|
||||
"fmt"
|
||||
|
||||
zerr "zotregistry.io/zot/errors"
|
||||
mTypes "zotregistry.io/zot/pkg/meta/types"
|
||||
reqCtx "zotregistry.io/zot/pkg/requestcontext"
|
||||
imageUtil "zotregistry.io/zot/pkg/test/image-utils"
|
||||
zerr "zotregistry.dev/zot/errors"
|
||||
mTypes "zotregistry.dev/zot/pkg/meta/types"
|
||||
reqCtx "zotregistry.dev/zot/pkg/requestcontext"
|
||||
imageUtil "zotregistry.dev/zot/pkg/test/image-utils"
|
||||
)
|
||||
|
||||
type RepoImage struct {
|
||||
|
||||
@@ -7,10 +7,10 @@ import (
|
||||
|
||||
. "github.com/smartystreets/goconvey/convey"
|
||||
|
||||
"zotregistry.io/zot/pkg/meta/types"
|
||||
"zotregistry.io/zot/pkg/test/image-utils"
|
||||
"zotregistry.io/zot/pkg/test/mocks"
|
||||
ociutils "zotregistry.io/zot/pkg/test/oci-utils"
|
||||
"zotregistry.dev/zot/pkg/meta/types"
|
||||
"zotregistry.dev/zot/pkg/test/image-utils"
|
||||
"zotregistry.dev/zot/pkg/test/mocks"
|
||||
ociutils "zotregistry.dev/zot/pkg/test/oci-utils"
|
||||
)
|
||||
|
||||
var ErrTestFail = fmt.Errorf("fail")
|
||||
|
||||
@@ -3,12 +3,12 @@ package ociutils
|
||||
import (
|
||||
godigest "github.com/opencontainers/go-digest"
|
||||
|
||||
"zotregistry.io/zot/pkg/extensions/monitoring"
|
||||
zLog "zotregistry.io/zot/pkg/log"
|
||||
"zotregistry.io/zot/pkg/storage"
|
||||
"zotregistry.io/zot/pkg/storage/local"
|
||||
stypes "zotregistry.io/zot/pkg/storage/types"
|
||||
"zotregistry.io/zot/pkg/test/mocks"
|
||||
"zotregistry.dev/zot/pkg/extensions/monitoring"
|
||||
zLog "zotregistry.dev/zot/pkg/log"
|
||||
"zotregistry.dev/zot/pkg/storage"
|
||||
"zotregistry.dev/zot/pkg/storage/local"
|
||||
stypes "zotregistry.dev/zot/pkg/storage/types"
|
||||
"zotregistry.dev/zot/pkg/test/mocks"
|
||||
)
|
||||
|
||||
func GetDefaultImageStore(rootDir string, log zLog.Logger) stypes.ImageStore {
|
||||
|
||||
@@ -31,7 +31,7 @@ import (
|
||||
"oras.land/oras-go/v2/registry/remote"
|
||||
"oras.land/oras-go/v2/registry/remote/auth"
|
||||
|
||||
tcommon "zotregistry.io/zot/pkg/test/common"
|
||||
tcommon "zotregistry.dev/zot/pkg/test/common"
|
||||
)
|
||||
|
||||
var (
|
||||
|
||||
@@ -13,11 +13,11 @@ import (
|
||||
notconfig "github.com/notaryproject/notation-go/config"
|
||||
. "github.com/smartystreets/goconvey/convey"
|
||||
|
||||
"zotregistry.io/zot/pkg/api"
|
||||
"zotregistry.io/zot/pkg/api/config"
|
||||
tcommon "zotregistry.io/zot/pkg/test/common"
|
||||
. "zotregistry.io/zot/pkg/test/image-utils"
|
||||
signature "zotregistry.io/zot/pkg/test/signature"
|
||||
"zotregistry.dev/zot/pkg/api"
|
||||
"zotregistry.dev/zot/pkg/api/config"
|
||||
tcommon "zotregistry.dev/zot/pkg/test/common"
|
||||
. "zotregistry.dev/zot/pkg/test/image-utils"
|
||||
signature "zotregistry.dev/zot/pkg/test/signature"
|
||||
)
|
||||
|
||||
func TestLoadNotationSigningkeys(t *testing.T) {
|
||||
|
||||
@@ -6,7 +6,7 @@ import (
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
|
||||
tskip "zotregistry.io/zot/pkg/test/skip"
|
||||
tskip "zotregistry.dev/zot/pkg/test/skip"
|
||||
)
|
||||
|
||||
// for code coverage.
|
||||
|
||||
Reference in New Issue
Block a user