Use httptest instead of http in unit tests 33/82733/2
authorKiran Kamineni <kiran.k.kamineni@intel.com>
Thu, 14 Mar 2019 22:38:13 +0000 (15:38 -0700)
committerKiran Kamineni <kiran.k.kamineni@intel.com>
Fri, 22 Mar 2019 20:44:09 +0000 (13:44 -0700)
commit4cd4539c71919a322180713c225fe23edf0eb12e
treed4dadcf9b98f83dd7edb552b460c6ec177b924cf
parent838ddaa50041ac4c33adeb2c8a33340fdfe2c952
Use httptest instead of http in unit tests

Use httptest instead of http in unit tests similar to:
https://golang.org/pkg/net/http/httptest/#example_ResponseRecorder
Update empty body checking to account for change

Issue-ID: MULTICLOUD-545
Change-Id: Ib9775078c2c9ae2878b714363b569d8d79bd7698
Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
src/k8splugin/api/defhandler.go
src/k8splugin/api/defhandler_test.go
src/k8splugin/api/handler.go
src/k8splugin/api/handler_test.go
src/k8splugin/api/profilehandler.go
src/k8splugin/api/profilehandler_test.go