From 43042b98dcdccc8f901eb325e540eb5a752c6900 Mon Sep 17 00:00:00 2001 From: Luke Swart Date: Tue, 20 Aug 2024 11:01:03 -0700 Subject: [PATCH] cleanup to use composite literals --- pkg/server/server_test.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pkg/server/server_test.go b/pkg/server/server_test.go index f39cf59ad..bacf858fc 100644 --- a/pkg/server/server_test.go +++ b/pkg/server/server_test.go @@ -907,12 +907,12 @@ func TestAuthenticateVerifierNodeMappingCRD(t *testing.T) { "aws-iam-authenticator:0123456789012:TestNodeRole", []string{"system:nodes", "system:bootstrappers"}, map[string]authenticationv1beta1.ExtraValue{ - "arn": authenticationv1beta1.ExtraValue{"arn:aws:iam::0123456789012:role/TestNodeRole"}, - "canonicalArn": authenticationv1beta1.ExtraValue{"arn:aws:iam::0123456789012:role/TestNodeRole"}, - "sessionName": authenticationv1beta1.ExtraValue{"i-0c6f21bf1f24f9708"}, - "accessKeyId": authenticationv1beta1.ExtraValue{""}, - "principalId": authenticationv1beta1.ExtraValue{"TestNodeRole"}, - "sigs.k8s.io/aws-iam-authenticator/principalId": authenticationv1beta1.ExtraValue{"TestNodeRole"}, + "arn": {"arn:aws:iam::0123456789012:role/TestNodeRole"}, + "canonicalArn": {"arn:aws:iam::0123456789012:role/TestNodeRole"}, + "sessionName": {"i-0c6f21bf1f24f9708"}, + "accessKeyId": {""}, + "principalId": {"TestNodeRole"}, + "sigs.k8s.io/aws-iam-authenticator/principalId": {"TestNodeRole"}, })) validateMetrics(t, validateOpts{success: 1})