summaryrefslogtreecommitdiffstats
path: root/src/k8splugin/internal/db/testing.go
diff options
context:
space:
mode:
authorBin Yang <bin.yang@windriver.com>2019-03-29 05:17:07 +0000
committerGerrit Code Review <gerrit@onap.org>2019-03-29 05:17:07 +0000
commitb930ac1c8b810662545fb7fdd776a9698e9825b1 (patch)
tree948993fffeaaa1f21cfb030b1370ce5f8e81af6b /src/k8splugin/internal/db/testing.go
parentb2b175eae0f4e8b5b0cb9ccbeeca1e98065feeb5 (diff)
parentb6288d59577dd40d6d19841bf030c45f9ec8aa50 (diff)
Merge "Add update method to db interface"
Diffstat (limited to 'src/k8splugin/internal/db/testing.go')
-rw-r--r--src/k8splugin/internal/db/testing.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/k8splugin/internal/db/testing.go b/src/k8splugin/internal/db/testing.go
index e7e7436a..ded5067c 100644
--- a/src/k8splugin/internal/db/testing.go
+++ b/src/k8splugin/internal/db/testing.go
@@ -41,6 +41,10 @@ func (m *MockDB) Create(table string, key Key, tag string, data interface{}) err
return m.Err
}
+func (m *MockDB) Update(table string, key Key, tag string, data interface{}) error {
+ return m.Err
+}
+
// MockDB uses simple JSON and not BSON
func (m *MockDB) Unmarshal(inp []byte, out interface{}) error {
err := json.Unmarshal(inp, out)