aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBartek Grzybowski <b.grzybowski@partner.samsung.com>2021-05-21 08:44:30 +0000
committerGerrit Code Review <gerrit@onap.org>2021-05-21 08:44:30 +0000
commitb27c9a646f6cc1ad6386a41f45f3a0a0c9606ab2 (patch)
treee992b79e21d8d5b30df94155fb9f105fdd8d7ea4
parentfe3d5889797904b1321e1cc45182a4b236cf3317 (diff)
parent8c2171fbc217bab76006ac1a1e4548d6bea7d261 (diff)
Merge "[TEST] Patch ip values in pnf-simulator event" into honolulu
-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 f394289..f3e4583 100644
--- a/src/onaptests/steps/simulator/pnf_simulator_cnf/pnf_register.py
+++ b/src/onaptests/steps/simulator/pnf_simulator_cnf/pnf_register.py
@@ -117,31 +117,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"
+ }
}
}
}