[TEST] Use nf-simulator/vesclient 90/121590/1
authorMichal Jagiello <michal.jagiello@t-mobile.pl>
Fri, 28 May 2021 14:16:05 +0000 (14:16 +0000)
committerMichal Jagiello <michal.jagiello@t-mobile.pl>
Fri, 28 May 2021 14:16:05 +0000 (14:16 +0000)
Pnf-simulator created "mongo" service and deployment what causes errors.
With the nf-simulator/vesclinet we could create mogno service with custom name

Issue-ID: TEST-341
Signed-off-by: Michal Jagiello <michal.jagiello@t-mobile.pl>
Change-Id: Iafde4be988d44291a56c649a1902319bbeeb050c

src/onaptests/steps/simulator/pnf_simulator_cnf/pnf_register.py
src/onaptests/templates/artifacts/pnf-simulator.tar.gz [changed mode: 0755->0644]

index f936839..4b09328 100644 (file)
@@ -91,7 +91,7 @@ class PnfSimulatorCnfRegisterStep(BaseStep):
         if not self.is_pnf_pod_running():
             EnvironmentPreparationException("PNF simulator is not running")
         time.sleep(settings.PNF_WAIT_TIME)  # Let's still wait for PNF simulator to make sure it's initialized
-        ves_ip, ves_port = self.get_ves_ip_and_port()
+        ves_ip, _ = self.get_ves_ip_and_port()  # Use only 8443
         registration_number: int = 0
         registered_successfully: bool = False
         while registration_number < settings.PNF_REGISTRATION_NUMBER_OF_TRIES and not registered_successfully:
@@ -102,7 +102,7 @@ class PnfSimulatorCnfRegisterStep(BaseStep):
                         "simulatorParams": {
                             "repeatCount": 9999,
                             "repeatInterval": 30,
-                            "vesServerUrl": f"https://{ves_ip}:{ves_port}/eventListener/v7"
+                            "vesServerUrl": f"https://sample1:sample1@{ves_ip}:8443/eventListener/v7"
                         },
                         "templateName": "registration.json",
                         "patch": {
old mode 100755 (executable)
new mode 100644 (file)
index 58cde89..a7e6311
Binary files a/src/onaptests/templates/artifacts/pnf-simulator.tar.gz and b/src/onaptests/templates/artifacts/pnf-simulator.tar.gz differ