Make profile key explicit 79/83779/1
authorKiran Kamineni <kiran.k.kamineni@intel.com>
Fri, 29 Mar 2019 23:07:47 +0000 (16:07 -0700)
committerKiran Kamineni <kiran.k.kamineni@intel.com>
Fri, 29 Mar 2019 23:12:19 +0000 (16:12 -0700)
commitf3875e13c7a6675aa980c29580daae42a32eb97f
tree05cbe26f86ce0c3e1f936d724158223d8e522021
parent5f5aabfbaff227c3c134c27ecbd7ecd347f74c09
Make profile key explicit

Using profilename instead of name in the db key
protects it from getting overwritten by anything
else that might use name as a key.
Using explicit key names makes sure that we don't
have to add bson structure tags in the code.

Issue-ID: MULTICLOUD-558
Change-Id: I9bd6f757496af22d8662b0d114f0ef7d33a5784a
Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
src/k8splugin/api/handler_test.go
src/k8splugin/api/profilehandler.go
src/k8splugin/api/profilehandler_test.go
src/k8splugin/internal/app/vnfhelper.go
src/k8splugin/internal/app/vnfhelper_test.go
src/k8splugin/internal/rb/profile.go
src/k8splugin/internal/rb/profile_test.go