Merge ~kristinchuang/plainbox-provider-checkbox:model-grade-check-revamp into plainbox-provider-checkbox:master
Status: | Merged |
---|---|
Approved by: | Jonathan Cave |
Approved revision: | 8b80db367ebb6cb02acae79c49ef8c90a1823572 |
Merged at revision: | 3b91bc778fcff39e2a90dab13a667aa1e4d2d7e5 |
Proposed branch: | ~kristinchuang/plainbox-provider-checkbox:model-grade-check-revamp |
Merge into: | plainbox-provider-checkbox:master |
Diff against target: |
53 lines (+10/-3) 2 files modified
bin/ubuntucore_image_checks.py (+5/-0) units/image/jobs.pxu (+5/-3) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Devices Certification Bot | Needs Fixing | ||
Jonathan Cave (community) | Approve | ||
Review via email:
|
Description of the change
Modify the existing Ubuntu Core model grade check from simply 'checking if the grade != dangerous' into 'checking if the actual grade set is as expected':
===== Changes =====
* Rename the existing `image/
* Updated the description of `image/model-grade` job
* Modified the logic of model checking function in `ubuntucore_
- always fail if model grade is missing
- always fail if model grade is 'dangerous'
- if a MODEL_GRADE exists in configuration variables, make sure the model grade matches MODEL_GRADE
- if no MODEL_GRADE was given, make sure the model grade is 'secured'
===== Trial run with the change =====
[OK] model grade missing - case expected to fail
[OK] image is classic - case expected to be skipped
-
[OK] model grade is dangerous, MODEL_GRADE set - case expected to fail
[OK] model grade is dangerous, MODEL_GRADE not set - case expected to fail
-
[OK] MODEL_GRADE set, matches actual model grade - case expected to pass
[OK] MODEL_GRADE set, does not match actual model grade - case expected to fail
-
[OK] MODEL_GRADE not set, matches actual model grade - case expected to pass
[OK] MODEL_GRADE not set, does not match actual model grade - case expected to fail
Model assertion grade documentation:
https:/
Could you just modify the description to use the accurate grade "secured" rather than "secure"? Otherwise looks good, thanks