diff --git a/providers/base/units/ethernet/jobs.pxu b/providers/base/units/ethernet/jobs.pxu index 9e863190e8..092249cc3e 100644 --- a/providers/base/units/ethernet/jobs.pxu +++ b/providers/base/units/ethernet/jobs.pxu @@ -209,6 +209,9 @@ template-resource: device template-filter: device.category == 'NETWORK' and device.interface != 'UNKNOWN' id: ethernet/ping_{interface} template-id: ethernet/ping_interface +imports: from com.canonical.plainbox import manifest +requires: + manifest._ignore_disconnected_ethernet_interfaces == 'False' _summary: Can ping another machine over Ethernet port {interface} _purpose: Check Ethernet works by pinging another machine plugin: shell diff --git a/providers/base/units/ethernet/manifest.pxu b/providers/base/units/ethernet/manifest.pxu index fa998647b8..3194f2d74f 100644 --- a/providers/base/units/ethernet/manifest.pxu +++ b/providers/base/units/ethernet/manifest.pxu @@ -6,4 +6,10 @@ value-type: bool unit: manifest entry id: has_ethernet_wake_on_lan_support _name: Wake-on-LAN support through Ethernet port -value-type: bool \ No newline at end of file +value-type: bool + +unit: manifest entry +id: _ignore_disconnected_ethernet_interfaces +_name: Ignore disconnected Ethernet interfaces +value-type: bool +hidden-reason: All Ethernet interfaces should be tested during enablement. However, when running regression tests in the lab, only one interface may be connected, but that should not trigger any failure. diff --git a/providers/base/units/ethernet/test-plan.pxu b/providers/base/units/ethernet/test-plan.pxu index 39b8b64352..4643257c83 100644 --- a/providers/base/units/ethernet/test-plan.pxu +++ b/providers/base/units/ethernet/test-plan.pxu @@ -81,6 +81,7 @@ estimated_duration: 1m include: ethernet/detect certification-status=blocker ethernet/ping_.* certification-status=blocker + ethernet/ping-with-any-cable-interface certification-status=blocker bootstrap_include: device @@ -112,6 +113,7 @@ estimated_duration: 1m include: after-suspend-ethernet/detect after-suspend-ethernet/ping_.* + after-suspend-ethernet/ping-with-any-cable-interface bootstrap_include: device