From 623a7d5952b77a76f4bf122f3e057fd2249bc99d Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 14 Apr 2025 22:47:59 +0000 Subject: deps(actions): Bump golangci/golangci-lint-action from 6 to 7 (#2357) * deps(actions): Bump golangci/golangci-lint-action from 6 to 7 Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action) from 6 to 7. - [Release notes](https://github.com/golangci/golangci-lint-action/releases) - [Commits](https://github.com/golangci/golangci-lint-action/compare/v6...v7) --- updated-dependencies: - dependency-name: golangci/golangci-lint-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] * fix(lint): Fixing new lint errors Signed-off-by: Dave Henderson --------- Signed-off-by: dependabot[bot] Signed-off-by: Dave Henderson Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Dave Henderson --- aws/ec2info_test.go | 2 +- aws/kms_test.go | 4 ++-- aws/sts_test.go | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) (limited to 'aws') diff --git a/aws/ec2info_test.go b/aws/ec2info_test.go index 87db85a3..ddf9e38d 100644 --- a/aws/ec2info_test.go +++ b/aws/ec2info_test.go @@ -104,7 +104,7 @@ func TestTag_NonEC2(t *testing.T) { cache: make(map[string]any), } - assert.Equal(t, "", must(e.Tag("foo"))) + assert.Empty(t, must(e.Tag("foo"))) assert.Equal(t, "default", must(e.Tag("foo", "default"))) } diff --git a/aws/kms_test.go b/aws/kms_test.go index f40c1fec..a24482ed 100644 --- a/aws/kms_test.go +++ b/aws/kms_test.go @@ -37,7 +37,7 @@ func TestEncrypt(t *testing.T) { resp, err := kmsClient.Encrypt("dummykey", "plaintextvalue") require.NoError(t, err) expectedResp, _ := b64.Encode([]byte("PLAINTEXTVALUE")) - assert.EqualValues(t, expectedResp, resp) + assert.Equal(t, expectedResp, resp) } func TestDecrypt(t *testing.T) { @@ -49,5 +49,5 @@ func TestDecrypt(t *testing.T) { // Success resp, err := kmsClient.Decrypt(encodedCiphertextBlob) require.NoError(t, err) - assert.EqualValues(t, "ciphervalue", resp) + assert.Equal(t, "ciphervalue", resp) } diff --git a/aws/sts_test.go b/aws/sts_test.go index 6ce3be54..485d86a7 100644 --- a/aws/sts_test.go +++ b/aws/sts_test.go @@ -24,7 +24,7 @@ func TestNewSTS(t *testing.T) { out, err := s.getCallerID() require.NoError(t, err) - assert.EqualValues(t, &sts.GetCallerIdentityOutput{ + assert.Equal(t, &sts.GetCallerIdentityOutput{ Account: aws.String("acct"), Arn: aws.String("arn"), UserId: aws.String("uid"), @@ -46,7 +46,7 @@ func TestNewSTS(t *testing.T) { out, err = s.getCallerID() require.NoError(t, err) - assert.EqualValues(t, &sts.GetCallerIdentityOutput{ + assert.Equal(t, &sts.GetCallerIdentityOutput{ Account: aws.String("acct"), Arn: aws.String("arn"), UserId: aws.String("uid"), -- cgit v1.2.3