aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichal Jagiello <michal.jagiello@t-mobile.pl>2021-05-18 06:27:36 +0000
committerMorgan Richomme <morgan.richomme@orange.com>2021-05-20 15:07:56 +0000
commit8c2171fbc217bab76006ac1a1e4548d6bea7d261 (patch)
tree1c6cd4f4c930869f8d637ba5c3b2de256d1e8239
parent44c4437d52355a4ba371f80ce68a12a7967b2cb4 (diff)
[TEST] Patch ip values in pnf-simulator event
Issue-ID: INT-1894 Signed-off-by: Michal Jagiello <michal.jagiello@t-mobile.pl> Change-Id: I59b141fce25581b0fd92fcc3e2857148b7002c2b (cherry picked from commit acd9704269723602f5832ff1c78e2a86ffacd318)
-rw-r--r--src/onaptests/steps/simulator/pnf_simulator_cnf/pnf_register.py35
1 files changed, 10 insertions, 25 deletions
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"
+ }
}
}
}