From a6e377889c3f91701f024ee79343174fe6f4434c Mon Sep 17 00:00:00 2001 From: Fiete Ostkamp Date: Fri, 7 Feb 2025 10:16:55 +0100 Subject: Reenable tests for the mso-infrastructure-bpmn module - add vintage-engine dependency to mso-infrastructure-bpmn module to reenable tests - fix test case that broke because the InformDmaapClient was renamed to InformKafkaClient - exclude android-json from shazamcrest dep to resolve build warning - remove duplicate maven-dependency-plugin declaration from pom Issue-ID: SO-4134 Change-Id: I42013a81218e2527ab228b45103f128e8dd50cb3 Signed-off-by: Fiete Ostkamp --- bpmn/mso-infrastructure-bpmn/pom.xml | 23 +++++++++++----------- .../delegate/CreateAndActivatePnfResourceTest.java | 6 ++++++ .../BuildingBlock/WaitForPnfReadyBB.bpmn | 12 +++++------ .../process/CreateAndActivatePnfResource.bpmn | 20 +++++++++---------- pom.xml | 16 +++++++++------ 5 files changed, 43 insertions(+), 34 deletions(-) diff --git a/bpmn/mso-infrastructure-bpmn/pom.xml b/bpmn/mso-infrastructure-bpmn/pom.xml index f225ea5afb..08e25c8786 100644 --- a/bpmn/mso-infrastructure-bpmn/pom.xml +++ b/bpmn/mso-infrastructure-bpmn/pom.xml @@ -80,6 +80,12 @@ + + extract-docker-file + + false + + @@ -149,18 +155,6 @@ - - org.apache.maven.plugins - maven-dependency-plugin - - - extract-docker-file - - false - - - - io.fabric8 docker-maven-plugin @@ -279,6 +273,11 @@ mariaDB4j test + + org.junit.vintage + junit-vintage-engine + test + io.micrometer micrometer-registry-prometheus diff --git a/bpmn/mso-infrastructure-bpmn/src/test/java/org/onap/so/bpmn/infrastructure/pnf/delegate/CreateAndActivatePnfResourceTest.java b/bpmn/mso-infrastructure-bpmn/src/test/java/org/onap/so/bpmn/infrastructure/pnf/delegate/CreateAndActivatePnfResourceTest.java index 32ec69e5fa..5c3f72ea34 100644 --- a/bpmn/mso-infrastructure-bpmn/src/test/java/org/onap/so/bpmn/infrastructure/pnf/delegate/CreateAndActivatePnfResourceTest.java +++ b/bpmn/mso-infrastructure-bpmn/src/test/java/org/onap/so/bpmn/infrastructure/pnf/delegate/CreateAndActivatePnfResourceTest.java @@ -37,7 +37,13 @@ import org.onap.so.BaseIntegrationTest; import org.onap.so.bpmn.common.recipe.ResourceInput; import org.onap.so.bpmn.common.resource.ResourceRequestBuilder; import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.test.context.TestPropertySource; + +@TestPropertySource(properties = {"pnf.kafka.topicListenerDelayInSeconds=3", + "pnf.kafka.kafkaBootstrapServers=localhost:9092", "pnf.kafka.pnfReadyTopicName=someTopic", + "pnf.kafka.pnfUpdateTopicName=someTopic2", "pnf.kafka.consumerGroup=someConsumerGroup", + "pnf.kafka.consumerId=someConsumerId", "pnf.kafka.consumerIdUpdate=someConsumerIdUpdate"}) public class CreateAndActivatePnfResourceTest extends BaseIntegrationTest { private static final String VALID_UUID = UUID.nameUUIDFromBytes("testUuid".getBytes()).toString(); diff --git a/bpmn/so-bpmn-building-blocks/src/main/resources/subprocess/BuildingBlock/WaitForPnfReadyBB.bpmn b/bpmn/so-bpmn-building-blocks/src/main/resources/subprocess/BuildingBlock/WaitForPnfReadyBB.bpmn index 29e2f2bf11..d15de2f967 100644 --- a/bpmn/so-bpmn-building-blocks/src/main/resources/subprocess/BuildingBlock/WaitForPnfReadyBB.bpmn +++ b/bpmn/so-bpmn-building-blocks/src/main/resources/subprocess/BuildingBlock/WaitForPnfReadyBB.bpmn @@ -3,15 +3,15 @@ - + - + - + @@ -26,11 +26,11 @@ SequenceFlow_1o8od8e SequenceFlow_0m2r6ye - + SequenceFlow_0m2r6ye SequenceFlow_0p09qgm - + SequenceFlow_1kc34bc #{timeoutForPnfEntryNotification} @@ -113,7 +113,7 @@ - + diff --git a/bpmn/so-bpmn-infrastructure-flows/src/main/resources/process/CreateAndActivatePnfResource.bpmn b/bpmn/so-bpmn-infrastructure-flows/src/main/resources/process/CreateAndActivatePnfResource.bpmn index 8ffa32e10d..a389afba7b 100644 --- a/bpmn/so-bpmn-infrastructure-flows/src/main/resources/process/CreateAndActivatePnfResource.bpmn +++ b/bpmn/so-bpmn-infrastructure-flows/src/main/resources/process/CreateAndActivatePnfResource.bpmn @@ -7,18 +7,18 @@ - - + + - + #{!aaiContainsInfoAboutPnf} - - + + @@ -35,7 +35,7 @@ SequenceFlow_1kc34bc SequenceFlow_1miyzfe - + SequenceFlow_17s9025 SequenceFlow_1o8od8e @@ -59,11 +59,11 @@ SequenceFlow_1miyzfe - + SequenceFlow_1o8od8e SequenceFlow_0p09qgm - + SequenceFlow_1kc34bc #{timeoutForPnfEntryNotification} @@ -226,7 +226,7 @@ - + @@ -250,7 +250,7 @@ - + diff --git a/pom.xml b/pom.xml index f2e0fa127e..a156bc984e 100644 --- a/pom.xml +++ b/pom.xml @@ -411,13 +411,13 @@ f = new File( p ); if( f.exists() ) { break; - } + } p = "../" + p; } } if( f != null ) { String basePath = f.getCanonicalPath(); - basePath = basePath.substring( 0, basePath.lastIndexOf( File.separator ) ); + basePath = basePath.substring( 0, basePath.lastIndexOf( File.separator ) ); project.properties['base-path'] = basePath.replace( '\\' , '/'); log.info(' - used base path = ' + project.properties['base-path'] ); } else { @@ -578,16 +578,16 @@ ${docker.skip.build} ${docker.skip.push} ${docker.newHost} - ${docker.host.cert.path} - ${dockerPushRepo} - ${dockerPullRepo} - @@ -855,6 +855,10 @@ org.apache.commons commons-lang3 + + com.vaadin.external.google + android-json + -- cgit 1.2.3-korg