From: waqas.ikram Date: Mon, 14 Sep 2020 11:41:26 +0000 (+0100) Subject: Increasing Ns request timeout for tests X-Git-Tag: 1.7.4~85 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=123a4114a1498984bc6ddaa9bab7734e19d00026;p=so.git 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 --- 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: