aboutsummaryrefslogtreecommitdiffstats
path: root/test/mocks/mass-pnf-sim/pnf-sim-lightweight/README.md
diff options
context:
space:
mode:
authorTamasBakai <tamas.bakai@est.tech>2019-03-19 09:56:28 +0000
committerTamasBakai <tamas.bakai@est.tech>2019-03-19 09:56:28 +0000
commit114c21c9ff09fd80851e8419b575ea75f5e0a206 (patch)
tree7a573cda93d7acff46a129fb0e6e24863e274d67 /test/mocks/mass-pnf-sim/pnf-sim-lightweight/README.md
parentdb4bd69a91545c22580f3c9c57237df82cf1b80e (diff)
ROP file processing in mass-pnf-simulator
Change-Id: I66203ff66e9d91865f8eee06bef01e55bcd6c39c Issue-ID: DCAEGEN2-1225 Signed-off-by: TamasBakai <tamas.bakai@est.tech>
Diffstat (limited to 'test/mocks/mass-pnf-sim/pnf-sim-lightweight/README.md')
-rw-r--r--test/mocks/mass-pnf-sim/pnf-sim-lightweight/README.md36
1 files changed, 36 insertions, 0 deletions
diff --git a/test/mocks/mass-pnf-sim/pnf-sim-lightweight/README.md b/test/mocks/mass-pnf-sim/pnf-sim-lightweight/README.md
new file mode 100644
index 000000000..2b20d261e
--- /dev/null
+++ b/test/mocks/mass-pnf-sim/pnf-sim-lightweight/README.md
@@ -0,0 +1,36 @@
+##Local development shortcuts:
+####To start listening on port 10000 for test purposes
+`nc -l 10000`
+####Test the command above:
+`echo "Hello World" | nc localhost 10000`
+
+####Trigger the pnf simulator locally:
+
+```
+~/dev/git/integration/test/mocks/mass-pnf-sim/pnf-sim-lightweight$ curl -s -X POST -H "Content-Type: application/json" -H "X-ONAP-RequestID: 123" -H "X-InvocationID: 456" -d @config/config.json
+http://localhost:5000/simulator/start
+```
+
+
+Message from the stdout of nc:
+
+```
+POST / HTTP/1.1
+Content-Type: application/json
+X-ONAP-RequestID: 123
+X-InvocationID: 3a256e95-2594-4b11-b25c-68c4baeb5c20
+Content-Length: 734
+Host: localhost:10000
+Connection: Keep-Alive
+User-Agent: Apache-HttpClient/4.5.5 (Java/1.8.0_162)
+Accept-Encoding: gzip,deflate
+```
+
+```javascript
+{"commonEventHeader":{"startEpochMicrosec":"1551865758690","sourceId":"val13","eventId":"registration_51865758",
+"nfcNamingCode":"oam","internalHeaderFields":{},"priority":"Normal","version":"4.0.1","reportingEntityName":"NOK6061ZW3",
+"sequence":"0","domain":"notification","lastEpochMicrosec":"1551865758690","eventName":"pnfRegistration_Nokia_5gDu","vesEventListenerVersion":"7.0.1",
+"sourceName":"NOK6061ZW3","nfNamingCode":"gNB"},"notificationFields":{"notificationFieldsVersion":"2.0","changeType":"FileReady",
+"changeIdentifier":"PM_MEAS_FILES","arrayOfNamedHashMap":{"name":"10MB.tar.gz",
+"hashMap":{"location":"10.11.0.68/10MB.tar.gz","fileFormatType":"org.3GPP.32.435#measCollec","fileFormatVersion":"V10","compression":"gzip"}}}}
+``` \ No newline at end of file