From a4fc538fe7fa5c0d8abe6866eb0281ce2fb72716 Mon Sep 17 00:00:00 2001 From: Julien Duchesne Date: Mon, 29 Jul 2019 19:53:07 -0400 Subject: [PATCH] Add s3 and secretsmanager source creation test --- credentials/source_s3_test.go | 6 ++++++ credentials/source_secretsmanager_test.go | 5 +++++ 2 files changed, 11 insertions(+) diff --git a/credentials/source_s3_test.go b/credentials/source_s3_test.go index 1e7e1a9..d005b3b 100644 --- a/credentials/source_s3_test.go +++ b/credentials/source_s3_test.go @@ -17,6 +17,12 @@ const ( s3Key = "a/key" ) + +func TestCreateS3Source(t *testing.T) { + s3Source := &AWSS3Source{} + assert.NotNil(t, s3Source.getClient()) +} + func TestS3SourceValidate(t *testing.T) { t.Parallel() diff --git a/credentials/source_secretsmanager_test.go b/credentials/source_secretsmanager_test.go index 28a6248..cb3e9ba 100644 --- a/credentials/source_secretsmanager_test.go +++ b/credentials/source_secretsmanager_test.go @@ -31,6 +31,11 @@ var expectedSecretsManagerCredentials = func() []Credentials { return append(testCredentials, expectedCred) }() +func TestCreateSecretsManagerSource(t *testing.T) { + secretsManagerSource := &AWSSecretsManagerSource{} + assert.NotNil(t, secretsManagerSource.getClient()) +} + func TestSecretsManagerSourceValidate(t *testing.T) { t.Parallel()