From f405c99e27e7556a31c5a347242e333878b6f10c Mon Sep 17 00:00:00 2001 From: Kiran Kamineni Date: Wed, 24 Apr 2019 17:23:22 -0700 Subject: Adding healthcheck for OOM testing Add a heathcheck endpoint for OOM testing Issue-ID: ONAPARC-363 Change-Id: Id5f77478d331fedb19ac162389d95852e10c5022 Signed-off-by: Kiran Kamineni --- src/k8splugin/internal/db/testing.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/k8splugin/internal/db/testing.go') 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 } -- cgit 1.2.3-korg