Skip to content

Commit

Permalink
Add manifest for pdu cold reboot related jobs
Browse files Browse the repository at this point in the history
To prevent the job from being executed unintentionally.
  • Loading branch information
rickwu666666 committed Dec 20, 2024
1 parent 4305ba1 commit 22d3ab1
Show file tree
Hide file tree
Showing 3 changed files with 10 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

0 comments on commit 22d3ab1

Please sign in to comment.