diff options
Diffstat (limited to 'development/start-simulation.sh')
-rwxr-xr-x | development/start-simulation.sh | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/development/start-simulation.sh b/development/start-simulation.sh new file mode 100755 index 00000000..70e4aaeb --- /dev/null +++ b/development/start-simulation.sh @@ -0,0 +1,31 @@ +#!/usr/bin/env bash +# TODO: Merge this file with bin/xnf-simulation.sh + +currentTimeMicros=$((`date +%s%N`/1000)) + +curl --header 'Content-Type: application/json' --request POST \ + --data '[ + { + "commonEventHeader": { + "version": "sample-version", + "domain": "perf3gpp", + "sequence": 1, + "priority": 1, + "eventId": "sample-event-id", + "eventName": "sample-event-name", + "eventType": "sample-event-type", + "startEpochMicrosec": 1545049703000000, + "lastEpochMicrosec": '$currentTimeMicros', + "nfNamingCode": "sample-nf-naming-code", + "nfcNamingCode": "sample-nfc-naming-code", + "reportingEntityId": "sample-reporting-entity-id", + "reportingEntityName": "sample-reporting-entity-name", + "sourceId": "sample-source-id", + "sourceName": "sample-source-name", + "vesEventListenerVersion": "7.2" + }, + "messageType": "VALID", + "messagesAmount": 1 + } + ]' \ + http://localhost:6062/simulator/async |