Skip to content

src/dazzle_back/pra/scenarios.py

Generated: 2026-03-30T04:38:46.577213+00:00

Commit: 615f1354a103

Language: python

Scope: dazzle_back

Purpose

Predefined test scenarios for PRA stress testing.

Each scenario configures a complete test run with: - Load profile - Generator configuration - Consumer setup - Success criteria

Key Exports

  • ScenarioType
  • SuccessCriteria
  • StressScenario
  • create_quick_scenario
  • create_standard_scenario
  • create_extended_scenario
  • create_burst_scenario
  • create_skewed_burst_scenario
  • create_backpressure_scenario
  • create_dlq_scenario
  • create_replay_scenario
  • create_failure_injection_scenario
  • create_full_scenario
  • get_scenario
  • list_scenarios
  • create_consumers

Dependencies

Imports

  • __future__.annotations
  • collections.abc.Callable
  • dataclasses.dataclass
  • dataclasses.field
  • enum.StrEnum
  • typing.Any
  • dazzle_back.metrics.MetricsCollector
  • consumers.ConsumerGroup
  • consumers.create_backpressure_test_consumers
  • consumers.create_dlq_test_consumers
  • consumers.create_full_test_consumers
  • consumers.create_projection_test_consumers
  • generator.GeneratorConfig
  • profiles.BurstProfile
  • profiles.FailureInjectionProfile
  • profiles.LoadProfile
  • profiles.ReplayProfile
  • profiles.SkewedBurstProfile
  • profiles.SteadyRampProfile
  • profiles.create_extended_test_profile

Event Interactions

None detected.

Invariants and Assumptions

No invariants documented.

Tests

  • tests/unit/test_vendor_mock_scenarios.py
  • tests/unit/test_pra_cli.py
  • tests/unit/test_pra_harness.py
  • tests/unit/test_pra_metrics.py
  • tests/unit/test_pra_load_generator.py

Notes

This page was automatically generated by tools/gen_reference_docs.py.