diff options
Diffstat (limited to 'src/dkv/api/backendfakes.go')
-rw-r--r-- | src/dkv/api/backendfakes.go | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/dkv/api/backendfakes.go b/src/dkv/api/backendfakes.go index 5415608..c5ca39a 100644 --- a/src/dkv/api/backendfakes.go +++ b/src/dkv/api/backendfakes.go @@ -73,11 +73,12 @@ type FakeKeyValues struct { KeyValuesStruct } -func (f *FakeKeyValues) ConfigReader(token string, subdomain string, filename string) error { - return nil +func (f *FakeKeyValues) ConfigReader(token string, subdomain string, filename string) (map[string]string, error) { + kvs := make(map[string]string) + return kvs, nil } -func (f *FakeKeyValues) WriteKVsToConsul(token string, subdomain string) error { +func (f *FakeKeyValues) WriteKVsToConsul(token string, subdomain string, kvs map[string]string) error { return nil } @@ -86,11 +87,12 @@ type FakeKeyValuesErr struct { KeyValuesStruct } -func (f *FakeKeyValuesErr) ConfigReader(token string, subdomain string, filename string) error { - return errors.New("Internal Server Error") +func (f *FakeKeyValuesErr) ConfigReader(token string, subdomain string, filename string) (map[string]string, error) { + kvs := make(map[string]string) + return kvs, errors.New("Internal Server Error") } -func (f *FakeKeyValuesErr) WriteKVsToConsul(token string, subdomain string) error { +func (f *FakeKeyValuesErr) WriteKVsToConsul(token string, subdomain string, kvs map[string]string) error { return errors.New("Internal Server Error") } |