[TEST] Patch ip values in pnf-simulator event 16/121316/3
authorMichal Jagiello <michal.jagiello@t-mobile.pl>
Tue, 18 May 2021 06:27:36 +0000 (06:27 +0000)
committerMorgan Richomme <morgan.richomme@orange.com>
Thu, 20 May 2021 15:07:56 +0000 (15:07 +0000)
Issue-ID: INT-1894
Signed-off-by: Michal Jagiello <michal.jagiello@t-mobile.pl>
Change-Id: I59b141fce25581b0fd92fcc3e2857148b7002c2b
(cherry picked from commit acd9704269723602f5832ff1c78e2a86ffacd318)

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

index a73f668..4f14f01 100644 (file)
@@ -110,31 +110,16 @@ class PnfSimulatorCnfRegisterStep(BaseStep):
                             "version": "4.0.1",
                             "vesEventListenerVersion": "7.0.1"
                         },
-                        "pnfRegistrationFields": {
-                            "pnfRegistrationFieldsVersion": "2.0",
-                            "lastServiceDate": "2019-08-16",
-                            "macAddress": "D7:64:C8:CC:E9:32",
-                            "manufactureDate": "2019-08-16",
-                            "modelNumber": "Simulated Device",
-                            "oamV4IpAddress": "172.30.1.6",
-                            "oamV6IpAddress": "0:0:0:0:0:ffff:a0a:011",
-                            "serialNumber": "Simulated Device",
-                            "softwareVersion": "2.3.5",
-                            "unitFamily": "Simulated Device",
-                            "unitType": "ntsim_oran",
-                            "vendorName": "Melacon",
-                            "additionalFields": {
-                                "oamPort": "830",
-                                "protocol": "SSH",
-                                "username": "netconf",
-                                "password": "netconf",
-                                "reconnectOnChangedSchema": "false",
-                                "sleep-factor": "1.5",
-                                "tcpOnly": "false",
-                                "connectionTimeout": "20000",
-                                "maxConnectionAttempts": "100",
-                                "betweenAttemptsTimeout": "2000",
-                                "keepaliveDelay": "120"
+                        "templateName": "registration.json",
+                        "patch": {
+                            "event": {
+                                "commonEventHeader": {
+                                    "sourceName": settings.SERVICE_INSTANCE_NAME
+                                },
+                                "pnfRegistrationFields": {
+                                    "oamV4IpAddress": "192.168.0.1",
+                                    "oamV6IpAddress": "2001:db8::1428:57ab"
+                                }
                             }
                         }
                     }