Fix CSIt failure in CLAMP test case 42/129742/2
authorrameshiyer27 <ramesh.murugan.iyer@est.tech>
Thu, 30 Jun 2022 07:54:30 +0000 (08:54 +0100)
committerRamesh Murugan Iyer <ramesh.murugan.iyer@est.tech>
Fri, 1 Jul 2022 17:09:42 +0000 (17:09 +0000)
commita3c3cb84d944310f047a834901c38a8b6d5b2954
tree8ecdf15a6e8e428cad9716529af7808937b7e03d
parent83af023a891caaffca30aa37e63afb62613adf4b
Fix CSIt failure in CLAMP test case

Policy participant always updates the state of AC element to PASSIVE, irrespective of
success/failure scenarios in policy creation and deployment. This causes
inconsistency in AC overall state and CSIT validation fails.

Verifying the response code from api and pap before updating the AC element state from policy participant.

Issue-ID: POLICY-4270
Signed-off-by: zrrmmua <ramesh.murugan.iyer@est.tech>
Change-Id: I0ecf770d9803e520401ba49cd47c22ac6e4f9c17
(cherry picked from commit e50b122534039adf8227bae1739793e53c397f64)
participant/participant-impl/participant-impl-policy/src/main/java/org/onap/policy/clamp/acm/participant/policy/main/handler/AutomationCompositionElementHandler.java