/usr/lib/python3/dist-packages/plainbox/impl/providers/stubbox/jobs/stub.txt.in is in python3-plainbox 0.5.3-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 | id: stub/true
_summary: Passing shell job
_description:
Check success result from shell test case
plugin: shell
command: true; echo oops
id: stub/false
_summary: Failing shell job
_description:
Check failed result from shell test case
plugin: shell
command: false
id: stub/dependency/good
_summary: Passing shell job depending on a passing shell job
_description:
Check job is executed when dependency succeeds
plugin: shell
depends: stub/true
command: true
plugin: shell
id: stub/dependency/bad
depends: stub/false
command: true
_summary: Passing shell job depending on a failing shell job
_description:
Check job result is set to uninitiated when dependency fails
id: stub/sleep-60
_summary: Job sleeping for sixty seconds
_description: Sleep for sixty seconds
plugin: shell
command: sleep 60
id: stub/kill-ppid-if-KILLER-set
_summary: Job killing the parent, if KILLER=yes
_description: Kill $PPID if $KILLER is set to yes
plugin: shell
# XXX: why is this dependency here?
depends: stub/multilevel
command: if [ "$KILLER" == "yes" ]; then kill -9 $PPID; fi
# FIXME: stub/package once resource_object is supported
id: stub_package
_summary: Job determining a fake list of packages
_description:
This job generates a resource object with what looks
like a list of packages.
.
The actual packages are fake
plugin: resource
command: stub_package_list
id: stub/requirement/good
_summary: Passing shell job depending on an availalbe resource
_description:
Check job is executed when requirements are met
plugin: shell
requires: stub_package.name == "checkbox"
command: true
id: stub/requirement/bad
_summary: Passing shell job depending on an unavailable resource
_description:
Check job result is set to "not required on this system" when requirements are not met
plugin: shell
requires: stub_package.name == "unknown-package"
command: true
id: stub/manual
_summary: A simple manual job
_description:
PURPOSE:
This test checks that the manual plugin works fine
STEPS:
1. Add a comment
2. Set the result as passed
VERIFICATION:
Check that in the report the result is passed and the comment is displayed
plugin: manual
id: stub/user-interact
_summary: A simple user interaction job
_description:
PURPOSE:
This test checks that the user-interact plugin works fine
STEPS:
1. Read this description
2. Press the test button
VERIFICATION:
Check that in the report the result is passed
plugin: user-interact
command: true
id: stub/user-verify
_summary: A simple user verification job
_description:
PURPOSE:
This test checks that the user-verify plugin works fine
STEPS:
1. Read this description
2. Ensure that the command has been started automatically
3. Do not press the test button
4. Look at the output and determine the outcome of the test
VERIFICATION:
The command should have printed "Please select 'pass'"
plugin: user-verify
command: echo "Please select 'pass'"
id: stub/user-interact-verify
_summary: A simple user verification-interaction job
_description:
PURPOSE:
This test checks that the user-interact-verify plugin works fine
STEPS:
1. Read this description
2. Ensure that the command has not been started yet
3. Press the test button
4. Look at the output and determine the outcome of the test
VERIFICATION:
The command should have printed "Please select 'pass'"
plugin: user-interact-verify
command: echo "Please select 'pass'"
id: __local__
_summary: A job generating one more job
_description:
This job generates the stub/local/true job
plugin: local
command:
shopt -s extglob
cat $PLAINBOX_PROVIDER_DATA/../jobs/local.txt?(.in)
id: __multilevel__
_summary: A job generating more generator jobs
_description:
This job generates stub/multilevel which in turn can
generate stub/multilevel_1 and stub/multilevel_2
plugin: local
command:
shopt -s extglob
cat $PLAINBOX_PROVIDER_DATA/../jobs/multilevel.txt?(.in)
id: stub/root
_summary: A job that runs as root
_description:
Check that becoming root works
plugin: shell
user: root
command: test $(id -u) -eq 0
|