feat(testing): introduce multi-authority OpenWebNet golden corpus conformance suite - #30
Merged
Merged
Conversation
… and add test extras
|
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Introduces a standardized, declarative, multi-authority OpenWebNet Golden Corpus conformance test suite to ensure consistent, rock-solid frame parsing and command building across the OpenWebNet ecosystem.
Three-Authority Conformance Architecture
openwebnet-mcp)openwebnet4j& openHAB reference vectors (MessageTest.java/OwnIdTest.java)OWNdprotocol engineKey Deliverables
tests/golden/):schema.json: Strict JSON Schema (Draft-07) enforcing canonical attributes, nullable signaling frames (*#*1##,*#*0##), interface routing (#4#01), dimension values, and builder factory specs.SOURCE.yaml: Lineage and attribution metadata mapping each fixture to its source.tests/test_golden_conformance.py):test_golden_corpus_schema_validity: Validates all fixture files againstschema.jsonwith strict ID and frame uniqueness.test_golden_frame_parsing: Verifies parsing extraction ofwho,where,what,interface,dimension, anddimension_values.test_golden_frame_roundtrip: Asserts 100% roundtrip wire serialization fidelity (str(OWNMessage.parse(f)) == f).test_golden_frame_builder_parity: Validates that high-level OWNd command builders (OWNLightingCommand,OWNAutomationCommand) emit exact expected wire frames.tools/golden/):validate_corpus.py: Standalone CLI validator tool.harvest_4j_fixtures.py: Automated extractor fromopenwebnet4jandopenhab-addons.HARVEST_REPORT.md: Comprehensive breakdown of 63 harvested frames.MCP_NOTES.md: Live validation log fromopenwebnet-mcp.Test Verification
Cc: @anotherjulien @mvalla