From def02dfebada38bde91dc98db85eff3d8923a923 Mon Sep 17 00:00:00 2001 From: Srivahni Chivukula Date: Fri, 21 Feb 2020 10:08:04 -0800 Subject: Add apps under composite app API Implemented create, get and delete handlers for the apps under composite app. Added unit tests Added remove function to mockdb Handled multipart POST request to upload file along with app data. Issue-ID: MULTICLOUD-998 Signed-off-by: Srivahni Chivukula Change-Id: I25c1faba1212c0cc881c2cd599e8e66a7b93033e --- src/orchestrator/pkg/infra/db/mock.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/orchestrator/pkg/infra/db') diff --git a/src/orchestrator/pkg/infra/db/mock.go b/src/orchestrator/pkg/infra/db/mock.go index 79366d10..e43be8fb 100644 --- a/src/orchestrator/pkg/infra/db/mock.go +++ b/src/orchestrator/pkg/infra/db/mock.go @@ -96,3 +96,7 @@ func (m *MockDB) Find(table string, key Key, tag string) ([][]byte, error) { func (m *MockDB) Delete(table string, key Key, tag string) error { return m.Err } + +func (m *MockDB) Remove(table string, key Key) error { + return m.Err +} -- cgit 1.2.3-korg