File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed
cardano_node_tests/cluster_management Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change 1- """Functionality for getting a cluster instance that has required resources available."""
1+ """Functionality for selecting a cluster instance that has required resources available.
2+
3+ Resources can be requested by name (string).
4+
5+ It is also possible to use filters. A filter is a class that gets a list of all unavailable
6+ resources and returns a list of resources that should be used. An example is `OneOf`, which returns
7+ one usable resource from a given list of resources. The unavailable resources passed to the filter
8+ include resources that are unavailable because they are locked, and also resources that were
9+ already selected by preceding filters in the same request.
10+
11+ It is possible to use multiple `OneOf` filters in a single request. For example, using `OneOf`
12+ filter with the same set of resources twice will result in selecting two different resources from
13+ that set.
14+ """
215
316import random
417import typing as tp
You can’t perform that action at this time.
0 commit comments