From 9fbb2c4ed57dbdf9137bbd62f9925e177f940dd3 Mon Sep 17 00:00:00 2001 From: Herbert Eiselt Date: Mon, 18 Feb 2019 18:49:32 +0100 Subject: Increase Test coverage Increase Test coverage over 50 for SDN-R devicemanager Change-Id: I03eb5887d955abdfd4bdefa58c79c7f5356c9401 Issue-ID: SDNC-650 Signed-off-by: Herbert Eiselt --- .../onf-ptp-dataset.schema-information.json | 435 +++++++++++++++++++++ 1 file changed, 435 insertions(+) create mode 100644 sdnr/wt/devicemanager/provider/src/test/resources/elasticsearch/index/mwtn/modelDescription/onf-ptp-dataset.schema-information.json (limited to 'sdnr/wt/devicemanager/provider/src/test/resources/elasticsearch/index/mwtn/modelDescription/onf-ptp-dataset.schema-information.json') diff --git a/sdnr/wt/devicemanager/provider/src/test/resources/elasticsearch/index/mwtn/modelDescription/onf-ptp-dataset.schema-information.json b/sdnr/wt/devicemanager/provider/src/test/resources/elasticsearch/index/mwtn/modelDescription/onf-ptp-dataset.schema-information.json new file mode 100644 index 000000000..5c6e41a9d --- /dev/null +++ b/sdnr/wt/devicemanager/provider/src/test/resources/elasticsearch/index/mwtn/modelDescription/onf-ptp-dataset.schema-information.json @@ -0,0 +1,435 @@ +{ + "schema-information": { + "instance-number": { + "id": "instance-number", + "type": "uint16", + "order-number": 1, + "is-read-only": true, + "description": ["There is only one clock per device in the 4th PoC - value 1 should be used as instance-number."] + }, + "two-step-flag": { + "id": "two-step-flag", + "type": "boolean", + "order-number": 80, + "is-read-only": true, + "description": ["Indicates whether PTP clock is a two-step clock"] + }, + "clock-quality": { + "id": "clock-quality", + "type": "", + "order-number": 6, + "is-read-only": true, + "description": [""] + }, + "clock-class": { + "id": "clock-class", + "type": "", + "order-number": 7, + "is-read-only": true, + "description": ["Clock Class acc. to IEEE 1588-2008, 7.6.2.4 and ITU-T G.8275.1, 6.4"] + }, + "clock-accuracy": { + "id": "clock-accuracy", + "type": "", + "order-number": 8, + "is-read-only": true, + "description": ["Clock accuracy acc. to IEEE 1588-2008, 7.6.2.5 and ITU-T G.8275.1, 6.3.5"] + }, + "offset-scaled-log-variance": { + "id": "offset-scaled-log-variance", + "type": "", + "order-number": 9, + "is-read-only": true, + "description": ["Offset of scaled log variance acc. to IEEE 1588-2008, 7.6.3.5 and ITU-T G.8275.1, 6.3.5"] + }, + "priority1": { + "id": "priority1", + "type": "number", + "min": 0, + "max": 255, + "order-number": 10, + "is-read-only": true, + "description": ["Priority 1 acc. to IEEE 1588-2008, 7.6.2.2"] + }, + "priority2": { + "id": "priority2", + "type": "number", + "min": 0, + "max": 255, + "order-number": 11, + "is-read-only": false, + "description": ["Priority 2 acc. to IEEE 1588-2008, 7.6.2.3"] + }, + "domain-number": { + "id": "domain-number", + "type": "number", + "min": 24, + "max": 43, + "order-number": 12, + "is-read-only": false, + "description": ["PTP domain number acc. to IEEE 1588-2008, 7.1. See ptpDS.domainNumber."] + }, + "slave-only": { + "id": "slave-only", + "type": "boolean", + "order-number": 81, + "is-read-only": false, + "description": ["Indicates whether PTP clock may only operate as SC. See IEEE 1588-2008, 9.2."] + }, + "current-ds": { + "id": "current-ds", + "type": "", + "order-number": 14, + "is-read-only": true, + "description": [""] + }, + "steps-removed": { + "id": "steps-removed", + "type": "", + "order-number": 15, + "is-read-only": true, + "description": ["Number of communication paths traversed between local clock and GM"] + }, + "offset-from-master": { + "id": "offset-from-master", + "type": "", + "order-number": 16, + "is-read-only": true, + "unit": "ns*2^16", + "description": ["Time off-set from master"] + }, + "mean-path-delay": { + "id": "mean-path-delay", + "type": "", + "order-number": 17, + "is-read-only": true, + "unit": "ns*2^16", + "description": ["Mean propagation time between master and slave"] + }, + "parrent-ds": { + "id": "parrent-ds", + "type": "", + "order-number": 18, + "is-read-only": true, + "description": [""] + }, + "parent-port-identity": { + "id": "parent-port-identity", + "type": "", + "order-number": 19, + "is-read-only": true, + "description": [""] + }, + "parent-stats": { + "id": "parent-stats", + "type": "", + "order-number": 22, + "is-read-only": true, + "description": ["Indicates whether there are valid parent stats."] + }, + "observed-parent-offset-scaled-log-variance": { + "id": "observed-parent-offset-scaled-log-variance", + "type": "", + "order-number": 23, + "is-read-only": true, + "description": ["Estimate of parent's clock PTP variance as observed by slave clock acc. to IEEE 1588-2008, 7.6.4.4."] + }, + "observed-parent-clock-phase-change-rate": { + "id": "observed-parent-clock-phase-change-rate", + "type": "", + "order-number": 24, + "is-read-only": true, + "description": ["Estimate of parent's clock PTP phase change rate as observed by slave clock acc. to IEEE 1588-2008, 7.6.4.4."] + }, + "grandmaster-identity": { + "id": "grandmaster-identity", + "type": "", + "order-number": 25, + "is-read-only": true, + "description": ["Grandmaster clock ID acc. to IEEE 1588-2008, 7.6.2.1"] + }, + "grandmaster-clock-quality": { + "id": "grandmaster-clock-quality", + "type": "", + "order-number": 26, + "is-read-only": true, + "description": [""] + }, + "grandmaster-priority1": { + "id": "grandmaster-priority1", + "type": "", + "order-number": 30, + "is-read-only": true, + "description": ["Grandmaster's priority 1 acc. to IEEE 1588-2008, 7.6.2.2"] + }, + "grandmaster-priority2": { + "id": "grandmaster-priority2", + "type": "", + "order-number": 31, + "is-read-only": true, + "description": ["Grandmaster's priority 2 acc. to IEEE 1588-2008, 7.6.2.3"] + }, + "time-properties-ds": { + "id": "time-properties-ds", + "type": "", + "order-number": 32, + "is-read-only": true, + "description": [""] + }, + "current-utc-offset-valid": { + "id": "current-utc-offset-valid", + "type": "", + "order-number": 33, + "is-read-only": true, + "description": ["Indicates wheterh current UTC offset is correct."] + }, + "current-utc-offset": { + "id": "current-utc-offset", + "type": "", + "order-number": 34, + "is-read-only": true, + "description": ["Offset between TAI and UTC acc. to IEEE 1588-2008, 7.2.3"] + }, + "leap59": { + "id": "leap59", + "type": "", + "order-number": 35, + "is-read-only": true, + "description": ["Inidcates that last minute of current UTC day has 59 seconds."] + }, + "leap61": { + "id": "leap61", + "type": "", + "order-number": 36, + "is-read-only": true, + "description": ["Inidcates that last minute of current UTC day has 61 seconds."] + }, + "time-tracable": { + "id": "time-tracable", + "type": "", + "order-number": 37, + "is-read-only": true, + "description": ["Indicates that current UTC offset and timescale are traceable to a PRC"] + }, + "frequency-tracable": { + "id": "frequency-tracable", + "type": "", + "order-number": 38, + "is-read-only": true, + "description": ["Indicates that frequency determining timescale is traceable to a PRC"] + }, + "ptp-timescale": { + "id": "ptp-timescale", + "type": "", + "order-number": 39, + "is-read-only": true, + "description": ["Indicates thet timescale of grandmaster clock is PTP."] + }, + "time-source": { + "id": "time-source", + "type": "", + "order-number": 40, + "is-read-only": true, + "description": ["Time source used by grandmaster. See IEEE 1588-2008, 7.6.2.6."] + }, + "port-state": { + "id": "port-state", + "type": "", + "order-number": 45, + "is-read-only": true, + "description": ["State of this local port"] + }, + "log-min-delay-req-interval": { + "id": "log-min-delay-req-interval", + "type": "", + "order-number": 46, + "is-read-only": true, + "description": ["Minimum permitted mean time interval between successive Delay_Req messages"] + }, + "peer-mean-path-delay": { + "id": "peer-mean-path-delay", + "type": "", + "order-number": 47, + "is-read-only": true, + "unit": "ns*2^16", + "description": ["Not applicable with this profile"] + }, + "log-announce-interval": { + "id": "log-announce-interval", + "type": "", + "order-number": 48, + "is-read-only": true, + "description": ["Mean time interval between successive Announce messages"] + }, + "announce-receipt-timeout": { + "id": "announce-receipt-timeout", + "type": "", + "order-number": 49, + "is-read-only": true, + "description": ["Number of announce intervals w/o announce message before timeout acc. to IEEE 1588-2008, 7.7.3.1."] + }, + "log-sync-interval": { + "id": "log-sync-interval", + "type": "", + "order-number": 50, + "is-read-only": true, + "description": ["Mean SyncInterval for multicast messages"] + }, + "delay-mechanism": { + "id": "delay-mechanism", + "type": "string", + "controlType": "text", + "order-number": 51, + "is-read-only": true, + "description": ["Delay mechanism acc. to IEEE 1588-2008, 8.2.5.4.4."] + }, + "version-number": { + "id": "version-number", + "type": "", + "order-number": 53, + "is-read-only": true, + "description": ["PTP version used on this port"] + }, + "transparent-clock-default-ds": { + "id": "transparent-clock-default-ds", + "type": "", + "order-number": 54, + "is-read-only": true, + "description": [""] + }, + "number-ports": { + "id": "number-ports", + "type": "", + "order-number": -6, + "is-read-only": true, + "description": ["Number of ports of the device"] + }, + "primary-domain": { + "id": "primary-domain", + "type": "", + "order-number": 58, + "is-read-only": true, + "description": ["Domain number of primary syntonization domain acc. to IEEE 1588-2008, 10.1"] + }, + "transparent-clock-port-ds-list": { + "id": "transparent-clock-port-ds-list", + "type": "", + "order-number": 59, + "is-read-only": true, + "description": [""] + }, + "log-min-pdelay-req-interval": { + "id": "log-min-pdelay-req-interval", + "type": "", + "order-number": 63, + "is-read-only": true, + "description": ["Not applicable with this profile"] + }, + "faulty-flag": { + "id": "faulty-flag", + "type": "", + "order-number": 64, + "is-read-only": true, + "description": ["Indicates whether port is faulty."] + }, + "default-ds": { + "id": "default-ds", + "type": "", + "order-number": 68, + "is-read-only": true, + "description": [""] + }, + "local-priority": { + "id": "local-priority", + "type": "number", + "min": 1, + "max": 255, + "order-number": 69, + "is-read-only": true, + "description": ["See ITU-T G.8275.1, 6.3.2."] + }, + "max-steps-removed": { + "id": "max-steps-removed", + "type": "number", + "min": 1, + "max": 255, + "order-number": 70, + "is-read-only": true, + "description": ["See ITU-T G.8275.1, 6.3."] + }, + "port-ds-list": { + "id": "port-ds-list", + "type": "", + "order-number": 73, + "is-read-only": true, + "description": [""] + }, + "clock-identity": { + "id": "clock-identity", + "type": "", + "order-number": -10, + "is-read-only": true, + "description": ["ID of the local clock"] + }, + "port-number": { + "id": "port-number", + "type": "", + "order-number": 76, + "is-read-only": true, + "description": ["Port number of this port on the local clock"] + }, + "onf-ptp-dataset:master-only": { + "id": "onf-ptp-dataset:master-only", + "type": "boolean", + "order-number": 83, + "is-read-only": false, + "description": ["Indicates that port can only be a master."] + }, + "onf-ptp-dataset:local-priority": { + "id": "onf-ptp-dataset:local-priority", + "type": "number", + "min":1, + "max":255, + "order-number": -2, + "is-read-only": false, + "description": ["Local priority as used for Alternate BMCA. See ITU-T G.8275.1, 6.3.2."] + }, + "onf-ptp-dataset:designated-enabled": { + "id": "onf-ptp-dataset:designated-enabled", + "type": "boolean", + "order-number": 82, + "is-read-only": false, + "description": ["A PTP Port needs to be enabled by management acc. to IEEE 1588-2008, 9.2."] + }, + "onf-ptp-dataset:delay-asymmetry": { + "id": "onf-ptp-dataset:delay-asymmetry", + "type": "number", + "order-number": 80, + "is-read-only": true, + "description": ["Known path asymmetry in ns acc. to IEEE 1588-2008, 7.4.2."] + }, + "onf-ptp-dataset:logical-termination-point": { + "id": "onf-ptp-dataset:logical-termination-point ", + "type": "string", + "order-number": 81, + "is-read-only": true, + "description": [""] + }, + "onf-ptp-dataset:multicast-mac-address": { + "id": "onf-ptp-dataset:multicast-mac-address", + "type": "", + "order-number": -5, + "is-read-only": true, + "description": ["In 4th PoC the value is fixed."] + }, + "onf-ptp-dataset:max-steps-removed": { + "id": "onf-ptp-dataset:max-steps-removed", + "type": "number", + "min":1, + "max":255, + "order-number": 70, + "is-read-only": false, + "description": ["See ITU-T G.8275.1, 6.3."] + } + } +} -- cgit 1.2.3-korg