Update tests and refactor code 85/31885/5
authorShashank Kumar Shankar <shashank.kumar.shankar@intel.com>
Thu, 15 Feb 2018 22:48:19 +0000 (14:48 -0800)
committerShashank Kumar Shankar <shashank.kumar.shankar@intel.com>
Wed, 21 Feb 2018 21:51:08 +0000 (13:51 -0800)
commit3e92cb38f9be554afccf7ac409dfbedbeec769a2
treeb09247734194975c161987e06d7e1aa0abf8ae24
parent88a7fd4b899bbd1230852be63e380ce843dec338
Update tests and refactor code

This patch adds some more tests and refactors the
codebase.

Change-Id: Iee669b85c5c7f9bdd01271fe86df20506f567d23
Issue-ID: MUSIC-23
Signed-off-by: Shashank Kumar Shankar <shashank.kumar.shankar@intel.com>
12 files changed:
src/dkv/Gopkg.lock
src/dkv/api/consulConnection.go
src/dkv/api/consulConnection_test.go
src/dkv/api/endpointViews.go
src/dkv/api/endpointViews_fake.go [new file with mode: 0644]
src/dkv/api/endpointViews_test.go
src/dkv/api/initialise.go [new file with mode: 0644]
src/dkv/api/initialise_test.go [moved from src/dkv/api/utils_test.go with 53% similarity]
src/dkv/api/propertiesReader.go
src/dkv/api/utils.go [deleted file]
src/dkv/main.go
swagger.json