Skip to content

Commit

Permalink
Add manifest for pdu cold reboot related jobs (Bugfix) (#1665)
Browse files Browse the repository at this point in the history
* Add manifest for pdu cold reboot related jobs

To prevent the job from being executed unintentionally.

*Nest ce-oem-power-automated-by-pdu test plan into ce-oem-automated plan
  • Loading branch information
rickwu666666 authored Dec 25, 2024
1 parent d0c75fb commit 23de911
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ _description:
STRESS_BOOT_WAIT_DELAY=60
unit: job
plugin: shell
imports: from com.canonical.plainbox import manifest
requires: manifest.has_pdu == 'True'
command:
sleep 5
[[ -z "$STRESS_BOOT_WAKEUP_DELAY" ]] && STRESS_BOOT_WAKEUP_DELAY=60
Expand All @@ -32,5 +34,7 @@ _summary: Post cold reboot service check
_description: Check there are no failed services after the cold reboot
unit: job
plugin: shell
imports: from com.canonical.plainbox import manifest
requires: manifest.has_pdu == 'True'
command: reboot_check_test.sh -s
estimated_duration: 1.0
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
unit: manifest entry
id: has_pdu
_name: Does network PDU available in test environment?
value-type: bool
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ _description: This creates baseline data sets which be considered the master
copies and all further tests will be compared against these.
unit: job
plugin: shell
imports: from com.canonical.plainbox import manifest
requires: manifest.has_pdu == 'True'
command:
reboot_check_test.sh -d "$PLAINBOX_SESSION_SHARE/before_reboot"
environ: LD_LIBRARY_PATH
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ nested_part:
before-suspend-ce-oem-spi-automated
ce-oem-gadget-automated
ce-oem-mir-automated
ce-oem-power-automated-by-pdu
certification_status_overrides:
apply blocker to .*

Expand Down

0 comments on commit 23de911

Please sign in to comment.