1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2024-12-16 11:09:33 +02:00
sap-jenkins-library/pkg/vault/mocks/logicalClient.go
Kevin Stiehl 644f18b491
feat(vault): Added package to get secrets from vault (#1763)
* Added Vault package

* added support for logical path lookups instead of api paths

* added integration tests

* add integration tests and mock tests

* Replace mock with mockery generated one

	* update tests to use mockery
        * create mocks sub package
2020-07-08 08:20:15 +02:00

37 lines
707 B
Go

// Code generated by mockery v2.0.3. DO NOT EDIT.
package mocks
import (
api "github.com/hashicorp/vault/api"
mock "github.com/stretchr/testify/mock"
)
// VaultMock is an autogenerated mock type for the logicalClient type
type VaultMock struct {
mock.Mock
}
// Read provides a mock function with given fields: _a0
func (_m *VaultMock) Read(_a0 string) (*api.Secret, error) {
ret := _m.Called(_a0)
var r0 *api.Secret
if rf, ok := ret.Get(0).(func(string) *api.Secret); ok {
r0 = rf(_a0)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(*api.Secret)
}
}
var r1 error
if rf, ok := ret.Get(1).(func(string) error); ok {
r1 = rf(_a0)
} else {
r1 = ret.Error(1)
}
return r0, r1
}