summaryrefslogtreecommitdiff
path: root/units/image
diff options
authorJonathan Cave <jonathan.cave@canonical.com>2020-07-01 14:57:35 +0100
committerJonathan Cave <jonathan.cave@canonical.com>2020-07-08 16:23:31 +0100
commitd09e53481931581b4978665c0965f55fe00b18bd (patch)
tree62527469408ca024b2f4dff26281406b4150bf95 /units/image
parentf4406e8aea08ed23e471768f46e0e0a72f2c6e59 (diff)
units/image: tests for ODM IoT Certification
Tests intended for use checking the validity of the image used when submitting a report for certification of an Ubuntu Core system
Diffstat (limited to 'units/image')
-rw-r--r--units/image/category.pxu3
-rw-r--r--units/image/jobs.pxu72
-rw-r--r--units/image/test-plan.pxu20
3 files changed, 95 insertions, 0 deletions
diff --git a/units/image/category.pxu b/units/image/category.pxu
new file mode 100644
index 0000000..919d6cf
--- /dev/null
+++ b/units/image/category.pxu
@@ -0,0 +1,3 @@
+unit: category
+id: image
+_name: Image verification tests \ No newline at end of file
diff --git a/units/image/jobs.pxu b/units/image/jobs.pxu
new file mode 100644
index 0000000..efe8d4e
--- /dev/null
+++ b/units/image/jobs.pxu
@@ -0,0 +1,72 @@
+
+id: image/kernel-publisher-canonical
+category_id: image
+summary: Check that the kernel snap publisher is Canonical
+description:
+ During certification testing IoT devices must be running a kernel supplied
+ by Canonical
+plugin: shell
+command:
+ ubuntucore_image_checks.py kernel-publisher
+estimated_duration: 2.0
+flags: preserve-locale
+
+id: image/kernel-tracking-stable
+category_id: image
+summary: Check that the kernel snap is tracking stable channel
+description:
+ During certification testing IoT devices must be running a kernel that is on
+ a stable channel
+plugin: shell
+command:
+ ubuntucore_image_checks.py kernel-tracking
+estimated_duration: 2.0
+flags: preserve-locale
+
+id: image/gadget-publisher-canonical
+category_id: image
+summary: Check that the gadget snap publisher is Canonical
+description:
+ During certification testing IoT devices must be running a kernel supplied
+ by Canonical
+plugin: shell
+command:
+ ubuntucore_image_checks.py gadget-publisher
+estimated_duration: 2.0
+flags: preserve-locale
+
+id: image/gadget-tracking-stable
+category_id: image
+summary: Check that the gadget snap is tracking stable channel
+description:
+ During certification testing IoT devices must be running a gadget that is on
+ a stable channel
+plugin: shell
+command:
+ ubuntucore_image_checks.py gadget-tracking
+estimated_duration: 2.0
+flags: preserve-locale
+
+id: image/model-authority-canonical
+category_id: image
+summary: Check that model authority-id is canonical
+description:
+ The authority-id declares on whose authority this assertion is made. This
+ must be Canonical for the certification of IoT devices.
+plugin: shell
+command:
+ ubuntucore_image_checks.py model-authority
+estimated_duration: 2.0
+flags: preserve-locale
+
+id: image/model-brand-canonical
+category_id: image
+summary: Check the model brand-id is canoncial
+description:
+ For the certification of IoT devices canonical provided generic images must
+ be used. Hence, the brand-id must be canonical.
+plugin: shell
+command:
+ ubuntucore_image_checks.py model-brand
+estimated_duration: 2.0
+flags: preserve-locale \ No newline at end of file
diff --git a/units/image/test-plan.pxu b/units/image/test-plan.pxu
new file mode 100644
index 0000000..48af204
--- /dev/null
+++ b/units/image/test-plan.pxu
@@ -0,0 +1,20 @@
+
+id: iot-cert-image-full
+unit: test plan
+name: Sanity checks for images being certified on IoT devices
+include:
+nested_part:
+ iot-cert-image-manual
+ iot-cert-image-automated
+
+id: iot-cert-image-automated
+unit: test plan
+name: Automated Sanity checks for images being certified on IoT devices
+include:
+ image/.*
+
+id: iot-cert-image-manual
+unit: test plan
+name: Manual Sanity checks for images being certified on IoT devices
+include:
+