summaryrefslogtreecommitdiff
path: root/units/miscellanea
diff options
authorJonathan Cave <jonathan.cave@canonical.com>2018-06-25 17:49:56 +0100
committerJonathan Cave <jonathan.cave@canonical.com>2018-06-28 10:32:59 +0100
commit9c6c81064ff028d32d3bf1a6f4fefe83e78567aa (patch)
treeabde424004ae525658589b133a1cd05fd1245fb2 /units/miscellanea
parent9eeddb666d6eed2bf69bdd9e03ddd9a0b8f42d7f (diff)
Add secure boot test for Ubuntu Core
Diffstat (limited to 'units/miscellanea')
-rw-r--r--units/miscellanea/jobs.pxu16
1 files changed, 16 insertions, 0 deletions
diff --git a/units/miscellanea/jobs.pxu b/units/miscellanea/jobs.pxu
index 4a9980ba..a1d4f5a1 100644
--- a/units/miscellanea/jobs.pxu
+++ b/units/miscellanea/jobs.pxu
@@ -148,6 +148,22 @@ command: boot_mode_test secureboot
plugin: shell
category_id: com.canonical.plainbox::miscellanea
estimated_duration: 0.5
+unit: template
+template-resource: model_assertion
+template-unit: job
+requires:
+ executable.name == 'dumpimage'
+ executable.name == 'mokutil'
+id: miscellanea/secure_boot_mode_{gadget}
+_summary: Test that {gadget} Ubuntu Core system booted with Secure Boot active
+_description:
+ Test to verify that the system booted with Secure Boot active.
+command:
+ boot_mode_test_snappy.py {gadget} {kernel}
+
+plugin: shell
+category_id: com.canonical.plainbox::miscellanea
+estimated_duration: 0.5
user: root
id: miscellanea/efi_pxeboot
requires: