execute_scenario

Function execute_scenario 

Source
pub fn execute_scenario(
    ctx: &Ctx<'_>,
    backdrop: Backdrop,
    steps: Vec<Step>,
) -> Result<AssertResult>
Expand description

Execute a Backdrop + Steps sequence against the given context.

The Backdrop declares persistent scenario-wide state (long-running payloads, cgroups referenced by many Steps) while Steps express bounded per-phase behavior. The runtime sets up the Backdrop before the first Step, runs the Step sequence with per-Step teardown (cgroups removed, workload handles collected, payload handles killed at step boundary), and tears the Backdrop down at the end.