From 8c2171fbc217bab76006ac1a1e4548d6bea7d261 Mon Sep 17 00:00:00 2001 From: Michal Jagiello Date: Tue, 18 May 2021 06:27:36 +0000 Subject: [TEST] Patch ip values in pnf-simulator event Issue-ID: INT-1894 Signed-off-by: Michal Jagiello Change-Id: I59b141fce25581b0fd92fcc3e2857148b7002c2b (cherry picked from commit acd9704269723602f5832ff1c78e2a86ffacd318) --- .../simulator/pnf_simulator_cnf/pnf_register.py | 35 +++++++--------------- 1 file changed, 10 insertions(+), 25 deletions(-) (limited to 'src/onaptests') 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 a73f668..4f14f01 100644 --- a/src/onaptests/steps/simulator/pnf_simulator_cnf/pnf_register.py +++ b/src/onaptests/steps/simulator/pnf_simulator_cnf/pnf_register.py @@ -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" + } } } } -- cgit 1.2.3-korg