Storages¶
TL;DR — Storages define where Runner writes and reads persisted runtime objects for act and assert commands.
When to use¶
The Storages section contains external storage definitions that QaaS runtime objects can be stored in or retrieved from when using the qaas act or qaas assert commands. Currently, the main stored object is SessionData, which is generated from Sessions and then used by Assertions and DataSources.
YAML configuration¶
Use Storages[] for storage entries. Choose the storage type that matches the persistence location, such as FileSystem or S3.
The complete schema-derived field list is in the configuration table. The copy-ready scaffold is in the YAML scaffold.
Available Storage Types¶
FileSystem¶
Stores or retrieves data from a path in the file system.
Storage During Case Run
During a case run the storage stores or retrieves the data under a folder named after the case it runs under, with all illegal folder name characters replaced with _. For example, case http://subCase/regular.yaml stores the data under the folder http___subCase_regular.yaml.
S3¶
Stores or retrieves data from an S3 bucket at a configured prefix.
Storage During Case Run
During a case run the storage stores or retrieves the data under an additional prefix named after the case it runs under, with all / or \ characters replaced with _ and a trailing / added. For example, case http://subCase/regular.yaml adds the prefix http:__subCase_regular.yaml/ before the case's data.
Edge cases¶
- Case runs add case-specific storage paths so case data does not collide.
- Keep
SessionDatapersistence aligned with the laterassertcommand that reads it. - Use the same storage names across act and assert phases when the phases run separately.