diff --git a/client/executors/v1/mock_executors.go b/client/executors/v1/mock_executors.go index 5563af0e..3db0587d 100644 --- a/client/executors/v1/mock_executors.go +++ b/client/executors/v1/mock_executors.go @@ -7,7 +7,7 @@ package executors import ( reflect "reflect" - gomock "github.com/golang/mock/gomock" + gomock "go.uber.org/mock/gomock" v1 "github.com/kubeshop/testkube-operator/apis/executor/v1" ) diff --git a/client/tests/v3/mock_tests.go b/client/tests/v3/mock_tests.go index 89f23d38..4b953f80 100644 --- a/client/tests/v3/mock_tests.go +++ b/client/tests/v3/mock_tests.go @@ -7,7 +7,7 @@ package tests import ( reflect "reflect" - gomock "github.com/golang/mock/gomock" + gomock "go.uber.org/mock/gomock" v3 "github.com/kubeshop/testkube-operator/apis/tests/v3" v1 "k8s.io/api/core/v1" ) diff --git a/client/testsources/v1/mock_testsources.go b/client/testsources/v1/mock_testsources.go index 2c12df5f..cd0fa92e 100644 --- a/client/testsources/v1/mock_testsources.go +++ b/client/testsources/v1/mock_testsources.go @@ -7,7 +7,7 @@ package testsources import ( reflect "reflect" - gomock "github.com/golang/mock/gomock" + gomock "go.uber.org/mock/gomock" v1 "github.com/kubeshop/testkube-operator/apis/testsource/v1" ) diff --git a/client/testsuites/v2/mock_testsuites.go b/client/testsuites/v2/mock_testsuites.go index f249ab5c..8d4c6b71 100644 --- a/client/testsuites/v2/mock_testsuites.go +++ b/client/testsuites/v2/mock_testsuites.go @@ -7,7 +7,7 @@ package v2 import ( reflect "reflect" - gomock "github.com/golang/mock/gomock" + gomock "go.uber.org/mock/gomock" v2 "github.com/kubeshop/testkube-operator/apis/testsuite/v2" v1 "k8s.io/api/core/v1" ) diff --git a/client/testsuites/v3/mock_testsuites.go b/client/testsuites/v3/mock_testsuites.go index e5ce0d63..d8f5f0b0 100644 --- a/client/testsuites/v3/mock_testsuites.go +++ b/client/testsuites/v3/mock_testsuites.go @@ -7,7 +7,7 @@ package v3 import ( reflect "reflect" - gomock "github.com/golang/mock/gomock" + gomock "go.uber.org/mock/gomock" v3 "github.com/kubeshop/testkube-operator/apis/testsuite/v3" v1 "k8s.io/api/core/v1" ) diff --git a/go.mod b/go.mod index 4f657db3..4c81e75a 100644 --- a/go.mod +++ b/go.mod @@ -3,13 +3,13 @@ module github.com/kubeshop/testkube-operator go 1.18 require ( - github.com/golang/mock v1.6.0 github.com/google/uuid v1.3.0 github.com/kelseyhightower/envconfig v1.4.0 github.com/onsi/ginkgo v1.16.5 github.com/onsi/gomega v1.19.0 github.com/pkg/errors v0.9.1 github.com/stretchr/testify v1.8.1 + go.uber.org/mock v0.3.0 go.uber.org/zap v1.21.0 k8s.io/api v0.24.1 k8s.io/apimachinery v0.24.1 diff --git a/go.sum b/go.sum index 508d9710..b351d0c1 100644 --- a/go.sum +++ b/go.sum @@ -233,7 +233,6 @@ github.com/golang/mock v1.4.1/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt github.com/golang/mock v1.4.3/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= github.com/golang/mock v1.4.4/go.mod h1:l3mdAwkq5BuhzHwde/uurv3sEJeZMXNpwsxVWU71h+4= github.com/golang/mock v1.5.0/go.mod h1:CWnOUgYIOo4TcNZ0wHX3YZCqsaM1I1Jvs6v3mP3KVu8= -github.com/golang/mock v1.6.0 h1:ErTB+efbowRARo13NNdxyJji2egdxLGQhRaY+DUumQc= github.com/golang/mock v1.6.0/go.mod h1:p6yTPP+5HYm5mzsMV8JkE6ZKdX+/wYM6Hr+LicevLPs= github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= @@ -571,6 +570,8 @@ go.uber.org/atomic v1.9.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc= go.uber.org/goleak v1.1.10/go.mod h1:8a7PlsEVH3e/a/GLqe5IIrQx6GzcnRmZEufDUTk4A7A= go.uber.org/goleak v1.1.11/go.mod h1:cwTWslyiVhfpKIDGSZEM2HlOvcqm+tG4zioyIeLoqMQ= go.uber.org/goleak v1.1.12 h1:gZAh5/EyT/HQwlpkCy6wTpqfH9H8Lz8zbm3dZh+OyzA= +go.uber.org/mock v0.3.0 h1:3mUxI1No2/60yUYax92Pt8eNOEecx2D3lcXZh2NEZJo= +go.uber.org/mock v0.3.0/go.mod h1:a6FSlNadKUHUa9IP5Vyt1zh4fC7uAwxMutEAscFbkZc= go.uber.org/multierr v1.1.0/go.mod h1:wR5kodmAFQ0UK8QlbwjlSNy0Z68gJhDJUG5sjR94q/0= go.uber.org/multierr v1.6.0/go.mod h1:cdWPpRnG4AhwMwsgIHip0KRBQjJy5kYEpYjJxpXp9iU= go.uber.org/multierr v1.8.0 h1:dg6GjLku4EH+249NNmoIciG9N/jURbDG+pFlTkhzIC8=