Skip to content

Commit

Permalink
Revert shema test output changes
Browse files Browse the repository at this point in the history
  • Loading branch information
grafnu committed Nov 23, 2024
1 parent 113ad9d commit 1c7ca96
Show file tree
Hide file tree
Showing 34 changed files with 120 additions and 154 deletions.
5 changes: 2 additions & 3 deletions tests/schemas/commands_discovery/provision.out
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
While converting to json node: 1 schema violations found
1 schema violations found
object instance has properties which are not allowed by the schema: ["provision"]
1 schema violations found
object instance has properties which are not allowed by the schema: ["provision"]
5 changes: 2 additions & 3 deletions tests/schemas/config/blobset_final_incomplete_url.out
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
While converting to json node: 1 schema violations found
1 schema violations found
/blobset/blobs/_firmware_update: object has missing required properties (["generation","sha256"])
1 schema violations found
/blobset/blobs/_firmware_update: object has missing required properties (["generation","sha256"])
7 changes: 3 additions & 4 deletions tests/schemas/config/delta_x1_gateway.out
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
While converting to json node: 2 schema violations found
2 schema violations found
/localnet: object instance has properties which are not allowed by the schema: ["subsystem"]
object has missing required properties (["version"])
2 schema violations found
/localnet: object instance has properties which are not allowed by the schema: ["subsystem"]
object has missing required properties (["version"])
7 changes: 3 additions & 4 deletions tests/schemas/config/delta_x1_target.out
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
While converting to json node: 2 schema violations found
2 schema violations found
/localnet: object instance has properties which are not allowed by the schema: ["subsystem"]
object has missing required properties (["version"])
2 schema violations found
/localnet: object instance has properties which are not allowed by the schema: ["subsystem"]
object has missing required properties (["version"])
5 changes: 2 additions & 3 deletions tests/schemas/config/empty.out
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
While converting to json node: 1 schema violations found
1 schema violations found
object has missing required properties (["timestamp","version"])
1 schema violations found
object has missing required properties (["timestamp","version"])
15 changes: 7 additions & 8 deletions tests/schemas/config/errors.out
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
While converting to json node: 6 schema violations found
6 schema violations found
/pointset/points/return_air_temperature_sensor: object instance has properties which are not allowed by the schema: ["object_type"]
/pointset/sample_rate_sec: instance type (string) does not match any allowed primitive type (allowed: ["integer"])
/pointset/state_etag: string "2a8b71dwqhdhdddddddddddddddddddddddddddddddddddddddddd8" is too long (length: 55, maximum allowed: 32)
/pointset/version: instance type (integer) does not match any allowed primitive type (allowed: ["string"])
/pointset: object instance has properties which are not allowed by the schema: ["config_etag","id","properties"]
object instance has properties which are not allowed by the schema: ["points","properties","type","upgraded_from"]
6 schema violations found
/pointset/points/return_air_temperature_sensor: object instance has properties which are not allowed by the schema: ["object_type"]
/pointset/sample_rate_sec: instance type (string) does not match any allowed primitive type (allowed: ["integer"])
/pointset/state_etag: string "2a8b71dwqhdhdddddddddddddddddddddddddddddddddddddddddd8" is too long (length: 55, maximum allowed: 32)
/pointset/version: instance type (integer) does not match any allowed primitive type (allowed: ["string"])
/pointset: object instance has properties which are not allowed by the schema: ["config_etag","id","properties"]
object instance has properties which are not allowed by the schema: ["points","properties","type","upgraded_from"]
7 changes: 3 additions & 4 deletions tests/schemas/config/fcu.out
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
While converting to json node: 2 schema violations found
2 schema violations found
/pointset/points/chilled_water_valve_percentage_command: object instance has properties which are not allowed by the schema: ["min_update_ms"]
/system: object instance has properties which are not allowed by the schema: ["max_update_ms"]
2 schema violations found
/pointset/points/chilled_water_valve_percentage_command: object instance has properties which are not allowed by the schema: ["min_update_ms"]
/system: object instance has properties which are not allowed by the schema: ["max_update_ms"]
5 changes: 2 additions & 3 deletions tests/schemas/config/gateway.out
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
While converting to json node: 1 schema violations found
1 schema violations found
/gateway/proxy_ids/2: ECMA 262 regex "^[A-Z]{2,6}-[1-9][0-9]*$" does not match input string "991"
1 schema violations found
/gateway/proxy_ids/2: ECMA 262 regex "^[A-Z]{2,6}-[1-9][0-9]*$" does not match input string "991"
7 changes: 3 additions & 4 deletions tests/schemas/config/smartprimus.out
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
While converting to json node: 2 schema violations found
2 schema violations found
/pointset/points/fan_run_enable: object instance has properties which are not allowed by the schema: ["fix_value"]
/pointset/points/fan_run_status: object instance has properties which are not allowed by the schema: ["fix_value"]
2 schema violations found
/pointset/points/fan_run_enable: object instance has properties which are not allowed by the schema: ["fix_value"]
/pointset/points/fan_run_status: object instance has properties which are not allowed by the schema: ["fix_value"]
5 changes: 2 additions & 3 deletions tests/schemas/configuration_endpoint/multiple.out
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
While converting to json node: 1 schema violations found
1 schema violations found
/topic_prefix: ECMA 262 regex "^[-_/a-zA-Z0-9]+$" does not match input string "/devices/#"
1 schema violations found
/topic_prefix: ECMA 262 regex "^[-_/a-zA-Z0-9]+$" does not match input string "/devices/#"
5 changes: 2 additions & 3 deletions tests/schemas/envelope/empty.out
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
While converting to json node: 1 schema violations found
1 schema violations found
object has missing required properties (["deviceRegistryId"])
1 schema violations found
object has missing required properties (["deviceRegistryId"])
11 changes: 5 additions & 6 deletions tests/schemas/envelope/errors1.out
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
While converting to json node: 4 schema violations found
4 schema violations found
/deviceId: ECMA 262 regex "^[A-Z]{2,6}-[1-9][0-9]*$" does not match input string "fcu-1"
/deviceNumId: ECMA 262 regex "^[0-9]+$" does not match input string "921302198324X"
/deviceRegistryId: ECMA 262 regex "^[a-zA-Z][-a-zA-Z0-9._+~%]*[a-zA-Z0-9]$" does not match input string "test/registry"
/subType: instance value (5) not found in enum (possible values: ["invalid","reflect","events","errors","commands","config","state","query","reply","model"])
4 schema violations found
/deviceId: ECMA 262 regex "^[A-Z]{2,6}-[1-9][0-9]*$" does not match input string "fcu-1"
/deviceNumId: ECMA 262 regex "^[0-9]+$" does not match input string "921302198324X"
/deviceRegistryId: ECMA 262 regex "^[a-zA-Z][-a-zA-Z0-9._+~%]*[a-zA-Z0-9]$" does not match input string "test/registry"
/subType: instance value (5) not found in enum (possible values: ["invalid","reflect","events","errors","commands","config","state","query","reply","model"])
7 changes: 3 additions & 4 deletions tests/schemas/envelope/errors2.out
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
While converting to json node: 2 schema violations found
2 schema violations found
/deviceId: ECMA 262 regex "^[A-Z]{2,6}-[1-9][0-9]*$" does not match input string "FCUs_02_NW_12"
/deviceNumId: ECMA 262 regex "^[0-9]+$" does not match input string "-9213923812"
2 schema violations found
/deviceId: ECMA 262 regex "^[A-Z]{2,6}-[1-9][0-9]*$" does not match input string "FCUs_02_NW_12"
/deviceNumId: ECMA 262 regex "^[0-9]+$" does not match input string "-9213923812"
5 changes: 2 additions & 3 deletions tests/schemas/events_discovery/empty.out
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
While converting to json node: 1 schema violations found
1 schema violations found
object has missing required properties (["scan_family","timestamp","version"])
1 schema violations found
object has missing required properties (["scan_family","timestamp","version"])
13 changes: 6 additions & 7 deletions tests/schemas/events_discovery/errors.out
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
While converting to json node: 5 schema violations found
5 schema violations found
/families/bacnet: object has missing required properties (["addr"])
/families/bacnet: object instance has properties which are not allowed by the schema: ["id"]
/families/mac: object instance has properties which are not allowed by the schema: ["group"]
object has missing required properties (["scan_family"])
object instance has properties which are not allowed by the schema: ["addr","id","points","uniqs"]
5 schema violations found
/families/bacnet: object has missing required properties (["addr"])
/families/bacnet: object instance has properties which are not allowed by the schema: ["id"]
/families/mac: object instance has properties which are not allowed by the schema: ["group"]
object has missing required properties (["scan_family"])
object instance has properties which are not allowed by the schema: ["addr","id","points","uniqs"]
5 changes: 2 additions & 3 deletions tests/schemas/events_discovery/node.out
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
While converting to json node: 1 schema violations found
1 schema violations found
/system: object instance has properties which are not allowed by the schema: ["software"]
1 schema violations found
/system: object instance has properties which are not allowed by the schema: ["software"]
5 changes: 2 additions & 3 deletions tests/schemas/events_mapping/prediction.out
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
While converting to json node: 1 schema violations found
1 schema violations found
object instance has properties which are not allowed by the schema: ["prediction"]
1 schema violations found
object instance has properties which are not allowed by the schema: ["prediction"]
5 changes: 2 additions & 3 deletions tests/schemas/events_pointset/empty.out
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
While converting to json node: 1 schema violations found
1 schema violations found
object has missing required properties (["points","timestamp","version"])
1 schema violations found
object has missing required properties (["points","timestamp","version"])
19 changes: 9 additions & 10 deletions tests/schemas/events_pointset/errors.out
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
While converting to json node: 8 schema violations found
8 schema violations found
/points/guid: instance type (string) does not match any allowed primitive type (allowed: ["object"])
/points/missing_present_value: object has missing required properties (["present_value"])
/points/old_properties: object has missing required properties (["present_value"])
/points/old_properties: object instance has properties which are not allowed by the schema: ["properties"]
/points/yoyo_motion_sensor: object has missing required properties (["present_value"])
/points/yoyo_motion_sensor: object instance has properties which are not allowed by the schema: ["bad_property_name"]
/points: object instance has properties which are not allowed by the schema: ["analogValue_1","bad_____sensor","bad_entity_name_","comment$string"]
object instance has properties which are not allowed by the schema: ["comment$string","id","properties","state_etag"]
8 schema violations found
/points/guid: instance type (string) does not match any allowed primitive type (allowed: ["object"])
/points/missing_present_value: object has missing required properties (["present_value"])
/points/old_properties: object has missing required properties (["present_value"])
/points/old_properties: object instance has properties which are not allowed by the schema: ["properties"]
/points/yoyo_motion_sensor: object has missing required properties (["present_value"])
/points/yoyo_motion_sensor: object instance has properties which are not allowed by the schema: ["bad_property_name"]
/points: object instance has properties which are not allowed by the schema: ["analogValue_1","bad_____sensor","bad_entity_name_","comment$string"]
object instance has properties which are not allowed by the schema: ["comment$string","id","properties","state_etag"]
15 changes: 7 additions & 8 deletions tests/schemas/events_system/categories.out
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
While converting to json node: 6 schema violations found
6 schema violations found
/logentries/3/category: instance failed to match exactly one schema (matched 0 out of 37)
/logentries/4/category: instance failed to match exactly one schema (matched 0 out of 37)
/logentries/5/category: instance failed to match exactly one schema (matched 0 out of 37)
/logentries/6/category: instance failed to match exactly one schema (matched 0 out of 37)
/logentries/7/category: instance failed to match exactly one schema (matched 0 out of 37)
/logentries/9/category: instance failed to match exactly one schema (matched 0 out of 37)
6 schema violations found
/logentries/3/category: instance failed to match exactly one schema (matched 0 out of 37)
/logentries/4/category: instance failed to match exactly one schema (matched 0 out of 37)
/logentries/5/category: instance failed to match exactly one schema (matched 0 out of 37)
/logentries/6/category: instance failed to match exactly one schema (matched 0 out of 37)
/logentries/7/category: instance failed to match exactly one schema (matched 0 out of 37)
/logentries/9/category: instance failed to match exactly one schema (matched 0 out of 37)
5 changes: 2 additions & 3 deletions tests/schemas/events_system/empty.out
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
While converting to json node: 1 schema violations found
1 schema violations found
object has missing required properties (["timestamp","version"])
1 schema violations found
object has missing required properties (["timestamp","version"])
11 changes: 5 additions & 6 deletions tests/schemas/events_system/errors.out
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
While converting to json node: 4 schema violations found
4 schema violations found
/logentries/0/category: instance failed to match exactly one schema (matched 0 out of 37)
/logentries/0/level: numeric instance is lower than the required minimum (minimum: 100, found: 60)
/logentries/0: object has missing required properties (["message","timestamp"])
/logentries/1: instance type (string) does not match any allowed primitive type (allowed: ["object"])
4 schema violations found
/logentries/0/category: instance failed to match exactly one schema (matched 0 out of 37)
/logentries/0/level: numeric instance is lower than the required minimum (minimum: 100, found: 60)
/logentries/0: object has missing required properties (["message","timestamp"])
/logentries/1: instance type (string) does not match any allowed primitive type (allowed: ["object"])
7 changes: 3 additions & 4 deletions tests/schemas/metadata/bad.out
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
While converting to json node: 2 schema violations found
2 schema violations found
/gateway/proxy_ids/0: ECMA 262 regex "^[A-Z]{2,6}-[1-9][0-9]*$" does not match input string "AHU-001"
/gateway/proxy_ids/1: ECMA 262 regex "^[A-Z]{2,6}-[1-9][0-9]*$" does not match input string "A-1"
2 schema violations found
/gateway/proxy_ids/0: ECMA 262 regex "^[A-Z]{2,6}-[1-9][0-9]*$" does not match input string "AHU-001"
/gateway/proxy_ids/1: ECMA 262 regex "^[A-Z]{2,6}-[1-9][0-9]*$" does not match input string "A-1"
5 changes: 2 additions & 3 deletions tests/schemas/metadata/empty.out
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
While converting to json node: 1 schema violations found
1 schema violations found
object has missing required properties (["system","timestamp","version"])
1 schema violations found
object has missing required properties (["system","timestamp","version"])
17 changes: 8 additions & 9 deletions tests/schemas/metadata/errors.out
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
While converting to json node: 7 schema violations found
7 schema violations found
/pointset/points/return_air_temperature_sensor: object instance has properties which are not allowed by the schema: ["monkeys"]
/pointset: object instance has properties which are not allowed by the schema: ["rabbits"]
/system/location/site: ECMA 262 regex "^[A-Z]{2}-[A-Z]{3,4}-[A-Z0-9]{2,9}$" does not match input string "New Zealand"
/system/physical_tag/asset/name: ECMA 262 regex "^[A-Z]{2,6}-[1-9][0-9]*$" does not match input string "AHU-A01_extension11-option"
/system/physical_tag/asset/site: ECMA 262 regex "^[A-Z]{2}-[A-Z]{3,4}-[A-Z0-9]{2,9}$" does not match input string "US-SFO-XYY_Noope!"
/system/physical_tag/asset: object has missing required properties (["guid"])
/system: object instance has properties which are not allowed by the schema: ["guid"]
7 schema violations found
/pointset/points/return_air_temperature_sensor: object instance has properties which are not allowed by the schema: ["monkeys"]
/pointset: object instance has properties which are not allowed by the schema: ["rabbits"]
/system/location/site: ECMA 262 regex "^[A-Z]{2}-[A-Z]{3,4}-[A-Z0-9]{2,9}$" does not match input string "New Zealand"
/system/physical_tag/asset/name: ECMA 262 regex "^[A-Z]{2,6}-[1-9][0-9]*$" does not match input string "AHU-A01_extension11-option"
/system/physical_tag/asset/site: ECMA 262 regex "^[A-Z]{2}-[A-Z]{3,4}-[A-Z0-9]{2,9}$" does not match input string "US-SFO-XYY_Noope!"
/system/physical_tag/asset: object has missing required properties (["guid"])
/system: object instance has properties which are not allowed by the schema: ["guid"]
5 changes: 2 additions & 3 deletions tests/schemas/metadata/nosys.out
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
While converting to json node: 1 schema violations found
1 schema violations found
object has missing required properties (["system"])
1 schema violations found
object has missing required properties (["system"])
7 changes: 3 additions & 4 deletions tests/schemas/metadata/toomany.out
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
While converting to json node: 2 schema violations found
2 schema violations found
/pointset/points: object has too many properties (found 672 but schema requires at most 150)
/system/physical_tag/asset/name: ECMA 262 regex "^[A-Z]{2,6}-[1-9][0-9]*$" does not match input string "UK-LON-S2_LTGW-3"
2 schema violations found
/pointset/points: object has too many properties (found 672 but schema requires at most 150)
/system/physical_tag/asset/name: ECMA 262 regex "^[A-Z]{2,6}-[1-9][0-9]*$" does not match input string "UK-LON-S2_LTGW-3"
9 changes: 4 additions & 5 deletions tests/schemas/site_metadata/errors.out
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
While converting to json node: 3 schema violations found
3 schema violations found
/parameters/area/net_occupied_area/unit: instance failed to match exactly one schema (matched 0 out of 7)
/parameters/area: object instance has properties which are not allowed by the schema: ["extra"]
object has missing required properties (["timestamp"])
3 schema violations found
/parameters/area/net_occupied_area/unit: instance failed to match exactly one schema (matched 0 out of 7)
/parameters/area: object instance has properties which are not allowed by the schema: ["extra"]
object has missing required properties (["timestamp"])
11 changes: 5 additions & 6 deletions tests/schemas/state/delta_x1_gateway.out
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
While converting to json node: 4 schema violations found
4 schema violations found
/gateway: object instance has properties which are not allowed by the schema: ["error_ids"]
/system/hardware: object has missing required properties (["make","model"])
/system/hardware: object instance has properties which are not allowed by the schema: ["cpu_usage","free_dynamic_memory","last_reset_timestamp","last_restart_reason","reset_count","revision","total_dynamic_memory"]
object instance has properties which are not allowed by the schema: ["last_config"]
4 schema violations found
/gateway: object instance has properties which are not allowed by the schema: ["error_ids"]
/system/hardware: object has missing required properties (["make","model"])
/system/hardware: object instance has properties which are not allowed by the schema: ["cpu_usage","free_dynamic_memory","last_reset_timestamp","last_restart_reason","reset_count","revision","total_dynamic_memory"]
object instance has properties which are not allowed by the schema: ["last_config"]
7 changes: 3 additions & 4 deletions tests/schemas/state/delta_x1_target.out
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
While converting to json node: 2 schema violations found
2 schema violations found
/system: object has missing required properties (["serial_no"])
/system: object instance has properties which are not allowed by the schema: ["vendor_name"]
2 schema violations found
/system: object has missing required properties (["serial_no"])
/system: object instance has properties which are not allowed by the schema: ["vendor_name"]
5 changes: 2 additions & 3 deletions tests/schemas/state/empty.out
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
While converting to json node: 1 schema violations found
1 schema violations found
object has missing required properties (["system","timestamp","version"])
1 schema violations found
object has missing required properties (["system","timestamp","version"])
Loading

0 comments on commit 1c7ca96

Please sign in to comment.