aboutsummaryrefslogtreecommitdiffstats
path: root/test/mocks/pnfsimulator/json_schema/input_validator.json
diff options
context:
space:
mode:
authorMarcin Migdal <marcin.migdal@nokia.com>2018-08-02 13:40:25 +0200
committerMarcin Migdal <marcin.migdal@nokia.com>2018-08-02 14:06:51 +0200
commitffd526656aad91b3bf165eea90bc158b3dc3e4fd (patch)
tree18437ee9f1ee79a4c618a991a7b67d239cf63ad1 /test/mocks/pnfsimulator/json_schema/input_validator.json
parentcbb3d888e8264023e891298c69fdcccc32e09bd4 (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/input_validator.json')
-rw-r--r--test/mocks/pnfsimulator/json_schema/input_validator.json193
1 files changed, 193 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