From 97c6dc3e15dabd5b9ebd9bc7f457d8b3547550b5 Mon Sep 17 00:00:00 2001 From: Jeff Lane Date: Fri, 24 Sep 2021 11:20:51 -0400 Subject: ADD: Reintroduce ethernet tests for server regression testing lp: #1944989 --- units/ethernet/jobs.pxu | 20 ++++++++++++++++++++ units/ethernet/test-plan.pxu | 14 ++++++++++++++ 2 files changed, 34 insertions(+) (limited to 'units/ethernet') diff --git a/units/ethernet/jobs.pxu b/units/ethernet/jobs.pxu index 64a0578..89565bf 100644 --- a/units/ethernet/jobs.pxu +++ b/units/ethernet/jobs.pxu @@ -92,6 +92,26 @@ _description: This test uses iperf3 to ensure network devices pass data at an acceptable minimum percentage of advertized speed. +unit: template +template-resource: device +template-filter: device.category == 'NETWORK' and device.interface != 'UNKNOWN' +plugin: shell +category_id: com.canonical.plainbox::ethernet +id: ethernet/multi_iperf3_nic_device_server_sru{__index__}_{interface} +_summary: Multi-NIC Iperf3 SRU testing for NIC {interface} +estimated_duration: 1200.0 +requires: + executable.name == 'iperf3' + executable.name == 'ethtool' + executable.name == 'nmap' +user: root +environ: TEST_TARGET_IPERF +command: network.py test -i {interface} -t iperf --iperf3 --scan-timeout 3600 --fail-threshold 80 --cpu-load-fail-threshold 90 --runtime 1200 +_description: + This is a shorter SRU version of the standard iperf3 based network test for + servers. It is intended to ONLY be used for SRU and is not valid for offical + certification. + unit: template template-resource: device template-filter: device.category == 'NETWORK' and device.interface != 'UNKNOWN' diff --git a/units/ethernet/test-plan.pxu b/units/ethernet/test-plan.pxu index 8f4fac6..33c95b4 100644 --- a/units/ethernet/test-plan.pxu +++ b/units/ethernet/test-plan.pxu @@ -107,6 +107,20 @@ bootstrap_include: device executable +id: server-ethernet-sru +unit: test plan +_name: Server Ethernet SRU Tests +_description: Automated ethernet tests for server regression testing +estimated_duration: 4h +include: + ethernet/info_automated_server + ethernet/ethtool_info + ethernet/ethertool_check_.* + ethernet/multi_iperf3_nic_device_server_sru.* +bootstrap_include: + device + executable + id: server-ethernet-underspeed unit: test plan _name: Server Ethernet Tests (Speed Check Disabled) -- cgit v1.2.3