From c85228f5b4071f0aee7412ba67a0cfa3031a2e90 Mon Sep 17 00:00:00 2001 From: FrancescoFioraEst Date: Wed, 27 Sep 2023 10:37:28 +0100 Subject: Add migration support in ACM participants Issue-ID: POLICY-4825 Change-Id: Iebdd0b8c4890e9c022f68396f11f7ba8c80bef00 Signed-off-by: FrancescoFioraEst --- .../acm/participant/kserve/handler/AcElementHandlerTest.java | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'participant/participant-impl/participant-impl-kserve/src/test') diff --git a/participant/participant-impl/participant-impl-kserve/src/test/java/org/onap/policy/clamp/acm/participant/kserve/handler/AcElementHandlerTest.java b/participant/participant-impl/participant-impl-kserve/src/test/java/org/onap/policy/clamp/acm/participant/kserve/handler/AcElementHandlerTest.java index 1c1699f23..07dc021b1 100755 --- a/participant/participant-impl/participant-impl-kserve/src/test/java/org/onap/policy/clamp/acm/participant/kserve/handler/AcElementHandlerTest.java +++ b/participant/participant-impl/participant-impl-kserve/src/test/java/org/onap/policy/clamp/acm/participant/kserve/handler/AcElementHandlerTest.java @@ -209,4 +209,12 @@ class AcElementHandlerTest { nodeTemplatesMap.get(KSERVE_AUTOMATION_COMPOSITION_ELEMENT).getProperties(), DeployState.UNDEPLOYING, LockState.LOCKED)); } + + @Test + void testMigrate() throws PfModelException { + var automationCompositionId = commonTestData.getAutomationCompositionId(); + var element = commonTestData.getAutomationCompositionElement(); + assertDoesNotThrow(() -> automationCompositionElementHandler.migrate(automationCompositionId, element, + UUID.randomUUID(), Map.of())); + } } -- cgit 1.2.3-korg