File Repository Type

Persistent storage of test results.

class stestr.repository.file.Repository(base)[source]

Disk based storage of test results.

This repository stores each stream it receives as a file in a directory. Indices are then built on top of this basic store.

This particular disk layout is subject to change at any time, as its primarily a bootstrapping exercise at this point. Any changes made are likely to have an automatic upgrade process.


Return the number of test runs this repository has stored.

Return count:The count of test runs stored in the repository.

Return the list of run_ids for a given metadata string.

Param:metadata: the metadata string to search for.
Returns:a list of any test_ids that have that metadata value.

Get a TestRun that contains all of and only current failing tests.

Returns:a TestRun.

Get a list of test ids in the repository

Returns:a list of test ids

Retrieve a TestRun object for run_id.

Parameters:run_id – The test run id to retrieve.
Returns:A TestRun object.

Return the run id for the most recently inserted test run.


Remove a run from the repository

class stestr.repository.file.RepositoryFactory[source]

Create a repository at url/path.


Open the repository at url.

Raise RepositoryNotFound if there is no repository at the given url.