Storage Configuration
Storage
The storage.yaml file describes a storage item for your tests.
Required Fields
| Attribute | Type | Description |
|---|---|---|
| name | string | Unique name of the storage, used for templating in tests. |
| uri | string | Unique Resource Identifier for the storage. |
Optional Fields
| Attribute | Type | Description |
|---|---|---|
| commands | array | List of shell commands to run in the test environment before any test steps. |
| paths | map | Named references to relative paths inside the storage. |
Example
Commands
Commands are executed in the test environment before any test steps. Use them to install dependencies, configure the environment, or perform setup tasks.
Examples
Installing system packages:
Installing Python packages:
Setting environment variables:
Referencing Paths in Tests
Define named paths in the paths map for easy reference in your test configuration. Use the template syntax [[storage.<storage_name>.<path_key>]] to refer to these paths.
Path Example
In this example, [[storage.example.bin]], [[storage.example.data]], and [[storage.example.config]] are replaced with the actual relative paths from your storage configuration.