Skip to content

Commit

Permalink
Add s3 and secretsmanager source creation test
Browse files Browse the repository at this point in the history
  • Loading branch information
Julien Duchesne committed Jul 29, 2019
1 parent 7229ef1 commit a4fc538
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
6 changes: 6 additions & 0 deletions credentials/source_s3_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down
5 changes: 5 additions & 0 deletions credentials/source_secretsmanager_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit a4fc538

Please sign in to comment.