`make validate-go` to format stuff and make CI happy

This commit is contained in:
kimorris27 2024-09-24 17:35:34 -05:00
Родитель d50158cd9c
Коммит 7448b3db41
90 изменённых файлов: 90 добавлений и 90 удалений

Просмотреть файл

@ -8,8 +8,8 @@ import (
"reflect"
"testing"
"go.uber.org/mock/gomock"
"github.com/sirupsen/logrus"
"go.uber.org/mock/gomock"
"github.com/Azure/ARO-RP/pkg/api"
mock_env "github.com/Azure/ARO-RP/pkg/util/mocks/env"

Просмотреть файл

@ -11,10 +11,10 @@ import (
"strings"
"testing"
"go.uber.org/mock/gomock"
"github.com/onsi/gomega"
"github.com/onsi/gomega/types"
"github.com/sirupsen/logrus"
"go.uber.org/mock/gomock"
"github.com/Azure/ARO-RP/pkg/api"
"github.com/Azure/ARO-RP/pkg/cluster"

Просмотреть файл

@ -9,8 +9,8 @@ import (
"strings"
"testing"
"go.uber.org/mock/gomock"
"github.com/sirupsen/logrus"
"go.uber.org/mock/gomock"
"github.com/Azure/ARO-RP/pkg/api"
mock_deploy "github.com/Azure/ARO-RP/pkg/util/mocks/operator/deploy"

Просмотреть файл

@ -13,10 +13,10 @@ import (
mgmtauthorization "github.com/Azure/azure-sdk-for-go/services/preview/authorization/mgmt/2018-09-01-preview/authorization"
mgmtfeatures "github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2019-07-01/features"
"github.com/Azure/go-autorest/autorest/to"
"go.uber.org/mock/gomock"
operatorv1 "github.com/openshift/api/operator/v1"
operatorfake "github.com/openshift/client-go/operator/clientset/versioned/fake"
"github.com/sirupsen/logrus"
"go.uber.org/mock/gomock"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime"

Просмотреть файл

@ -9,8 +9,8 @@ import (
"testing"
mgmtfeatures "github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2019-07-01/features"
"go.uber.org/mock/gomock"
"github.com/sirupsen/logrus"
"go.uber.org/mock/gomock"
"github.com/Azure/ARO-RP/pkg/api"
"github.com/Azure/ARO-RP/pkg/env"

Просмотреть файл

@ -21,9 +21,9 @@ import (
"github.com/Azure/go-autorest/autorest"
"github.com/Azure/go-autorest/autorest/azure"
"github.com/Azure/go-autorest/autorest/to"
"go.uber.org/mock/gomock"
"github.com/sirupsen/logrus"
"github.com/stretchr/testify/assert"
"go.uber.org/mock/gomock"
utilrand "k8s.io/apimachinery/pkg/util/rand"
"github.com/Azure/ARO-RP/pkg/api"

Просмотреть файл

@ -7,9 +7,9 @@ import (
"context"
"testing"
"go.uber.org/mock/gomock"
configv1 "github.com/openshift/api/config/v1"
configfake "github.com/openshift/client-go/config/clientset/versioned/fake"
"go.uber.org/mock/gomock"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"github.com/Azure/ARO-RP/pkg/api"

Просмотреть файл

@ -14,10 +14,10 @@ import (
mgmtcompute "github.com/Azure/azure-sdk-for-go/services/compute/mgmt/2020-06-01/compute"
"github.com/Azure/go-autorest/autorest/to"
"github.com/go-test/deep"
"go.uber.org/mock/gomock"
"github.com/onsi/gomega"
"github.com/onsi/gomega/types"
"github.com/sirupsen/logrus"
"go.uber.org/mock/gomock"
"github.com/Azure/ARO-RP/pkg/api"
mock_compute "github.com/Azure/ARO-RP/pkg/util/mocks/azureclient/mgmt/compute"

Просмотреть файл

@ -10,8 +10,8 @@ import (
mgmtnetwork "github.com/Azure/azure-sdk-for-go/services/network/mgmt/2020-08-01/network"
"github.com/Azure/go-autorest/autorest/to"
"go.uber.org/mock/gomock"
"github.com/sirupsen/logrus"
"go.uber.org/mock/gomock"
"github.com/Azure/ARO-RP/pkg/api"
mock_network "github.com/Azure/ARO-RP/pkg/util/mocks/azureclient/mgmt/network"

Просмотреть файл

@ -8,8 +8,8 @@ import (
"errors"
"testing"
"go.uber.org/mock/gomock"
"github.com/sirupsen/logrus"
"go.uber.org/mock/gomock"
mock_env "github.com/Azure/ARO-RP/pkg/util/mocks/env"
mock_keyvault "github.com/Azure/ARO-RP/pkg/util/mocks/keyvault"

Просмотреть файл

@ -10,8 +10,8 @@ import (
"strings"
"testing"
"go.uber.org/mock/gomock"
"github.com/sirupsen/logrus"
"go.uber.org/mock/gomock"
corev1 "k8s.io/api/core/v1"
"github.com/Azure/ARO-RP/pkg/api"

Просмотреть файл

@ -10,7 +10,6 @@ import (
"testing"
"time"
"go.uber.org/mock/gomock"
"github.com/onsi/gomega"
"github.com/onsi/gomega/types"
configv1 "github.com/openshift/api/config/v1"
@ -18,6 +17,7 @@ import (
configfake "github.com/openshift/client-go/config/clientset/versioned/fake"
operatorfake "github.com/openshift/client-go/operator/clientset/versioned/fake"
"github.com/sirupsen/logrus"
"go.uber.org/mock/gomock"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/client-go/kubernetes/fake"

Просмотреть файл

@ -8,8 +8,8 @@ import (
"strings"
"testing"
"go.uber.org/mock/gomock"
"github.com/stretchr/testify/assert"
"go.uber.org/mock/gomock"
"github.com/Azure/ARO-RP/pkg/api"
mock_env "github.com/Azure/ARO-RP/pkg/util/mocks/env"

Просмотреть файл

@ -11,8 +11,8 @@ import (
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v2"
mgmtnetwork "github.com/Azure/azure-sdk-for-go/services/network/mgmt/2020-08-01/network"
"github.com/Azure/go-autorest/autorest/to"
"go.uber.org/mock/gomock"
"github.com/sirupsen/logrus"
"go.uber.org/mock/gomock"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/client-go/kubernetes/fake"

Просмотреть файл

@ -11,10 +11,10 @@ import (
mgmtnetwork "github.com/Azure/azure-sdk-for-go/services/network/mgmt/2020-08-01/network"
"github.com/Azure/go-autorest/autorest/to"
"go.uber.org/mock/gomock"
"github.com/sirupsen/logrus"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"go.uber.org/mock/gomock"
"github.com/Azure/ARO-RP/pkg/api"
mock_network "github.com/Azure/ARO-RP/pkg/util/mocks/azureclient/mgmt/network"

Просмотреть файл

@ -8,8 +8,8 @@ import (
"errors"
"testing"
"go.uber.org/mock/gomock"
"github.com/sirupsen/logrus"
"go.uber.org/mock/gomock"
"github.com/Azure/ARO-RP/pkg/api"
mock_privatedns "github.com/Azure/ARO-RP/pkg/util/mocks/azureclient/mgmt/privatedns"

Просмотреть файл

@ -8,9 +8,9 @@ import (
"errors"
"testing"
"go.uber.org/mock/gomock"
operatorv1 "github.com/openshift/api/operator/v1"
samplesv1 "github.com/openshift/api/samples/v1"
"go.uber.org/mock/gomock"
kerrors "k8s.io/apimachinery/pkg/api/errors"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime/schema"

Просмотреть файл

@ -6,9 +6,9 @@ package cluster
import (
"testing"
"go.uber.org/mock/gomock"
configv1 "github.com/openshift/api/config/v1"
"github.com/stretchr/testify/assert"
"go.uber.org/mock/gomock"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
kruntime "k8s.io/apimachinery/pkg/runtime"

Просмотреть файл

@ -12,8 +12,8 @@ import (
mgmtfeatures "github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2019-07-01/features"
"github.com/Azure/go-autorest/autorest/azure"
"github.com/Azure/go-autorest/autorest/to"
"go.uber.org/mock/gomock"
"github.com/sirupsen/logrus"
"go.uber.org/mock/gomock"
"github.com/Azure/ARO-RP/pkg/util/arm"
mock_features "github.com/Azure/ARO-RP/pkg/util/mocks/azureclient/mgmt/features"

Просмотреть файл

@ -19,8 +19,8 @@ import (
"github.com/Azure/go-autorest/autorest/date"
"github.com/Azure/go-autorest/autorest/to"
gofrsuuid "github.com/gofrs/uuid"
"go.uber.org/mock/gomock"
"github.com/sirupsen/logrus"
"go.uber.org/mock/gomock"
"github.com/Azure/ARO-RP/pkg/deploy/generator"
"github.com/Azure/ARO-RP/pkg/env"

Просмотреть файл

@ -10,8 +10,8 @@ import (
mgmtcompute "github.com/Azure/azure-sdk-for-go/services/compute/mgmt/2020-06-01/compute"
"github.com/Azure/go-autorest/autorest/to"
"go.uber.org/mock/gomock"
"github.com/sirupsen/logrus"
"go.uber.org/mock/gomock"
mock_compute "github.com/Azure/ARO-RP/pkg/util/mocks/azureclient/mgmt/compute"
)

2
pkg/env/certificateRefresher_test.go поставляемый
Просмотреть файл

@ -11,8 +11,8 @@ import (
"testing"
"time"
"go.uber.org/mock/gomock"
"github.com/sirupsen/logrus"
"go.uber.org/mock/gomock"
"github.com/Azure/ARO-RP/pkg/util/keyvault"
mock_keyvault "github.com/Azure/ARO-RP/pkg/util/mocks/keyvault"

Просмотреть файл

@ -10,8 +10,8 @@ import (
"strings"
"testing"
"go.uber.org/mock/gomock"
hivev1 "github.com/openshift/hive/apis/hive/v1"
"go.uber.org/mock/gomock"
"github.com/Azure/ARO-RP/pkg/api"
"github.com/Azure/ARO-RP/pkg/metrics/noop"

Просмотреть файл

@ -10,8 +10,8 @@ import (
"strings"
"testing"
"go.uber.org/mock/gomock"
"github.com/sirupsen/logrus"
"go.uber.org/mock/gomock"
"github.com/Azure/ARO-RP/pkg/api"
"github.com/Azure/ARO-RP/pkg/env"

Просмотреть файл

@ -10,8 +10,8 @@ import (
"strings"
"testing"
"go.uber.org/mock/gomock"
"github.com/sirupsen/logrus"
"go.uber.org/mock/gomock"
"github.com/Azure/ARO-RP/pkg/api"
"github.com/Azure/ARO-RP/pkg/env"

Просмотреть файл

@ -11,8 +11,8 @@ import (
"testing"
"github.com/Azure/go-autorest/autorest"
"go.uber.org/mock/gomock"
"github.com/sirupsen/logrus"
"go.uber.org/mock/gomock"
"github.com/Azure/ARO-RP/pkg/api"
"github.com/Azure/ARO-RP/pkg/env"

Просмотреть файл

@ -10,8 +10,8 @@ import (
"strings"
"testing"
"go.uber.org/mock/gomock"
"github.com/sirupsen/logrus"
"go.uber.org/mock/gomock"
"github.com/Azure/ARO-RP/pkg/api"
"github.com/Azure/ARO-RP/pkg/env"

Просмотреть файл

@ -14,11 +14,11 @@ import (
"testing"
"time"
"go.uber.org/mock/gomock"
configv1 "github.com/openshift/api/config/v1"
operatorv1 "github.com/openshift/api/operator/v1"
"github.com/sirupsen/logrus"
"github.com/ugorji/go/codec"
"go.uber.org/mock/gomock"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"

Просмотреть файл

@ -10,8 +10,8 @@ import (
"strings"
"testing"
"go.uber.org/mock/gomock"
"github.com/sirupsen/logrus"
"go.uber.org/mock/gomock"
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
"k8s.io/apimachinery/pkg/runtime/schema"

Просмотреть файл

@ -11,8 +11,8 @@ import (
"strings"
"testing"
"go.uber.org/mock/gomock"
"github.com/sirupsen/logrus"
"go.uber.org/mock/gomock"
"github.com/Azure/ARO-RP/pkg/api"
"github.com/Azure/ARO-RP/pkg/env"

Просмотреть файл

@ -10,8 +10,8 @@ import (
"strings"
"testing"
"go.uber.org/mock/gomock"
"github.com/sirupsen/logrus"
"go.uber.org/mock/gomock"
"github.com/Azure/ARO-RP/pkg/api"
"github.com/Azure/ARO-RP/pkg/env"

Просмотреть файл

@ -11,8 +11,8 @@ import (
"testing"
mgmtfeatures "github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2019-07-01/features"
"go.uber.org/mock/gomock"
"github.com/sirupsen/logrus"
"go.uber.org/mock/gomock"
"github.com/Azure/ARO-RP/pkg/api"
"github.com/Azure/ARO-RP/pkg/env"

Просмотреть файл

@ -10,8 +10,8 @@ import (
"strings"
"testing"
"go.uber.org/mock/gomock"
"github.com/sirupsen/logrus"
"go.uber.org/mock/gomock"
"github.com/Azure/ARO-RP/pkg/api"
"github.com/Azure/ARO-RP/pkg/env"

Просмотреть файл

@ -10,8 +10,8 @@ import (
"strings"
"testing"
"go.uber.org/mock/gomock"
"github.com/sirupsen/logrus"
"go.uber.org/mock/gomock"
"github.com/Azure/ARO-RP/pkg/api"
"github.com/Azure/ARO-RP/pkg/env"

Просмотреть файл

@ -10,8 +10,8 @@ import (
"strings"
"testing"
"go.uber.org/mock/gomock"
"github.com/sirupsen/logrus"
"go.uber.org/mock/gomock"
"github.com/Azure/ARO-RP/pkg/api"
"github.com/Azure/ARO-RP/pkg/env"

Просмотреть файл

@ -12,8 +12,8 @@ import (
mgmtcompute "github.com/Azure/azure-sdk-for-go/services/compute/mgmt/2020-06-01/compute"
"github.com/Azure/go-autorest/autorest/to"
"go.uber.org/mock/gomock"
"github.com/sirupsen/logrus"
"go.uber.org/mock/gomock"
"github.com/Azure/ARO-RP/pkg/api"
"github.com/Azure/ARO-RP/pkg/env"

Просмотреть файл

@ -12,8 +12,8 @@ import (
mgmtnetwork "github.com/Azure/azure-sdk-for-go/services/network/mgmt/2020-08-01/network"
mgmtfeatures "github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2019-07-01/features"
"github.com/Azure/go-autorest/autorest/to"
"go.uber.org/mock/gomock"
"github.com/sirupsen/logrus"
"go.uber.org/mock/gomock"
"github.com/Azure/ARO-RP/pkg/api"
mock_features "github.com/Azure/ARO-RP/pkg/util/mocks/azureclient/mgmt/features"

Просмотреть файл

@ -10,8 +10,8 @@ import (
mgmtnetwork "github.com/Azure/azure-sdk-for-go/services/network/mgmt/2020-08-01/network"
"github.com/Azure/go-autorest/autorest/to"
"go.uber.org/mock/gomock"
"github.com/sirupsen/logrus"
"go.uber.org/mock/gomock"
"github.com/Azure/ARO-RP/pkg/api"
mock_network "github.com/Azure/ARO-RP/pkg/util/mocks/azureclient/mgmt/network"

Просмотреть файл

@ -14,8 +14,8 @@ import (
mgmtnetwork "github.com/Azure/azure-sdk-for-go/services/network/mgmt/2020-08-01/network"
mgmtfeatures "github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2019-07-01/features"
"github.com/Azure/go-autorest/autorest/to"
"go.uber.org/mock/gomock"
"github.com/sirupsen/logrus"
"go.uber.org/mock/gomock"
"github.com/Azure/ARO-RP/pkg/api"
"github.com/Azure/ARO-RP/pkg/util/azureclient"

Просмотреть файл

@ -11,8 +11,8 @@ import (
"testing"
"github.com/go-test/deep"
"go.uber.org/mock/gomock"
"github.com/sirupsen/logrus"
"go.uber.org/mock/gomock"
"github.com/Azure/ARO-RP/pkg/api"
mock_compute "github.com/Azure/ARO-RP/pkg/util/mocks/azureclient/mgmt/compute"

Просмотреть файл

@ -11,9 +11,9 @@ import (
"testing"
"github.com/Azure/go-autorest/autorest/to"
"go.uber.org/mock/gomock"
operatorv1fake "github.com/openshift/client-go/operator/clientset/versioned/typed/operator/v1/fake"
"github.com/ugorji/go/codec"
"go.uber.org/mock/gomock"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"

Просмотреть файл

@ -15,10 +15,10 @@ import (
"testing"
"github.com/go-chi/chi/v5"
"go.uber.org/mock/gomock"
"github.com/onsi/gomega"
"github.com/onsi/gomega/types"
"github.com/sirupsen/logrus"
"go.uber.org/mock/gomock"
kerrors "k8s.io/apimachinery/pkg/api/errors"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"

Просмотреть файл

@ -10,8 +10,8 @@ import (
"strings"
"testing"
"go.uber.org/mock/gomock"
"github.com/sirupsen/logrus"
"go.uber.org/mock/gomock"
"github.com/Azure/ARO-RP/pkg/api"
"github.com/Azure/ARO-RP/pkg/env"

Просмотреть файл

@ -12,8 +12,8 @@ import (
"testing"
"time"
"go.uber.org/mock/gomock"
"github.com/sirupsen/logrus"
"go.uber.org/mock/gomock"
"github.com/Azure/ARO-RP/pkg/api"
"github.com/Azure/ARO-RP/pkg/database"

Просмотреть файл

@ -17,8 +17,8 @@ import (
"testing"
"github.com/go-test/deep"
"go.uber.org/mock/gomock"
"github.com/sirupsen/logrus"
"go.uber.org/mock/gomock"
"github.com/Azure/ARO-RP/pkg/api"
"github.com/Azure/ARO-RP/pkg/database"

Просмотреть файл

@ -9,9 +9,9 @@ import (
"time"
"github.com/Azure/go-autorest/autorest/azure"
"go.uber.org/mock/gomock"
"github.com/pires/go-proxyproto"
"github.com/sirupsen/logrus"
"go.uber.org/mock/gomock"
"github.com/Azure/ARO-RP/pkg/api"
"github.com/Azure/ARO-RP/pkg/util/azureclient"

Просмотреть файл

@ -8,8 +8,8 @@ import (
"net/http"
"testing"
"go.uber.org/mock/gomock"
"github.com/sirupsen/logrus"
"go.uber.org/mock/gomock"
mock_metrics "github.com/Azure/ARO-RP/pkg/util/mocks/metrics"
utilerror "github.com/Azure/ARO-RP/test/util/error"

Просмотреть файл

@ -18,8 +18,8 @@ import (
"github.com/Azure/azure-sdk-for-go/sdk/azcore"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v2"
"go.uber.org/mock/gomock"
"github.com/sirupsen/logrus"
"go.uber.org/mock/gomock"
"github.com/Azure/ARO-RP/pkg/api"
"github.com/Azure/ARO-RP/pkg/monitor/dimension"

Просмотреть файл

@ -7,8 +7,8 @@ import (
"context"
"testing"
"go.uber.org/mock/gomock"
operatorv1 "github.com/openshift/api/operator/v1"
"go.uber.org/mock/gomock"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
arov1alpha1 "github.com/Azure/ARO-RP/pkg/operator/apis/aro.openshift.io/v1alpha1"

Просмотреть файл

@ -7,10 +7,10 @@ import (
"testing"
"time"
"go.uber.org/mock/gomock"
configv1 "github.com/openshift/api/config/v1"
operatorv1 "github.com/openshift/api/operator/v1"
configfake "github.com/openshift/client-go/config/clientset/versioned/fake"
"go.uber.org/mock/gomock"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
fakeClient "k8s.io/client-go/kubernetes/fake"

Просмотреть файл

@ -7,9 +7,9 @@ import (
"context"
"testing"
"go.uber.org/mock/gomock"
configv1 "github.com/openshift/api/config/v1"
configfake "github.com/openshift/client-go/config/clientset/versioned/fake"
"go.uber.org/mock/gomock"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
mock_metrics "github.com/Azure/ARO-RP/pkg/util/mocks/metrics"

Просмотреть файл

@ -7,9 +7,9 @@ import (
"context"
"testing"
"go.uber.org/mock/gomock"
configv1 "github.com/openshift/api/config/v1"
configfake "github.com/openshift/client-go/config/clientset/versioned/fake"
"go.uber.org/mock/gomock"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
mock_metrics "github.com/Azure/ARO-RP/pkg/util/mocks/metrics"

Просмотреть файл

@ -7,9 +7,9 @@ import (
"context"
"testing"
"go.uber.org/mock/gomock"
configv1 "github.com/openshift/api/config/v1"
configfake "github.com/openshift/client-go/config/clientset/versioned/fake"
"go.uber.org/mock/gomock"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
mock_metrics "github.com/Azure/ARO-RP/pkg/util/mocks/metrics"

Просмотреть файл

@ -7,9 +7,9 @@ import (
"context"
"testing"
"go.uber.org/mock/gomock"
configv1 "github.com/openshift/api/config/v1"
configfake "github.com/openshift/client-go/config/clientset/versioned/fake"
"go.uber.org/mock/gomock"
appsv1 "k8s.io/api/apps/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/client-go/kubernetes/fake"

Просмотреть файл

@ -8,11 +8,11 @@ import (
"fmt"
"testing"
"go.uber.org/mock/gomock"
hivev1 "github.com/openshift/hive/apis/hive/v1"
"github.com/sirupsen/logrus"
"github.com/sirupsen/logrus/hooks/test"
"github.com/stretchr/testify/assert"
"go.uber.org/mock/gomock"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
kruntime "k8s.io/apimachinery/pkg/runtime"

Просмотреть файл

@ -7,9 +7,9 @@ import (
"context"
"testing"
"go.uber.org/mock/gomock"
mcv1 "github.com/openshift/machine-config-operator/pkg/apis/machineconfiguration.openshift.io/v1"
mcofake "github.com/openshift/machine-config-operator/pkg/generated/clientset/versioned/fake"
"go.uber.org/mock/gomock"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
kruntime "k8s.io/apimachinery/pkg/runtime"

Просмотреть файл

@ -7,9 +7,9 @@ import (
"context"
"testing"
"go.uber.org/mock/gomock"
mcv1 "github.com/openshift/machine-config-operator/pkg/apis/machineconfiguration.openshift.io/v1"
mcofake "github.com/openshift/machine-config-operator/pkg/generated/clientset/versioned/fake"
"go.uber.org/mock/gomock"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"

Просмотреть файл

@ -8,11 +8,11 @@ import (
"encoding/json"
"testing"
"go.uber.org/mock/gomock"
machinev1beta1 "github.com/openshift/api/machine/v1beta1"
machineclient "github.com/openshift/client-go/machine/clientset/versioned"
machinefake "github.com/openshift/client-go/machine/clientset/versioned/fake"
"github.com/sirupsen/logrus"
"go.uber.org/mock/gomock"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
kruntime "k8s.io/apimachinery/pkg/runtime"

Просмотреть файл

@ -7,10 +7,10 @@ import (
"context"
"testing"
"go.uber.org/mock/gomock"
"github.com/sirupsen/logrus"
"github.com/sirupsen/logrus/hooks/test"
"github.com/stretchr/testify/assert"
"go.uber.org/mock/gomock"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/client-go/kubernetes/fake"

Просмотреть файл

@ -8,9 +8,9 @@ import (
"testing"
"time"
"go.uber.org/mock/gomock"
configv1 "github.com/openshift/api/config/v1"
configfake "github.com/openshift/client-go/config/clientset/versioned/fake"
"go.uber.org/mock/gomock"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/client-go/kubernetes/fake"

Просмотреть файл

@ -12,8 +12,8 @@ import (
"github.com/Azure/azure-sdk-for-go/sdk/azcore/policy"
"github.com/Azure/go-autorest/autorest/azure"
jwt "github.com/golang-jwt/jwt/v4"
"go.uber.org/mock/gomock"
"github.com/sirupsen/logrus"
"go.uber.org/mock/gomock"
"github.com/Azure/ARO-RP/pkg/util/azureclient"
mock_dynamic "github.com/Azure/ARO-RP/pkg/util/mocks/dynamic"

Просмотреть файл

@ -8,12 +8,12 @@ import (
"io"
"testing"
"go.uber.org/mock/gomock"
configv1 "github.com/openshift/api/config/v1"
mcv1 "github.com/openshift/machine-config-operator/pkg/apis/machineconfiguration.openshift.io/v1"
"github.com/sirupsen/logrus"
logtest "github.com/sirupsen/logrus/hooks/test"
"github.com/stretchr/testify/assert"
"go.uber.org/mock/gomock"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
ctrl "sigs.k8s.io/controller-runtime"
"sigs.k8s.io/controller-runtime/pkg/client"

Просмотреть файл

@ -8,10 +8,10 @@ import (
"io"
"testing"
"go.uber.org/mock/gomock"
"github.com/sirupsen/logrus"
logtest "github.com/sirupsen/logrus/hooks/test"
"github.com/stretchr/testify/assert"
"go.uber.org/mock/gomock"
ctrl "sigs.k8s.io/controller-runtime"
"sigs.k8s.io/controller-runtime/pkg/client"
ctrlfake "sigs.k8s.io/controller-runtime/pkg/client/fake"

Просмотреть файл

@ -12,11 +12,11 @@ import (
"testing"
"github.com/go-test/deep"
"go.uber.org/mock/gomock"
configv1 "github.com/openshift/api/config/v1"
operatorv1 "github.com/openshift/api/operator/v1"
securityv1 "github.com/openshift/api/security/v1"
"github.com/sirupsen/logrus"
"go.uber.org/mock/gomock"
appsv1 "k8s.io/api/apps/v1"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"

Просмотреть файл

@ -9,8 +9,8 @@ import (
"testing"
"time"
"go.uber.org/mock/gomock"
"github.com/sirupsen/logrus"
"go.uber.org/mock/gomock"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
ctrlfake "sigs.k8s.io/controller-runtime/pkg/client/fake"
"sigs.k8s.io/controller-runtime/pkg/reconcile"

Просмотреть файл

@ -9,11 +9,11 @@ import (
"testing"
"time"
"go.uber.org/mock/gomock"
configv1 "github.com/openshift/api/config/v1"
machinev1beta1 "github.com/openshift/api/machine/v1beta1"
operatorv1 "github.com/openshift/api/operator/v1"
"github.com/sirupsen/logrus"
"go.uber.org/mock/gomock"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
kruntime "k8s.io/apimachinery/pkg/runtime"
ctrl "sigs.k8s.io/controller-runtime"

Просмотреть файл

@ -9,9 +9,9 @@ import (
"testing"
"time"
"go.uber.org/mock/gomock"
configv1 "github.com/openshift/api/config/v1"
"github.com/sirupsen/logrus"
"go.uber.org/mock/gomock"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
ctrlfake "sigs.k8s.io/controller-runtime/pkg/client/fake"

Просмотреть файл

@ -13,9 +13,9 @@ import (
mgmtstorage "github.com/Azure/azure-sdk-for-go/services/storage/mgmt/2021-09-01/storage"
"github.com/Azure/go-autorest/autorest"
"github.com/Azure/go-autorest/autorest/to"
"go.uber.org/mock/gomock"
imageregistryv1 "github.com/openshift/api/imageregistry/v1"
"github.com/sirupsen/logrus"
"go.uber.org/mock/gomock"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"sigs.k8s.io/controller-runtime/pkg/client/fake"

Просмотреть файл

@ -13,8 +13,8 @@ import (
mgmtnetwork "github.com/Azure/azure-sdk-for-go/services/network/mgmt/2020-08-01/network"
"github.com/Azure/go-autorest/autorest"
"github.com/Azure/go-autorest/autorest/to"
"go.uber.org/mock/gomock"
"github.com/sirupsen/logrus"
"go.uber.org/mock/gomock"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"sigs.k8s.io/controller-runtime/pkg/client/fake"

Просмотреть файл

@ -8,8 +8,8 @@ import (
"reflect"
"testing"
"go.uber.org/mock/gomock"
mcv1 "github.com/openshift/machine-config-operator/pkg/apis/machineconfiguration.openshift.io/v1"
"go.uber.org/mock/gomock"
kerrors "k8s.io/apimachinery/pkg/api/errors"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
kruntime "k8s.io/apimachinery/pkg/runtime"

Просмотреть файл

@ -10,8 +10,8 @@ import (
"testing"
"time"
"go.uber.org/mock/gomock"
configv1 "github.com/openshift/api/config/v1"
"go.uber.org/mock/gomock"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
ctrl "sigs.k8s.io/controller-runtime"
ctrlfake "sigs.k8s.io/controller-runtime/pkg/client/fake"

Просмотреть файл

@ -9,11 +9,11 @@ import (
"reflect"
"testing"
"go.uber.org/mock/gomock"
configv1 "github.com/openshift/api/config/v1"
operatorv1 "github.com/openshift/api/operator/v1"
operatorfake "github.com/openshift/client-go/operator/clientset/versioned/fake"
"github.com/sirupsen/logrus"
"go.uber.org/mock/gomock"
appsv1 "k8s.io/api/apps/v1"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"

Просмотреть файл

@ -12,8 +12,8 @@ import (
"reflect"
"testing"
"go.uber.org/mock/gomock"
"github.com/gorilla/mux"
"go.uber.org/mock/gomock"
"github.com/Azure/ARO-RP/pkg/api"
"github.com/Azure/ARO-RP/pkg/database/cosmosdb"

Просмотреть файл

@ -15,8 +15,8 @@ import (
"net/http/httputil"
"testing"
"go.uber.org/mock/gomock"
"github.com/gorilla/mux"
"go.uber.org/mock/gomock"
clientcmdv1 "k8s.io/client-go/tools/clientcmd/api/v1"
"github.com/Azure/ARO-RP/pkg/api"

Просмотреть файл

@ -19,9 +19,9 @@ import (
"github.com/form3tech-oss/jwt-go"
"github.com/go-test/deep"
"go.uber.org/mock/gomock"
"github.com/gorilla/mux"
"github.com/gorilla/securecookie"
"go.uber.org/mock/gomock"
"golang.org/x/oauth2"
"github.com/Azure/ARO-RP/pkg/util/azureclient"

Просмотреть файл

@ -13,10 +13,10 @@ import (
"strings"
"testing"
"go.uber.org/mock/gomock"
"github.com/onsi/gomega"
"github.com/onsi/gomega/types"
"github.com/sirupsen/logrus"
"go.uber.org/mock/gomock"
"github.com/Azure/ARO-RP/pkg/util/azureclient"
"github.com/Azure/ARO-RP/pkg/util/log/audit"

Просмотреть файл

@ -20,9 +20,9 @@ import (
"sync"
"testing"
"go.uber.org/mock/gomock"
"github.com/gorilla/mux"
"github.com/sirupsen/logrus"
"go.uber.org/mock/gomock"
corev1 "k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/util/httpstream"
"k8s.io/apimachinery/pkg/util/httpstream/spdy"

Просмотреть файл

@ -15,10 +15,10 @@ import (
"testing"
"time"
"go.uber.org/mock/gomock"
"github.com/gorilla/securecookie"
"github.com/gorilla/sessions"
"github.com/sirupsen/logrus"
"go.uber.org/mock/gomock"
"k8s.io/utils/strings/slices"
"github.com/Azure/ARO-RP/pkg/database"

Просмотреть файл

@ -14,11 +14,11 @@ import (
"strings"
"testing"
"go.uber.org/mock/gomock"
"github.com/gorilla/mux"
"github.com/onsi/gomega"
"github.com/onsi/gomega/types"
"github.com/sirupsen/logrus"
"go.uber.org/mock/gomock"
cryptossh "golang.org/x/crypto/ssh"
"github.com/Azure/ARO-RP/pkg/api"

Просмотреть файл

@ -12,9 +12,9 @@ import (
"strings"
"testing"
"go.uber.org/mock/gomock"
"github.com/gorilla/mux"
"github.com/sirupsen/logrus"
"go.uber.org/mock/gomock"
cryptossh "golang.org/x/crypto/ssh"
"golang.org/x/crypto/ssh/knownhosts"

Просмотреть файл

@ -10,8 +10,8 @@ import (
mgmtfeatures "github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2019-07-01/features"
"github.com/Azure/go-autorest/autorest"
"github.com/Azure/go-autorest/autorest/azure"
"go.uber.org/mock/gomock"
"github.com/sirupsen/logrus"
"go.uber.org/mock/gomock"
"k8s.io/apimachinery/pkg/util/wait"
mock_features "github.com/Azure/ARO-RP/pkg/util/mocks/azureclient/mgmt/features"

Просмотреть файл

@ -10,8 +10,8 @@ import (
"strings"
"testing"
"go.uber.org/mock/gomock"
"github.com/sirupsen/logrus"
"go.uber.org/mock/gomock"
"github.com/Azure/ARO-RP/pkg/api"
mock_env "github.com/Azure/ARO-RP/pkg/util/mocks/env"

Просмотреть файл

@ -9,8 +9,8 @@ import (
"sync"
"testing"
"go.uber.org/mock/gomock"
"github.com/sirupsen/logrus"
"go.uber.org/mock/gomock"
"github.com/Azure/ARO-RP/pkg/api"
mock_clusterdata "github.com/Azure/ARO-RP/pkg/util/mocks/clusterdata"

Просмотреть файл

@ -10,13 +10,13 @@ import (
mgmtprivatedns "github.com/Azure/azure-sdk-for-go/services/privatedns/mgmt/2018-09-01/privatedns"
"github.com/Azure/go-autorest/autorest/to"
"go.uber.org/mock/gomock"
configv1 "github.com/openshift/api/config/v1"
configclient "github.com/openshift/client-go/config/clientset/versioned"
configfake "github.com/openshift/client-go/config/clientset/versioned/fake"
mcv1 "github.com/openshift/machine-config-operator/pkg/apis/machineconfiguration.openshift.io/v1"
mcoclient "github.com/openshift/machine-config-operator/pkg/generated/clientset/versioned"
mcofake "github.com/openshift/machine-config-operator/pkg/generated/clientset/versioned/fake"
"go.uber.org/mock/gomock"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/client-go/kubernetes"

Просмотреть файл

@ -9,10 +9,10 @@ import (
"testing"
"time"
"go.uber.org/mock/gomock"
"github.com/onsi/gomega"
"github.com/onsi/gomega/types"
"github.com/sirupsen/logrus"
"go.uber.org/mock/gomock"
"k8s.io/apimachinery/pkg/util/wait"
utilerror "github.com/Azure/ARO-RP/test/util/error"

Просмотреть файл

@ -14,8 +14,8 @@ import (
"github.com/Azure/go-autorest/autorest"
"github.com/Azure/go-autorest/autorest/azure"
"github.com/Azure/go-autorest/autorest/to"
"go.uber.org/mock/gomock"
"github.com/sirupsen/logrus"
"go.uber.org/mock/gomock"
"github.com/Azure/ARO-RP/pkg/api"
"github.com/Azure/ARO-RP/pkg/util/azureclient"

Просмотреть файл

@ -14,8 +14,8 @@ import (
mgmtnetwork "github.com/Azure/azure-sdk-for-go/services/network/mgmt/2020-08-01/network"
"github.com/Azure/go-autorest/autorest/azure"
"github.com/Azure/go-autorest/autorest/to"
"go.uber.org/mock/gomock"
"github.com/sirupsen/logrus"
"go.uber.org/mock/gomock"
"github.com/Azure/ARO-RP/pkg/api"
"github.com/Azure/ARO-RP/pkg/util/azureclient"

Просмотреть файл

@ -10,8 +10,8 @@ import (
mgmtcompute "github.com/Azure/azure-sdk-for-go/services/compute/mgmt/2020-06-01/compute"
"github.com/Azure/go-autorest/autorest/to"
"go.uber.org/mock/gomock"
"github.com/sirupsen/logrus"
"go.uber.org/mock/gomock"
"github.com/Azure/ARO-RP/pkg/api"
mock_env "github.com/Azure/ARO-RP/pkg/util/mocks/env"

Просмотреть файл

@ -10,8 +10,8 @@ import (
mgmtnetwork "github.com/Azure/azure-sdk-for-go/services/network/mgmt/2020-08-01/network"
"github.com/Azure/go-autorest/autorest/to"
"go.uber.org/mock/gomock"
"github.com/sirupsen/logrus"
"go.uber.org/mock/gomock"
"github.com/Azure/ARO-RP/pkg/api"
mock_network "github.com/Azure/ARO-RP/pkg/util/mocks/azureclient/mgmt/network"

Просмотреть файл

@ -11,8 +11,8 @@ import (
"testing"
sdkauthorization "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/authorization/armauthorization/v3"
"go.uber.org/mock/gomock"
"github.com/sirupsen/logrus"
"go.uber.org/mock/gomock"
"k8s.io/utils/ptr"
"github.com/Azure/ARO-RP/pkg/api"