Fix CSIt failure in CLAMP test case 23/129723/2
authorrameshiyer27 <ramesh.murugan.iyer@est.tech>
Thu, 30 Jun 2022 07:54:30 +0000 (08:54 +0100)
committerrameshiyer27 <ramesh.murugan.iyer@est.tech>
Thu, 30 Jun 2022 14:39:36 +0000 (15:39 +0100)
commite50b122534039adf8227bae1739793e53c397f64
tree8724362dea546382aaa03f1164e4a6b52ac65830
parenta49eb94567481ccdaa41bacbc9522da247ba4f59
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
participant/participant-impl/participant-impl-policy/src/main/java/org/onap/policy/clamp/acm/participant/policy/main/handler/AutomationCompositionElementHandler.java