Skip to content

Zlib & Json Schema Validation

Clifford Ng requested to merge zlib into master

Ticket:

Resolves LB591 and LB592

Description of Change:

  • Added Zlib decompression for config and states
  • Added Json Schema validation for fetching devices from mock device broker

How to Test:

  1. Add a mock device into mongodb 'mock_devices' collection that doesn't match the JSON schema.
  2. Try searching for the added device in config manager
    • Expect device to be unavailable.
  3. Load a device from mock device broker with a valid schema validation.
  4. Device should be loaded with data decompressed.

Merge request reports