aboutsummaryrefslogtreecommitdiffstats
path: root/src/k8splugin/internal
diff options
context:
space:
mode:
authorBin Yang <bin.yang@windriver.com>2019-04-26 02:00:05 +0000
committerGerrit Code Review <gerrit@onap.org>2019-04-26 02:00:05 +0000
commite537bbce3040d72f9db2d205f77395d99c62b5e1 (patch)
tree3d01cf33c9cb8f95189a918d00e07196db74f542 /src/k8splugin/internal
parentf60791f567b9879983e16f2ba735f20c9f4532e6 (diff)
parentf405c99e27e7556a31c5a347242e333878b6f10c (diff)
Merge "Adding healthcheck for OOM testing"
Diffstat (limited to 'src/k8splugin/internal')
-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 1fefd63c..5f69dcb4 100644
--- a/src/k8splugin/internal/db/testing.go
+++ b/src/k8splugin/internal/db/testing.go
@@ -35,6 +35,10 @@ type MockDB struct {
Err error
}
+func (m *MockDB) HealthCheck() error {
+ return m.Err
+}
+
func (m *MockDB) Create(table string, key Key, tag string, data interface{}) error {
return m.Err
}