Add vnf definition APIs 60/71760/9 casablanca 3.0.0-ONAP
authorKiran Kamineni <kiran.k.kamineni@intel.com>
Wed, 31 Oct 2018 23:24:32 +0000 (16:24 -0700)
committerVictor Morales <victor.morales@intel.com>
Fri, 9 Nov 2018 01:07:59 +0000 (17:07 -0800)
commit7d2d48d3d0b35de0acd03c6e8a1261efd736edc3
treecdfc546b98fbea5df408f620387499984a78469f
parent985a6654725e3931737f1a0831bd3b44a0d99a28
Add vnf definition APIs

Adding APIs for POST, GET, LIST (implemented via GET)
and DELETE commands on /v1/vnfd base for creating,
getting, listing and deleting VNF Definitions.
P2: Added unit tests for vnfdhandler.go
P3: Add unit tests for serialize and deserialize
P4: Integrating review comments
P5: Added customizable mocking for vnfdhandler_test
P6: Added customizablt mocking for vnfd_test
    Note that this will soon need to be updated once
    the db changes go through in patch 71090

Issue-ID: MULTICLOUD-393
Change-Id: Id509bed370ab3bdc572c6ead22324c1ee3dbf82d
Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
Signed-off-by: Victor Morales <victor.morales@intel.com>
13 files changed:
src/k8splugin/api/api.go
src/k8splugin/api/handler.go
src/k8splugin/api/handler_test.go
src/k8splugin/api/vnfdhandler.go [new file with mode: 0644]
src/k8splugin/api/vnfdhandler_test.go [new file with mode: 0644]
src/k8splugin/db/DB.go
src/k8splugin/db/consul.go
src/k8splugin/db/db_test.go
src/k8splugin/go.mod
src/k8splugin/go.sum
src/k8splugin/mock_files/mock_json/create_vnfd.json [new file with mode: 0644]
src/k8splugin/vnfd/vnfd.go [new file with mode: 0644]
src/k8splugin/vnfd/vnfd_test.go [new file with mode: 0644]