diff options
author | Zygmunt Krynicki <zygmunt.krynicki@canonical.com> | 2014-08-08 18:35:49 +0200 |
---|---|---|
committer | Zygmunt Krynicki <zygmunt.krynicki@canonical.com> | 2014-08-08 18:35:49 +0200 |
commit | ebde5036f8d5239045d3a412864eee25d6664a1f (patch) | |
tree | 1dc78cc2de8f36c755147c4389d60544caed016d | |
parent | d15da858a1f40426ad82164b0e4cafc90c4ecfbb (diff) |
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 <zygmunt.krynicki@canonical.com>
-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 |