aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormorganrol <morgan.richomme@orange.com>2021-03-18 18:16:51 +0100
committermorganrol <morgan.richomme@orange.com>2021-03-18 18:32:06 +0100
commit5e3ded022f3aa6de7594c1dcd8708d70bfc12fec (patch)
tree81351fa8e8d780afb5a4225b42e668755386c8ba
parent21e709c2619d78eae77fa4c63f0f48127aac8a25 (diff)
[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 <morgan.richomme@orange.com> Change-Id: I648f3d3401206b79190b431d35f83c506788bfaa
-rw-r--r--setup.cfg2
-rw-r--r--src/onaptests/steps/simulator/pnf_simulator_cnf/pnf_register.py2
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",