Skip to content

Commit

Permalink
Add wake-on-LAN manual test to the desktop test plan per customer's r…
Browse files Browse the repository at this point in the history
…equest (Bugfix) (#1455)

* Add the wake-on-LAN manual test to the desktop test plan per customer's request

* Add a manifest to check whether or not wake-on-LAN is supported on this device

* Remove the resource job's check, let the tester decide if or not run the test using the new manifest

* remove the cert-blocker label since this is a custmer requirement not Canonical's request
  • Loading branch information
eugene-yujinwu authored Sep 26, 2024
1 parent 0d0f721 commit 572db70
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 2 deletions.
12 changes: 10 additions & 2 deletions providers/base/units/ethernet/jobs.pxu
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,10 @@ template-resource: device
template-filter: device.category == 'NETWORK' and device.mac != 'UNKNOWN'
id: ethernet/wol_S5_{interface}
template-id: ethernet/wol_S5_interface
imports: from com.canonical.plainbox import manifest
requires:
manifest.has_ethernet_adapter == 'True'
manifest.has_ethernet_wake_on_lan_support== 'True'
_summary: Wake on LAN (WOL) test from S5 - {interface}
_purpose:
Check that another system can wake the System Under Test (SUT) from S5 using the Ethernet port {interface} WOL function.
Expand Down Expand Up @@ -275,8 +279,10 @@ _steps:
_verification:
Did the SUT wake up from S4?
plugin: user-interact-verify
imports: from com.canonical.plainbox import manifest
requires:
sleep.disk == 'supported'
manifest.has_ethernet_adapter == 'True'
manifest.has_ethernet_wake_on_lan_support== 'True'
command: systemctl hibernate
user: root
category_id: com.canonical.plainbox::ethernet
Expand All @@ -301,8 +307,10 @@ _steps:
_verification:
Did the SUT wake up from S3?
plugin: user-interact-verify
imports: from com.canonical.plainbox import manifest
requires:
sleep.mem == 'supported'
manifest.has_ethernet_adapter == 'True'
manifest.has_ethernet_wake_on_lan_support== 'True'
command: systemctl suspend
user: root
category_id: com.canonical.plainbox::ethernet
Expand Down
5 changes: 5 additions & 0 deletions providers/base/units/ethernet/manifest.pxu
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,8 @@ unit: manifest entry
id: has_ethernet_adapter
_name: An Ethernet Port
value-type: bool

unit: manifest entry
id: has_ethernet_wake_on_lan_support
_name: Wake-on-LAN support through Ethernet port
value-type: bool
10 changes: 10 additions & 0 deletions providers/base/units/ethernet/test-plan.pxu
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,16 @@ include:
bootstrap_include:
device

id: ethernet-wake-on-lan-cert-manual
unit: test plan
_name: Ethernet wake-on-LAN tests (manual)
_description: Ethernet wake-on-LAN tests (manual)
include:
ethernet/wol_S5_interface
ethernet/wol_S3_interface
bootstrap_include:
device

id: ethernet-cert-automated
unit: test plan
_name: Ethernet tests (automated)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ nested_part:
after-suspend-usb3-cert-full
after-suspend-usb-c-cert-full
# after-suspend-wireless-cert-full # auto only
ethernet-wake-on-lan-cert-manual
info-attachment-cert-manual
exclude:
keys/hibernate
Expand Down

0 comments on commit 572db70

Please sign in to comment.