avocado_i2n.cartgraph.worker module¶
Utility for the main test suite substructures like test objects.
SUMMARY¶
Copyright: Intra2net AG
INTERFACE¶
- class avocado_i2n.cartgraph.worker.TestEnvironment(id: str)[source]¶
Bases:
objectGeneric environment isolating a given test.
- class avocado_i2n.cartgraph.worker.TestSwarm(id: str, workers: list[TestWorker] = None)[source]¶
Bases:
TestEnvironmentA wrapper for a test swarm of workers traversing the graph.
- run_swarms = {}¶
- class avocado_i2n.cartgraph.worker.TestWorker(id_net: NetObject)[source]¶
Bases:
TestEnvironmentA wrapper for a test worker traversing the graph.
- property params: Params¶
Parameters (cache) property.
- property restrs: dict[str, str]¶
Restrictions property.
- overwrite_with_slot(slot: str) None[source]¶
Overwrite worker parameters with configuration extrapolated from a slot string.
- Parameters:
slot – slot string in the format “gateway/host”