From d09e53481931581b4978665c0965f55fe00b18bd Mon Sep 17 00:00:00 2001 From: Jonathan Cave Date: Wed, 1 Jul 2020 14:57:35 +0100 Subject: 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 --- units/image/category.pxu | 3 ++ units/image/jobs.pxu | 72 +++++++++++++++++++++++++++++++++++++++++++++++ units/image/test-plan.pxu | 20 +++++++++++++ 3 files changed, 95 insertions(+) create mode 100644 units/image/category.pxu create mode 100644 units/image/jobs.pxu create mode 100644 units/image/test-plan.pxu (limited to 'units/image') 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: + -- cgit v1.2.3