Test includes¶
In Juju, test includes are special bash
util functions designed to help in creating effective integration test
suites for juju
. This document gives the complete list (STILL UNDER CONSTRUCTION) along with quick descriptions.
|
Various check functions that help to analyse the output of cli commands and define if test passed or not. Most commonly used: |
|
|
Functions that clean up after test is complete. |
|
|
Colorize the output if the terminal supports doing this. |
|
|
Add date to test output. |
|
|
The ability to work with interactive commands with expect tool. |
|
|
Functions that allow to operate with juju bootstrap, models, controllers. E.g., |
|
|
Takes a model name and destroys the model. |
|
|
Ensures that there is a bootstrapped controller with model |
|
|
Generated random string. |
|
|
Run a command and immediately terminate the script when any error occurs. |
|
|
Functions which help to test the storages. |
|
|
Define the level of verbosity. There are three levels of verbosity. Both 1 and 2 will fail on any error – the difference is that 2 will also turn on |