Skip to content

Commit

Permalink
Merge pull request #34 from Keloran/feature-add-mock-get-secrets
Browse files Browse the repository at this point in the history
feat: Add GetSecrets method to MockVaultHelper
  • Loading branch information
Keloran authored Jun 30, 2024
2 parents 55041f1 + 8b5231c commit 9a082ee
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions mock.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,14 @@ type MockVaultHelper struct {
Lease int
}

func (m *MockVaultHelper) GetSecrets(path string) error {
if path == "" {
return fmt.Errorf("path not found %s", path)
}

return nil
}

func (m *MockVaultHelper) GetRemoteSecrets(path string) error {
if path == "" {
return fmt.Errorf("path not found: %s", path)
Expand Down

0 comments on commit 9a082ee

Please sign in to comment.