Fix failing CSIT and add unit test proving the bug 67/139267/4
authordanielhanrahan <daniel.hanrahan@est.tech>
Thu, 24 Oct 2024 16:11:57 +0000 (17:11 +0100)
committerdanielhanrahan <daniel.hanrahan@est.tech>
Fri, 25 Oct 2024 14:39:13 +0000 (15:39 +0100)
commit873480b2a8f99825353582e9d0d3beae6a5ecbde
tree792c146333bb9d57f9203acfb66a170add84c570
parent2664c776fda2431846447c40aaad98b49da5593a
Fix failing CSIT and add unit test proving the bug

It was determined that one CSIT is intermittently failing due
to a CM-handle being deleted while module sync is in progress,
which causes the whole batch operation to fail. Even CM-handles
that did sync will not go into READY state, despite the logs
saying otherwise. This commit reproduces the issue in a unit test,
and prevents the issue in the CSIT by changing test order. Also,
errors during module sync tasks are reported at ERROR level.
(The actual bug fix will be addressed in another patch.)

Issue-ID: CPS-2474
Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech>
Change-Id: I7e0d617cbd48d8fd1fad036079fbd876ee21d8a8
cps-ncmp-service/src/main/java/org/onap/cps/ncmp/impl/inventory/sync/AsyncTaskExecutor.java
cps-ncmp-service/src/test/groovy/org/onap/cps/ncmp/impl/inventory/sync/ModuleSyncTasksSpec.groovy
csit/tests/cps-model-sync/cps-model-sync.robot