summaryrefslogtreecommitdiff
path: root/units/ethernet
diff options
authorNara Huang <nara.huang@canonical.com>2019-09-03 11:23:14 +0800
committerNara Huang <nara.huang@canonical.com>2019-09-06 17:01:06 +0800
commit264c87358907b109107cdd125f478878a42e9f36 (patch)
tree304f7c3455fdd3bb23be4f96b5a7a16a372cdb75 /units/ethernet
parent6a3e68b7979ac6dbcd36d062b355e639932ba468 (diff)
ethernet: Add iperf3 reverse test script and job
And in networking: Add the new iperf3 job to networking-cert-automated test plan.
Diffstat (limited to 'units/ethernet')
-rw-r--r--units/ethernet/jobs.pxu18
1 files changed, 18 insertions, 0 deletions
diff --git a/units/ethernet/jobs.pxu b/units/ethernet/jobs.pxu
index 103a7b3..bd7f273 100644
--- a/units/ethernet/jobs.pxu
+++ b/units/ethernet/jobs.pxu
@@ -407,6 +407,24 @@ _description:
unit: template
template-resource: device
template-filter: device.category == 'NETWORK' and device.interface != 'UNKNOWN'
+template-unit: job
+id: ethernet/iperf3_reverse_{interface}
+plugin: shell
+_summary: Iperf3 stress testing for {interface} (reverse)
+category_id: com.canonical.plainbox::ethernet
+estimated_duration: 240.0
+user: root
+environ:
+ TEST_TARGET_IPERF
+ LD_LIBRARY_PATH
+command: network test -i {interface} -t iperf --iperf3 --scan-timeout 3600 --fail-threshold 50 --cpu-load-fail-threshold 90 --runtime 90 --num_runs 4 --reverse
+_description:
+ This test uses iperf3 to ensure network devices pass data at an acceptable
+ minimum percentage of advertized speed (Reverse).
+
+unit: template
+template-resource: device
+template-filter: device.category == 'NETWORK' and device.interface != 'UNKNOWN'
template-engine: jinja2
template-unit: job
id: ethernet/check-{{ interface }}-static-configuration