From 5e3ded022f3aa6de7594c1dcd8708d70bfc12fec Mon Sep 17 00:00:00 2001 From: morganrol Date: Thu, 18 Mar 2021 18:16:51 +0100 Subject: [PNF] Extend timer before sending request to simulator Tests done on daily Guilin shows that the simulator takes some seconds to start, so we shoudl not send immediately the regsitration request to the simu A retry mechanism could be implemented meanwhile the extension of the timer seems to be enough Issue-ID: INT-1822 Signed-off-by: morganrol Change-Id: I648f3d3401206b79190b431d35f83c506788bfaa --- setup.cfg | 2 +- src/onaptests/steps/simulator/pnf_simulator_cnf/pnf_register.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.cfg b/setup.cfg index ba219bc..bd131a5 100644 --- a/setup.cfg +++ b/setup.cfg @@ -50,4 +50,4 @@ xtesting.testcase = basic_cds = onaptests.scenario.cds_blueprint_enrichment:CDSBlueprintEnrichment clearwater_ims = onaptests.scenario.clearwater_ims:ClearwaterIms basic_onboard = onaptests.scenario.basic_onboard:BasicOnboard - basic_pnf = onaptests.scenario.pnf_macro:PnfMacro \ No newline at end of file + pnf_macro = onaptests.scenario.pnf_macro:PnfMacro diff --git a/src/onaptests/steps/simulator/pnf_simulator_cnf/pnf_register.py b/src/onaptests/steps/simulator/pnf_simulator_cnf/pnf_register.py index 7a0fbf2..a73f668 100644 --- a/src/onaptests/steps/simulator/pnf_simulator_cnf/pnf_register.py +++ b/src/onaptests/steps/simulator/pnf_simulator_cnf/pnf_register.py @@ -83,7 +83,7 @@ class PnfSimulatorCnfRegisterStep(BaseStep): super().execute() if not self.is_pnf_pod_running(): EnvironmentPreparationException("PNF simulator is not running") - time.sleep(5.0) # Let's still wait for PNF simulator to make sure it's initialized + time.sleep(30.0) # Let's still wait for PNF simulator to make sure it's initialized ves_ip, ves_port = self.get_ves_ip_and_port() response = requests.post( "http://portal.api.simpledemo.onap.org:30999/simulator/event", -- cgit 1.2.3-korg