diff options
Diffstat (limited to 'jobs')
-rw-r--r-- | jobs/disk.txt.in | 25 |
1 files changed, 25 insertions, 0 deletions
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 |