Check if the bucket exists before deleting VSP 18/128118/1
authorandre.schmid <andre.schmid@est.tech>
Mon, 28 Mar 2022 11:22:31 +0000 (12:22 +0100)
committerandre.schmid <andre.schmid@est.tech>
Mon, 28 Mar 2022 11:36:39 +0000 (12:36 +0100)
commit1a3ddb0a21f2ab6fc3bc6607e35ea2b703192ad9
treef843771e2a502bcd2d9aa3b4e83da3c6130db6cd
parent55401bf89a8bc1c51f76554faac278186560724a
Check if the bucket exists before deleting VSP

Checks if the bucket exists before deleting VSP, ignoring the deletion
if the bucket isn't present anymore.
This avoids problems in case the artifact was already deleted from the
artifact storage, but for some reason the VSP still present in the
system.

Change-Id: I7e88f227cc6786b451ca74519fa0dfe0659895c6
Issue-ID: SDC-3930
Signed-off-by: andre.schmid <andre.schmid@est.tech>
common-be/src/main/java/org/openecomp/sdc/be/csar/storage/MinIoStorageArtifactStorageManager.java
common-be/src/test/java/org/openecomp/sdc/be/csar/storage/MinIoStorageArtifactStorageManagerTest.java