aboutsummaryrefslogtreecommitdiffstats
path: root/development/start-simulation.sh
blob: 6f38ea7b0bfa19ac5217650a87c211f7c070397c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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": 1000000
             }
           ]' \
    http://localhost:6062/simulator/async