summaryrefslogtreecommitdiff
path: root/units
diff options
authorPMR <pmr@pmr-lander>2021-03-18 10:30:23 +0000
committerPMR <pmr@pmr-lander>2021-03-18 10:30:23 +0000
commit07ab357dba9da3ae999cb36d8512f53ae4e5b89d (patch)
tree689de7364c593621a3db55563a57718e0aae5f97 /units
parent096cbbee3cd5228212e271a231a0b2c74d10743b (diff)
parentbc87e8bfdd9fdd433234e63c78e434c408761131 (diff)
Merge #399194 from ~hyac109/plainbox-provider-checkbox:model-grade-check
Add: a test to check the correctness of model grade setting
Diffstat (limited to 'units')
-rw-r--r--units/image/jobs.pxu18
1 files changed, 17 insertions, 1 deletions
diff --git a/units/image/jobs.pxu b/units/image/jobs.pxu
index efe8d4e..2cbbff5 100644
--- a/units/image/jobs.pxu
+++ b/units/image/jobs.pxu
@@ -69,4 +69,20 @@ plugin: shell
command:
ubuntucore_image_checks.py model-brand
estimated_duration: 2.0
-flags: preserve-locale \ No newline at end of file
+flags: preserve-locale
+
+id: image/model-grade-not-dangerous
+category_id: image
+summary: Check that the model grade is not missing or set to dangerous
+requires:
+ lsb.distributor_id == "Ubuntu Core" and int(lsb.release) >= 20
+description:
+ Images with the 'dangerous' grade (the lowest of all available grades)
+ results in certain security measures to be relaxed.
+ Images that require strict security related implementations must
+ have the model grade set to a grade higher than 'dangerous'.
+plugin: shell
+command:
+ ubuntucore_image_checks.py model-grade
+estimated_duration: 2.0
+flags: preserve-locale