diff options
author | 2018-08-02 13:40:25 +0200 | |
---|---|---|
committer | 2018-08-02 14:06:51 +0200 | |
commit | ffd526656aad91b3bf165eea90bc158b3dc3e4fd (patch) | |
tree | 18437ee9f1ee79a4c618a991a7b67d239cf63ad1 /test/mocks/pnfsimulator/json_schema | |
parent | cbb3d888e8264023e891298c69fdcccc32e09bd4 (diff) |
Preparing simulator for INT-607
Change-Id: Ibc5b9be98f46e699398a29a981053435bc09dc2a
Issue-ID: INT-607
Signed-off-by: Marcin Migdal <marcin.migdal@nokia.com>
Diffstat (limited to 'test/mocks/pnfsimulator/json_schema')
-rw-r--r-- | test/mocks/pnfsimulator/json_schema/input_validator.json | 193 | ||||
-rw-r--r-- | test/mocks/pnfsimulator/json_schema/output_validator.json | 286 |
2 files changed, 479 insertions, 0 deletions
diff --git a/test/mocks/pnfsimulator/json_schema/input_validator.json b/test/mocks/pnfsimulator/json_schema/input_validator.json new file mode 100644 index 000000000..df4efb53d --- /dev/null +++ b/test/mocks/pnfsimulator/json_schema/input_validator.json @@ -0,0 +1,193 @@ +{ + "$id": "http://example.com/example.json", + "type": "object", + "definitions": {}, + "$schema": "http://json-schema.org/draft-07/schema#", + "properties": { + "simulatorParams": { + "$id": "/properties/simulatorParams", + "type": "object", + "properties": { + "vesServerUrl": { + "$id": "/properties/simulatorParams/properties/vesServerUrl", + "type": "string", + "title": "The Vesserverurl Schema ", + "default": "", + "examples": [ + "http://10.154.187.70:8080/eventListener/v5" + ] + }, + "testDuration": { + "$id": "/properties/simulatorParams/properties/testDuration", + "type": "string", + "title": "The Testduration Schema ", + "default": "", + "examples": [ + "10" + ] + }, + "messageInterval": { + "$id": "/properties/simulatorParams/properties/messageInterval", + "type": "string", + "title": "The Messageinterval Schema ", + "default": "", + "examples": [ + "1" + ] + } + } + }, + "messageParams": { + "$id": "/properties/messageParams", + "type": "object", + "properties": { + "pnfSerialNumber": { + "$id": "/properties/messageParams/properties/pnfSerialNumber", + "type": "string", + "title": "The Pnfserialnumber Schema ", + "default": "", + "examples": [ + "val1" + ] + }, + "pnfVendorName": { + "$id": "/properties/messageParams/properties/pnfVendorName", + "type": "string", + "title": "The Pnfvendorname Schema ", + "default": "", + "examples": [ + "val2" + ] + }, + "pnfOamIpv4Address": { + "$id": "/properties/messageParams/properties/pnfOamIpv4Address", + "type": "string", + "title": "The Pnfoamipv4address Schema ", + "default": "", + "examples": [ + "val3" + ] + }, + "pnfOamIpv6Address": { + "$id": "/properties/messageParams/properties/pnfOamIpv6Address", + "type": "string", + "title": "The Pnfoamipv6address Schema ", + "default": "", + "examples": [ + "val4" + ] + }, + "pnfFamily": { + "$id": "/properties/messageParams/properties/pnfFamily", + "type": "string", + "title": "The Pnffamily Schema ", + "default": "", + "examples": [ + "val5" + ] + }, + "pnfModelNumber": { + "$id": "/properties/messageParams/properties/pnfModelNumber", + "type": "string", + "title": "The Pnfmodelnumber Schema ", + "default": "", + "examples": [ + "val6" + ] + }, + "pnfSoftwareVersion": { + "$id": "/properties/messageParams/properties/pnfSoftwareVersion", + "type": "string", + "title": "The Pnfsoftwareversion Schema ", + "default": "", + "examples": [ + "val7" + ] + }, + "pnfType": { + "$id": "/properties/messageParams/properties/pnfType", + "type": "string", + "title": "The Pnftype Schema ", + "default": "", + "examples": [ + "val8" + ] + }, + "eventName": { + "$id": "/properties/messageParams/properties/eventName", + "type": "string", + "title": "The Eventname Schema ", + "default": "", + "examples": [ + "val9" + ] + }, + "nfNamingCode": { + "$id": "/properties/messageParams/properties/nfNamingCode", + "type": "string", + "title": "The Nfnamingcode Schema ", + "default": "", + "examples": [ + "val10" + ] + }, + "nfcNamingCode": { + "$id": "/properties/messageParams/properties/nfcNamingCode", + "type": "string", + "title": "The Nfcnamingcode Schema ", + "default": "", + "examples": [ + "val11" + ] + }, + "sourceName": { + "$id": "/properties/messageParams/properties/sourceName", + "type": "string", + "title": "The Sourcename Schema ", + "default": "", + "examples": [ + "val12" + ] + }, + "sourceId": { + "$id": "/properties/messageParams/properties/sourceId", + "type": "string", + "title": "The Sourceid Schema ", + "default": "", + "examples": [ + "val13" + ] + }, + "reportingEntityName": { + "$id": "/properties/messageParams/properties/reportingEntityName", + "type": "string", + "title": "The Reportingentityname Schema ", + "default": "", + "examples": [ + "val14" + ] + } + }, + "required": [ + "pnfSerialNumber", + "pnfVendorName" + ], + "anyOf": [ + { + "required": [ + "pnfOamIpv4Address" + ] + }, + { + "required": [ + "pnfOamIpv6Address" + ] + } + ] + } + }, + "required": [ + "simulatorParams", + "messageParams" + ] +}
\ No newline at end of file diff --git a/test/mocks/pnfsimulator/json_schema/output_validator.json b/test/mocks/pnfsimulator/json_schema/output_validator.json new file mode 100644 index 000000000..569bbce6f --- /dev/null +++ b/test/mocks/pnfsimulator/json_schema/output_validator.json @@ -0,0 +1,286 @@ +{ + "$id": "http://example.com/example.json", + "type": "object", + "definitions": {}, + "$schema": "http://json-schema.org/draft-07/schema#", + "properties": { + "event": { + "$id": "/properties/event", + "type": "object", + "properties": { + "commonEventHeader": { + "$id": "/properties/event/properties/commonEventHeader", + "type": "object", + "properties": { + "sourceId": { + "$id": "/properties/event/properties/commonEventHeader/properties/sourceId", + "type": "string", + "title": "The Sourceid Schema ", + "default": "", + "examples": [ + "<<SerialNumber>>" + ] + }, + "startEpochMicrosec": { + "$id": "/properties/event/properties/commonEventHeader/properties/startEpochMicrosec", + "type": "integer", + "title": "The Startepochmicrosec Schema ", + "default": 0, + "examples": [ + 1519837825682 + ] + }, + "eventId": { + "$id": "/properties/event/properties/commonEventHeader/properties/eventId", + "type": "string", + "title": "The Eventid Schema ", + "default": "", + "examples": [ + "<<SerialNumber>>-reg" + ] + }, + "nfcNamingCode": { + "$id": "/properties/event/properties/commonEventHeader/properties/nfcNamingCode", + "type": "string", + "title": "The Nfcnamingcode Schema ", + "default": "", + "examples": [ + "5DU" + ] + }, + "internalHeaderFields": { + "$id": "/properties/event/properties/commonEventHeader/properties/internalHeaderFields", + "type": "object", + "properties": { + "collectorTimeStamp": { + "$id": "/properties/event/properties/commonEventHeader/properties/internalHeaderFields/properties/collectorTimeStamp", + "type": "string", + "title": "The Collectortimestamp Schema ", + "default": "", + "examples": [ + "Fri, 04 27 2018 09:01:10 GMT" + ] + } + } + }, + "eventType": { + "$id": "/properties/event/properties/commonEventHeader/properties/eventType", + "type": "string", + "title": "The Eventtype Schema ", + "default": "", + "examples": [ + "pnfRegistration" + ] + }, + "priority": { + "$id": "/properties/event/properties/commonEventHeader/properties/priority", + "type": "string", + "title": "The Priority Schema ", + "default": "", + "examples": [ + "Normal" + ] + }, + "version": { + "$id": "/properties/event/properties/commonEventHeader/properties/version", + "type": "integer", + "title": "The Version Schema ", + "default": 0, + "examples": [ + 3 + ] + }, + "reportingEntityName": { + "$id": "/properties/event/properties/commonEventHeader/properties/reportingEntityName", + "type": "string", + "title": "The Reportingentityname Schema ", + "default": "", + "examples": [ + "5GRAN_DU" + ] + }, + "sequence": { + "$id": "/properties/event/properties/commonEventHeader/properties/sequence", + "type": "integer", + "title": "The Sequence Schema ", + "default": 0, + "examples": [ + 0 + ] + }, + "domain": { + "$id": "/properties/event/properties/commonEventHeader/properties/domain", + "type": "string", + "title": "The Domain Schema ", + "default": "", + "examples": [ + "other" + ] + }, + "lastEpochMicrosec": { + "$id": "/properties/event/properties/commonEventHeader/properties/lastEpochMicrosec", + "type": "integer", + "title": "The Lastepochmicrosec Schema ", + "default": 0, + "examples": [ + 1519837825682 + ] + }, + "eventName": { + "$id": "/properties/event/properties/commonEventHeader/properties/eventName", + "type": "string", + "title": "The Eventname Schema ", + "default": "", + "examples": [ + "pnfRegistration_5GDU" + ] + }, + "sourceName": { + "$id": "/properties/event/properties/commonEventHeader/properties/sourceName", + "type": "string", + "title": "The Sourcename Schema ", + "default": "", + "examples": [ + "5GRAN_DU" + ] + }, + "nfNamingCode": { + "$id": "/properties/event/properties/commonEventHeader/properties/nfNamingCode", + "type": "string", + "title": "The Nfnamingcode Schema ", + "default": "", + "examples": [ + "5GRAN" + ] + } + } + }, + "otherFields": { + "$id": "/properties/event/properties/otherFields", + "type": "object", + "properties": { + "pnfLastServiceDate": { + "$id": "/properties/event/properties/otherFields/properties/pnfLastServiceDate", + "type": "integer", + "title": "The Pnflastservicedate Schema ", + "default": 0, + "examples": [ + 1517206400 + ] + }, + "pnfOamIpv6Address": { + "$id": "/properties/event/properties/otherFields/properties/pnfOamIpv6Address", + "type": "string", + "title": "The Pnfoamipv6address Schema ", + "default": "", + "examples": [ + "<<NONE>>" + ] + }, + "pnfVendorName": { + "$id": "/properties/event/properties/otherFields/properties/pnfVendorName", + "type": "string", + "title": "The Pnfvendorname Schema ", + "default": "", + "examples": [ + "Nokia" + ] + }, + "pnfModelNumber": { + "$id": "/properties/event/properties/otherFields/properties/pnfModelNumber", + "type": "string", + "title": "The Pnfmodelnumber Schema ", + "default": "", + "examples": [ + "AJ02" + ] + }, + "pnfFamily": { + "$id": "/properties/event/properties/otherFields/properties/pnfFamily", + "type": "string", + "title": "The Pnffamily Schema ", + "default": "", + "examples": [ + "BBU" + ] + }, + "pnfType": { + "$id": "/properties/event/properties/otherFields/properties/pnfType", + "type": "string", + "title": "The Pnftype Schema ", + "default": "", + "examples": [ + "AirScale" + ] + }, + "otherFieldsVersion": { + "$id": "/properties/event/properties/otherFields/properties/otherFieldsVersion", + "type": "integer", + "title": "The Otherfieldsversion Schema ", + "default": 0, + "examples": [ + 1 + ] + }, + "pnfOamIpv4Address": { + "$id": "/properties/event/properties/otherFields/properties/pnfOamIpv4Address", + "type": "string", + "title": "The Pnfoamipv4address Schema ", + "default": "", + "examples": [ + "10.16.123.234" + ] + }, + "pnfSoftwareVersion": { + "$id": "/properties/event/properties/otherFields/properties/pnfSoftwareVersion", + "type": "string", + "title": "The Pnfsoftwareversion Schema ", + "default": "", + "examples": [ + "v4.5.0.1" + ] + }, + "pnfSerialNumber": { + "$id": "/properties/event/properties/otherFields/properties/pnfSerialNumber", + "type": "string", + "title": "The Pnfserialnumber Schema ", + "default": "", + "examples": [ + "QTFCOC540002E" + ] + }, + "pnfManufactureDate": { + "$id": "/properties/event/properties/otherFields/properties/pnfManufactureDate", + "type": "integer", + "title": "The Pnfmanufacturedate Schema ", + "default": 0, + "examples": [ + 1516406400 + ] + } + }, + "required": [ + "pnfSerialNumber", + "pnfVendorName" + ], + "anyOf": [ + { + "required": [ + "pnfOamIpv4Address" + ] + }, + { + "required": [ + "pnfOamIpv6Address" + ] + } + ] + } + }, + "required": [ + "commonEventHeader", + "otherFields" + ] + } + } +}
\ No newline at end of file |