Repository navigation
test(modpoll-wot): publish rejection vectors for other implementations (WOT-06) - #154
Merged
Merged
Conversation
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.
An implementation that accepts or stores Thing Models without modpoll-wot, such as the ModioHub website, must refuse what the loader refuses. Until now only the fingerprints had shared vectors, so the website could save a Thing Model that the tools cannot load (WOT-06).
What changes
tests/fixtures/conformance.rejections.json: 60 vectors. Each one is a JSON Patch (RFC 6902,add,replaceandremoveonly) applied toconformance.tm.json, with the name of the rule that refuses the result. They cover 36 semantic rules ofinstantiate(codec and quantity, byte order, media type parameters, operations and read/write Forms, property types, acquisition groups, placeholders, root features) and a few refusals of the bundled schemas.tests/test_rejections.py: the unchanged model is accepted; every vector is refused with the answer of its own rule, both unbound and with a TCP host; every rule has a vector.profile.md: describes the vectors and the two differences that cannot be expressed as vectors (duplicate keys and an integer written as1.0).No package code changes, so no release is needed for this alone. The vectors ride with the next modpoll-wot release.
Verification
mise run checkinpackages/modpoll-wotpasses.