[PNF] Extend timer before sending request to simulator 17/119517/2
authormorganrol <morgan.richomme@orange.com>
Thu, 18 Mar 2021 17:16:51 +0000 (18:16 +0100)
committermorganrol <morgan.richomme@orange.com>
Thu, 18 Mar 2021 17:32:06 +0000 (18:32 +0100)
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

setup.cfg
src/onaptests/steps/simulator/pnf_simulator_cnf/pnf_register.py

index ba219bc..bd131a5 100644 (file)
--- 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
index 7a0fbf2..a73f668 100644 (file)
@@ -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",