Disable VnfDeleteValidator for non-alacarte requests. 16/125716/1
authorJozsef Csongvai <jozsef.csongvai@bell.ca>
Tue, 30 Mar 2021 14:06:04 +0000 (10:06 -0400)
committerMichal Grzesik <michal.grzesik@orange.com>
Wed, 17 Nov 2021 11:17:39 +0000 (11:17 +0000)
commitd84cfb0bd5806af231e01ef1bc9271bf25f89ad9
tree91a87fd4f16a21528b4d85f92b8fecfeadbf6fe7
parent4ca055af415aa965426a973d38d9d3b5fe201578
Disable VnfDeleteValidator for non-alacarte requests.

The validator will fail if there are active vf-modules for the vnf.
The downstream vnf-delete macro will delete these vf-modules so the
validator should not apply for this flow.

Change-Id: If45c872e3b06d9dbb925bff21f7643694503c481
Issue-ID: SO-3801
Signed-off-by: Jozsef Csongvai <jozsef.csongvai@bell.ca>
(cherry picked from commit 16785537a48d0ca0847b826226d7d81731dba271)
mso-api-handlers/mso-api-handler-infra/src/main/java/org/onap/so/apihandlerinfra/infra/rest/validators/VnfDeleteValidator.java
mso-api-handlers/mso-api-handler-infra/src/test/java/org/onap/so/apihandlerinfra/infra/rest/validator/VnfDeleteValidatorTest.java