From 123a4114a1498984bc6ddaa9bab7734e19d00026 Mon Sep 17 00:00:00 2001 From: "waqas.ikram" Date: Mon, 14 Sep 2020 12:41:26 +0100 Subject: [PATCH] Increasing Ns request timeout for tests Get Job status takes more then 10s if there is full GC so increasing the timeout Change-Id: I1c0d38b8ef8df4f78fdf2c54e5375ab45f8f15ae Issue-ID: SO-2868 Signed-off-by: waqas.ikram --- .../so/etsi/nfvo/ns/lcm/bpmn/flows/service/JobExecutorService.java | 4 ++-- .../src/test/resources/application.yaml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/so-etsi-nfvo/so-etsi-nfvo-ns-lcm/so-etsi-nfvo-ns-lcm-bpmn-flows/src/main/java/org/onap/so/etsi/nfvo/ns/lcm/bpmn/flows/service/JobExecutorService.java b/so-etsi-nfvo/so-etsi-nfvo-ns-lcm/so-etsi-nfvo-ns-lcm-bpmn-flows/src/main/java/org/onap/so/etsi/nfvo/ns/lcm/bpmn/flows/service/JobExecutorService.java index f3c38e537f..13cdc60b1b 100644 --- a/so-etsi-nfvo/so-etsi-nfvo-ns-lcm/so-etsi-nfvo-ns-lcm-bpmn-flows/src/main/java/org/onap/so/etsi/nfvo/ns/lcm/bpmn/flows/service/JobExecutorService.java +++ b/so-etsi-nfvo/so-etsi-nfvo-ns-lcm/so-etsi-nfvo-ns-lcm-bpmn-flows/src/main/java/org/onap/so/etsi/nfvo/ns/lcm/bpmn/flows/service/JobExecutorService.java @@ -209,13 +209,13 @@ public class JobExecutorService { final NfvoJob nfvoJob = optional.get(); currentJobStatus = nfvoJob.getStatus(); - logger.debug("Received job status response: \n ", nfvoJob); + logger.info("Received job status response: \n ", nfvoJob); if (jobFinishedStates.contains(nfvoJob.getStatus())) { logger.info("Job finished \n {}", currentJobStatus); return ImmutablePair.of(nfvoJob.getProcessInstanceId(), currentJobStatus); } - logger.debug("Haven't received one of finish state {} yet, will try again in {} seconds", + logger.info("Haven't received one of finish state {} yet, will try again in {} seconds", jobFinishedStates, SLEEP_TIME_IN_SECONDS); TimeUnit.SECONDS.sleep(SLEEP_TIME_IN_SECONDS); diff --git a/so-etsi-nfvo/so-etsi-nfvo-ns-lcm/so-etsi-nfvo-ns-lcm-bpmn-flows/src/test/resources/application.yaml b/so-etsi-nfvo/so-etsi-nfvo-ns-lcm/so-etsi-nfvo-ns-lcm-bpmn-flows/src/test/resources/application.yaml index b17a5f2370..1fabfbaac9 100644 --- a/so-etsi-nfvo/so-etsi-nfvo-ns-lcm/so-etsi-nfvo-ns-lcm-bpmn-flows/src/test/resources/application.yaml +++ b/so-etsi-nfvo/so-etsi-nfvo-ns-lcm/so-etsi-nfvo-ns-lcm-bpmn-flows/src/test/resources/application.yaml @@ -42,7 +42,7 @@ etsi-catalog-manager: endpoint: http://modeling-etsicatalog.onap:8806/api so-etsi-ns-lcm-workflow-engine: requesttimeout: - timeoutInSeconds: 10 + timeoutInSeconds: 60 logging: level: -- 2.16.6