From b6b582d30bf29b6a196e6790897da1ba15522a0f Mon Sep 17 00:00:00 2001 From: Adam Malcontenti-Wilson Date: Tue, 17 Sep 2024 16:20:25 +1000 Subject: [PATCH] fix failing test with invalid mocked input --- pkg/cloud/services/eks/cluster_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/cloud/services/eks/cluster_test.go b/pkg/cloud/services/eks/cluster_test.go index bebc8fe23b..b9c95c6946 100644 --- a/pkg/cloud/services/eks/cluster_test.go +++ b/pkg/cloud/services/eks/cluster_test.go @@ -853,6 +853,7 @@ func TestCreateIPv6Cluster(t *testing.T) { eksMock.EXPECT().CreateCluster(&eks.CreateClusterInput{ Name: aws.String("cluster-name"), Version: aws.String("1.22"), + RoleArn: aws.String("arn:role"), EncryptionConfig: []*eks.EncryptionConfig{ { Provider: &eks.Provider{ @@ -875,6 +876,7 @@ func TestCreateIPv6Cluster(t *testing.T) { RoleName: aws.String("arn-role"), }).Return(&iam.GetRoleOutput{ Role: &iam.Role{ + Arn: aws.String("arn:role"), RoleName: ptr.To[string]("arn-role"), }, }, nil)