Bash test step
The Bash test step executes an arbitrary shell script. The maximum length of the script is 10240 characters.
The step fails if the script exits with a non-zero exit code. The content of the standard output and standard error is recorded as the result of the test step and can be viewed using the Wenenu UI or accessed using the Wenenu API. The maximum combined length of the standard output and error is 524288 characters. The output is truncated if it exceeds the maximum length.
The variables of the test scenario are available as environment variables during the execution. |
Filesystem operations are available. Every test step runs in separate docker containers. Test steps in the same test scenario have a common directory mounted into the container, sharing files between test steps is possible. The mounted directory is under /tests which is the current directory when the test execution starts.
|
For security reasons, do not display any sensitive information in the step result. |
UI settings
Arbitrary name of the test step up to 64 characters |
|
Test agent that is going to execute the test step |
|
Arbitrary shell script that gets executed |
JSON
{
"displayName": "Bash test step",
"type": "bash",
"id": "d4e9be30-f0c3-4532-9c26-623b250a8af8",
"code": "echo \"Hello world\";\npwd",
"agent": {
"type": "standard",
"id": "162dff466f92c372005cf7055d006b77ac377e01c60ae59f942d74680f2496d1"
}
}
Arbitrary name of the test step up to 64 characters | |
Type of the test step, must be 'bash' | |
Version 4 unique identifier of the test step, must be unique within the test scenario | |
Arbitrary shell script that gets executed | |
Agent object defining the agent that will execute the test step |
Available modules, commands and libraries
Base packages and tools
The following command-line tools are available in addition to common GNU/Linux tools:
Name | Type | Version |
---|---|---|
sudo |
admin tool |
- |
git |
vcs |
2.17.1 |
az |
(azure cli) cloud tools |
2.12.0 |
wget |
http tool |
1.19.4 |
curl |
http tool |
7.58.0 |
gpg |
cryptography |
1.8.1 |
python3 |
programming |
3.6.9 |
php |
programming |
7.2.24 |
bash |
scripting |
4.4.20 |