Merge ~alexmurray/review-tools:validate-parsed-plugs-slots-json-for-bare-scalars into review-tools:master
Proposed by
Alex Murray
Status: | Merged |
---|---|
Merged at revision: | 38c1077de96fbceda7d8f7cd716443b919ccb66d |
Proposed branch: | ~alexmurray/review-tools:validate-parsed-plugs-slots-json-for-bare-scalars |
Merge into: | review-tools:master |
Diff against target: |
210 lines (+97/-9) 6 files modified
bin/snap-review (+14/-4) bin/snap-verify-declaration (+4/-2) reviewtools/sr_declaration.py (+26/-0) reviewtools/tests/test_sr_declaration.py (+23/-1) tests/test-snap-verify-declaration.sh (+11/-0) tests/test-snap-verify-declaration.sh.expected (+19/-2) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Evan Caville | Approve | ||
Review via email: mp+464072@code.launchpad.net |
Description of the change
many: when parsing plugs/slots json validate for bare scalars
The store will raise an error if the provided plugs/slots json contains bare
scalars - instead these need to be strings. So when parsing these from the user,
validate them against this condition so we can warn the user before they go and
try to update the declaration in the store using something that would ultimately
fail.
Signed-off-by: Alex Murray <email address hidden>
To post a comment you must log in.
LGTM - thanks for adding this in!