From ebde5036f8d5239045d3a412864eee25d6664a1f Mon Sep 17 00:00:00 2001 From: Zygmunt Krynicki Date: Fri, 8 Aug 2014 18:35:49 +0200 Subject: providers:checkbox: add 'staging/disk/stats_{name}' job definition template This template is the direct replacement for the 'disk/stats' local job and the 'disk/stats_...' jobs it generates. Signed-off-by: Zygmunt Krynicki --- jobs/disk.txt.in | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'jobs') diff --git a/jobs/disk.txt.in b/jobs/disk.txt.in index 19dd840..01febe4 100644 --- a/jobs/disk.txt.in +++ b/jobs/disk.txt.in @@ -4,6 +4,31 @@ estimated_duration: 0.25 command: udev_resource | filter_templates -w "category=DISK" | awk -F': ' '$1 == "product" { print $2 }' _description: Detects and displays disks attached to the system. +unit: template +template-unit: job +template-imports: from 2013.com.canonical.certification import staging/udev as udev +template-resource: udev +template-filter: udev.attr_DEVTYPE == 'disk' and 'ram' not in udev.name and 'loop' not in udev.name +plugin: shell +id: staging/disk/stats_{name} +requires: + block_device.{name}_state != 'removable' +user: root +command: disk_stats_test {name} +_summary: Disk statistics for {attr_DEVNAME} +_description: + This test checks disk stats, generates some activity and rechecks stats to + verify they've changed. It also verifies that disks appear in the various + files they're supposed to. + . + This test will inspect the following disk: + . + product vendor: {attr_ID_VENDOR} + product name: {attr_ID_MODEL} + serial number: {attr_ID_SERIAL_SHORT} + sysfs path: {path} + device node path: {attr_DEVNAME} + plugin: local _summary: Check stats changes for each disk id: disk/stats -- cgit v1.2.3