Add a couple of sanity checks in DCM 05/113205/1
authorIgor D.C <igor.duarte.cardoso@intel.com>
Sat, 26 Sep 2020 01:55:04 +0000 (01:55 +0000)
committerIgor D.C <igor.duarte.cardoso@intel.com>
Sat, 26 Sep 2020 01:56:19 +0000 (01:56 +0000)
commit20da89d07ad69a2cb067ceb0c416752e558bcf62
treeccfdd709555f5c2564c296c8b37de56f394df4ac
parent8c0cc1278cc4d84863b076b2014b9bc9d8805218
Add a couple of sanity checks in DCM

When applying, check whether logical cloud is already applied.
When deleting logical cloud, check if it exists.

Issue-ID: MULTICLOUD-1143
Change-Id: I6aa11d8921db76e3d9e9632f915b55fe7ab8efab
Signed-off-by: Igor D.C <igor.duarte.cardoso@intel.com>
src/dcm/api/logicalCloudHandler.go
src/dcm/pkg/module/logicalcloud.go
src/dcm/pkg/module/logicalcloud_test.go