Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change examples according to latest schema version #323

Merged
merged 6 commits into from
May 24, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tests/event_discovery.tests/continuous.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// discovered {device_id} should be taken from the provided families.
//
{
"version": 1,
"version": "1.3.14",
"timestamp": "2018-08-26T21:39:29.364Z",
"generation": "2018-08-26T22:00:13Z",
"scan_family": "ipv6",
Expand Down
2 changes: 1 addition & 1 deletion tests/event_discovery.tests/discovery.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// discovered {device_id} should be taken from the provided families.
//
{
"version": 1,
"version": "1.3.14",
"timestamp": "2018-08-26T21:39:29.364Z",
"generation": "2018-08-26T21:00:13Z",
"scan_family": "ipv4",
Expand Down
2 changes: 1 addition & 1 deletion tests/event_discovery.tests/enumeration.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// where {device_id} is that of the enumerated node.
//
{
"version": 1,
"version": "1.3.14",
"timestamp": "2018-08-26T21:42:12.237Z",
"generation": "2018-08-26T21:37:12Z",
"points": {
Expand Down
2 changes: 1 addition & 1 deletion tests/event_discovery.tests/errors.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": 1,
"version": "1.3.14",
"timestamp": "2018-08-26T21:39:29.364Z",
"id": "sneakyCASE",
"families": {
Expand Down
2 changes: 1 addition & 1 deletion tests/event_discovery.tests/implicit.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
// of the enumerated node is provided by families.iot.id in the message payload.
//
{
"version": 1,
"version": "1.3.14",
"timestamp": "2018-08-26T21:39:29.364Z",
"generation": "2018-08-26T21:37:12Z",
"scan_family": "bacnet",
Expand Down
2 changes: 1 addition & 1 deletion tests/event_discovery.tests/point_error.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
// of the enumerated node is provided by families.iot.id in the message payload.
//
{
"version": 1,
"version": "1.3.14",
"timestamp": "2018-08-26T21:39:29.364Z",
"generation": "2018-08-26T21:37:12Z",
"scan_family": "iot",
Expand Down
2 changes: 1 addition & 1 deletion tests/event_discovery.tests/scan_error.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// discovered {device_id} should be taken from the provided families.
//
{
"version": 1,
"version": "1.3.14",
"timestamp": "2018-08-26T21:42:12.237Z",
"generation": "2018-08-26T21:37:12Z",
"scan_family": "bacnet",
Expand Down
2 changes: 1 addition & 1 deletion tests/event_pointset.tests/example.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": 1,
"version": "1.3.14",
"timestamp": "2018-08-26T21:39:29.364Z",
"points": {
"reading_value": {
Expand Down
2 changes: 1 addition & 1 deletion tests/event_pointset.tests/fcu.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": 1,
"version": "1.3.14",
"timestamp": "2019-01-17T14:02:29.364Z",
"points": {
"space_temperature_sensor": {
Expand Down
2 changes: 1 addition & 1 deletion tests/event_system.tests/example.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": 1,
"version": "1.3.14",
"timestamp": "2018-08-26T21:39:29.364Z",
"logentries": [
{
Expand Down
2 changes: 1 addition & 1 deletion tests/event_system.tests/fcu.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": 1,
"version": "1.3.14",
"timestamp": "2018-08-26T21:39:29.364Z",
"logentries": [
{
Expand Down
11 changes: 7 additions & 4 deletions tests/state.tests/continuous.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,15 @@
// where {device_id} is that of the discovery node.
//
{
"version": 1,
"version": "1.3.14",
"timestamp": "2018-08-26T21:39:29.364Z",
"system": {
"make_model": "ACME Bird Trap",
"firmware": {
"version": "3.2a"
"hardware": {
"make": "ACME",
"model": "Bird Trap"
},
"software": {
"firmware": "3.2a"
},
"serial_no": "182732142",
"last_config": "2018-08-26T21:49:29.364Z",
Expand Down
11 changes: 7 additions & 4 deletions tests/state.tests/discovery.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,15 @@
// where {device_id} is that of the discovery node.
//
{
"version": 1,
"version": "1.3.14",
"timestamp": "2018-08-26T21:39:29.364Z",
"system": {
"make_model": "ACME Bird Trap",
"firmware": {
"version": "3.2a"
"hardware": {
"make": "ACME",
"model": "Bird Trap"
},
"software": {
"firmware": "3.2a"
},
"serial_no": "182732142",
"last_config": "2018-08-26T21:49:29.364Z",
Expand Down
11 changes: 7 additions & 4 deletions tests/state.tests/enumeration.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,15 @@
// where {device_id} is that of the enumerated node.
//
{
"version": 1,
"version": "1.3.14",
"timestamp": "2018-08-26T21:39:29.364Z",
"system": {
"make_model": "ACME Bird Trap",
"firmware": {
"version": "3.2a"
"hardware": {
"make": "ACME",
"model": "Bird Trap"
},
"software": {
"firmware": "3.2a"
},
"serial_no": "182732142",
"last_config": "2018-08-26T21:49:29.364Z",
Expand Down
11 changes: 7 additions & 4 deletions tests/state.tests/example.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
{
"version": 1,
"version": "1.3.14",
"timestamp": "2018-08-26T21:39:29.364Z",
"system": {
"make_model": "ACME Bird Trap",
"firmware": {
"version": "3.2a"
"hardware": {
"make": "ACME",
"model": "Bird Trap"
},
"software": {
"firmware": "3.2a"
},
"serial_no": "182732142",
"last_config": "2018-08-26T21:49:29.364Z",
Expand Down
39 changes: 39 additions & 0 deletions tests/state.tests/makemodel_error.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"version": "1.3.14",
"timestamp": "2018-08-26T21:39:29.364Z",
"system": {
"make_model": "ACME Bird Trap",
"firmware": {
"version": "3.2a"
},
"serial_no": "182732142",
"last_config": "2018-08-26T21:49:29.364Z",
"operational": true,
"status": {
"message": "Tickity Boo",
"category": "device.state.com",
"timestamp": "2018-08-26T21:39:30.364Z",
"level": 600
}
},
"pointset": {
"status": { // Status scoped to overall pointset operation
"message": "Invalid sample time",
"category": "pointset.config",
"timestamp": "2018-08-26T21:39:28.364Z",
"level": 800
},
"points": {
"return_air_temperature_sensor": {
"status": { // Status scoped to a specific point in a pointset
"message": "Point return_air_temperature_sensor unable to read value",
"category": "pointset.points.telemetry",
"timestamp": "2018-08-26T21:39:28.364Z",
"level": 800
}
},
"nexus_sensor": {
}
}
}
}
3 changes: 3 additions & 0 deletions tests/state.tests/makemodel_error.out
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
2 schema violations found
object has missing required properties (["hardware","software"])
object instance has properties which are not allowed by the schema: ["firmware","make_model"]
39 changes: 39 additions & 0 deletions tests/state.tests/makemodel_upgrade.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"version": 1,
"timestamp": "2018-08-26T21:39:29.364Z",
"system": {
"make_model": "ACME Bird Trap",
"firmware": {
"version": "3.2a"
},
"serial_no": "182732142",
"last_config": "2018-08-26T21:49:29.364Z",
"operational": true,
"status": {
"message": "Tickity Boo",
"category": "device.state.com",
"timestamp": "2018-08-26T21:39:30.364Z",
"level": 600
}
},
"pointset": {
"status": { // Status scoped to overall pointset operation
"message": "Invalid sample time",
"category": "pointset.config",
"timestamp": "2018-08-26T21:39:28.364Z",
"level": 800
},
"points": {
"return_air_temperature_sensor": {
"status": { // Status scoped to a specific point in a pointset
"message": "Point return_air_temperature_sensor unable to read value",
"category": "pointset.points.telemetry",
"timestamp": "2018-08-26T21:39:28.364Z",
"level": 800
}
},
"nexus_sensor": {
}
}
}
}
Empty file.
11 changes: 7 additions & 4 deletions tests/state.tests/periodic.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,15 @@
// where {device_id} is that of the discovery node.
//
{
"version": 1,
"version": "1.3.14",
"timestamp": "2018-08-26T21:39:29.364Z",
"system": {
"make_model": "ACME Bird Trap",
"firmware": {
"version": "3.2a"
"hardware": {
"make": "ACME",
"model": "Bird Trap"
},
"software": {
"firmware": "3.2a"
},
"serial_no": "182732142",
"last_config": "2018-08-26T21:49:29.364Z",
Expand Down
11 changes: 7 additions & 4 deletions tests/state.tests/scan_bad.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,15 @@
// where {device_id} is that of the discovery node.
//
{
"version": 1,
"version": "1.3.14",
"timestamp": "2018-08-26T21:39:29.364Z",
"system": {
"make_model": "ACME Bird Trap",
"firmware": {
"version": "3.2a"
"hardware": {
"make": "ACME",
"model": "Bird Trap"
},
"software": {
"firmware": "3.2a"
},
"serial_no": "182732142",
"last_config": "2018-08-26T21:49:29.364Z",
Expand Down
11 changes: 7 additions & 4 deletions tests/state.tests/scan_error.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,15 @@
// where {device_id} is that of the discovery node.
//
{
"version": 1,
"version": "1.3.14",
"timestamp": "2018-08-26T21:39:29.364Z",
"system": {
"make_model": "ACME Bird Trap",
"firmware": {
"version": "3.2a"
"hardware": {
"make": "ACME",
"model": "Bird Trap"
},
"software": {
"firmware": "3.2a"
},
"serial_no": "182732142",
"last_config": "2018-08-26T21:49:29.364Z",
Expand Down
11 changes: 7 additions & 4 deletions tests/state.tests/scan_stop.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,15 @@
// where {device_id} is that of the discovery node.
//
{
"version": 1,
"version": "1.3.14",
"timestamp": "2018-08-26T21:39:29.364Z",
"system": {
"make_model": "ACME Bird Trap",
"firmware": {
"version": "3.2a"
"hardware": {
"make": "ACME",
"model": "Bird Trap"
},
"software": {
"firmware": "3.2a"
},
"serial_no": "182732142",
"last_config": "2018-08-26T21:49:29.364Z",
Expand Down
11 changes: 7 additions & 4 deletions tests/state.tests/writeback.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
{
"version": 1,
"version": "1.3.14",
"timestamp": "2018-08-26T21:39:29.364Z",
"system": {
"make_model": "ACME Bird Trap",
"firmware": {
"version": "3.2a"
"hardware": {
"make": "ACME",
"model": "Bird Trap"
},
"software": {
"firmware": "3.2a"
},
"serial_no": "182732142",
"last_config": "2018-08-26T21:38:29.364Z",
Expand Down