@@ -42,6 +42,7 @@ import (
42
42
"open-cluster-management.io/sdk-go/pkg/patcher"
43
43
44
44
"open-cluster-management.io/ocm/manifests"
45
+ commonhelpers "open-cluster-management.io/ocm/pkg/common/helpers"
45
46
testingcommon "open-cluster-management.io/ocm/pkg/common/testing"
46
47
"open-cluster-management.io/ocm/pkg/operator/helpers"
47
48
testinghelper "open-cluster-management.io/ocm/pkg/operator/helpers/testing"
@@ -1012,7 +1013,7 @@ func TestGetServersFromKlusterlet(t *testing.T) {
1012
1013
func TestAWSIrsaAuthInSingletonModeWithInvalidClusterArns (t * testing.T ) {
1013
1014
klusterlet := newKlusterlet ("klusterlet" , "testns" , "cluster1" )
1014
1015
awsIrsaRegistrationDriver := operatorapiv1.RegistrationDriver {
1015
- AuthType : AwsIrsaAuthType ,
1016
+ AuthType : commonhelpers . AwsIrsaAuthType ,
1016
1017
AwsIrsa : & operatorapiv1.AwsIrsa {
1017
1018
HubClusterArn : "arn:aws:bks:us-west-2:123456789012:cluster/hub-cluster1" ,
1018
1019
ManagedClusterArn : "arn:aws:eks:us-west-2:123456789012:cluster/managed-cluster1" ,
@@ -1043,7 +1044,7 @@ func TestAWSIrsaAuthInSingletonModeWithInvalidClusterArns(t *testing.T) {
1043
1044
func TestAWSIrsaAuthInSingletonMode (t * testing.T ) {
1044
1045
klusterlet := newKlusterlet ("klusterlet" , "testns" , "cluster1" )
1045
1046
awsIrsaRegistrationDriver := operatorapiv1.RegistrationDriver {
1046
- AuthType : AwsIrsaAuthType ,
1047
+ AuthType : commonhelpers . AwsIrsaAuthType ,
1047
1048
AwsIrsa : & operatorapiv1.AwsIrsa {
1048
1049
HubClusterArn : "arn:aws:eks:us-west-2:123456789012:cluster/hub-cluster1" ,
1049
1050
ManagedClusterArn : "arn:aws:eks:us-west-2:123456789012:cluster/managed-cluster1" ,
@@ -1075,7 +1076,7 @@ func TestAWSIrsaAuthInSingletonMode(t *testing.T) {
1075
1076
func TestAWSIrsaAuthInNonSingletonMode (t * testing.T ) {
1076
1077
klusterlet := newKlusterlet ("klusterlet" , "testns" , "cluster1" )
1077
1078
awsIrsaRegistrationDriver := operatorapiv1.RegistrationDriver {
1078
- AuthType : AwsIrsaAuthType ,
1079
+ AuthType : commonhelpers . AwsIrsaAuthType ,
1079
1080
AwsIrsa : & operatorapiv1.AwsIrsa {
1080
1081
HubClusterArn : "arn:aws:eks:us-west-2:123456789012:cluster/hub-cluster1" ,
1081
1082
ManagedClusterArn : "arn:aws:eks:us-west-2:123456789012:cluster/managed-cluster1" ,
0 commit comments