Fix unused parameter errors in secret test mock implementations
Rename unused force and passphrase parameters to _ in MockVault interface implementations as they are required by the interface
This commit is contained in:
parent
8ca7796d04
commit
4fe49ca8d0
@ -25,7 +25,7 @@ func (m *MockVault) GetDirectory() (string, error) {
|
|||||||
return m.directory, nil
|
return m.directory, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *MockVault) AddSecret(name string, value []byte, force bool) error {
|
func (m *MockVault) AddSecret(name string, value []byte, _ bool) error {
|
||||||
// Create secret directory with proper storage name conversion
|
// Create secret directory with proper storage name conversion
|
||||||
storageName := strings.ReplaceAll(name, "/", "%")
|
storageName := strings.ReplaceAll(name, "/", "%")
|
||||||
secretDir := filepath.Join(m.directory, "secrets.d", storageName)
|
secretDir := filepath.Join(m.directory, "secrets.d", storageName)
|
||||||
@ -120,7 +120,7 @@ func (m *MockVault) GetCurrentUnlocker() (Unlocker, error) {
|
|||||||
return nil, nil
|
return nil, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *MockVault) CreatePassphraseUnlocker(passphrase string) (*PassphraseUnlocker, error) {
|
func (m *MockVault) CreatePassphraseUnlocker(_ string) (*PassphraseUnlocker, error) {
|
||||||
return nil, nil
|
return nil, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user