Skip to content

Commit 7b18d12

Browse files
committed
fixed linting issue
1 parent a764d67 commit 7b18d12

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

core/auth/auth_test.go

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -457,16 +457,14 @@ func TestKeyAuth(t *testing.T) {
457457
expectedPrivateKey: string(configuredPrivateKey),
458458
isValid: true,
459459
homeDir: func(t *testing.T) string { return t.TempDir() },
460-
461460
},
462461
{
463462
desc: "included_private_key",
464463
serviceAccountKey: fixtureServiceAccountKey(),
465464
includedPrivateKey: &includedPrivateKey,
466465
expectedPrivateKey: includedPrivateKey,
467466
isValid: true,
468-
homeDir: func(t *testing.T) string { return t.TempDir() },
469-
467+
homeDir: func(t *testing.T) string { return t.TempDir() },
470468
},
471469
{
472470
desc: "empty_configured_use_included_private_key",
@@ -476,7 +474,6 @@ func TestKeyAuth(t *testing.T) {
476474
expectedPrivateKey: includedPrivateKey,
477475
isValid: true,
478476
homeDir: func(t *testing.T) string { return t.TempDir() },
479-
480477
},
481478
{
482479
desc: "configured_over_included_private_key",
@@ -486,7 +483,6 @@ func TestKeyAuth(t *testing.T) {
486483
expectedPrivateKey: configuredPrivateKey,
487484
isValid: true,
488485
homeDir: func(t *testing.T) string { return t.TempDir() },
489-
490486
},
491487
{
492488
desc: "no_sa_key",
@@ -816,15 +812,15 @@ func TestGetServiceAccountKey(t *testing.T) {
816812
envServiceAccountKeyPathSet: true,
817813
wantErr: false,
818814
expectedKey: "key",
819-
userHomeDir: func(t *testing.T) string { return t.TempDir() },
815+
userHomeDir: func(t *testing.T) string { return t.TempDir() },
820816
},
821817
{
822818
name: "credentials_file_sa_key_path",
823819
cfg: &config.Configuration{},
824820
credentialsFilePath: "test_resources/test_credentials_foo.json",
825821
wantErr: false,
826822
expectedKey: "foo_key",
827-
userHomeDir: func(t *testing.T) string { return t.TempDir() },
823+
userHomeDir: func(t *testing.T) string { return t.TempDir() },
828824
},
829825
{
830826
name: "cfg_sa_key_precedes_path",
@@ -844,7 +840,7 @@ func TestGetServiceAccountKey(t *testing.T) {
844840
envServiceAccountKeyPathSet: true,
845841
wantErr: false,
846842
expectedKey: "cfg_key",
847-
userHomeDir: func(t *testing.T) string { return t.TempDir() },
843+
userHomeDir: func(t *testing.T) string { return t.TempDir() },
848844
},
849845
{
850846
name: "cfg_sa_key_precedes_creds_file",
@@ -854,15 +850,15 @@ func TestGetServiceAccountKey(t *testing.T) {
854850
credentialsFilePath: "test_resources/test_credentials_foo.json",
855851
wantErr: false,
856852
expectedKey: "cfg_key",
857-
userHomeDir: func(t *testing.T) string { return t.TempDir() },
853+
userHomeDir: func(t *testing.T) string { return t.TempDir() },
858854
},
859855
{
860856
name: "env_sa_key_precedes_creds_file",
861857
cfg: &config.Configuration{},
862858
envServiceAccountKeyPathSet: true,
863859
credentialsFilePath: "test_resources/test_credentials_foo.json",
864860
wantErr: false,
865-
userHomeDir: func(t *testing.T) string { return t.TempDir() },
861+
userHomeDir: func(t *testing.T) string { return t.TempDir() },
866862
expectedKey: "key",
867863
},
868864
{

0 commit comments

Comments
 (0)