Expand description
Integration-tier test support for rust-camel (ADR-0069).
This crate owns the scenario model: the parsing of .test.yaml
documents that declare a scenario: section, the ordered action
vocabulary (send, receive, sleep, validate), endpoint
references with partner provisioning, and the document-level rules
that keep the scenario vocabulary separate from the unit-tier
vocabulary (inputs, expects, intercepts).
The tier derivation, the layered environment source, the action runner, and the partner adapters are built on the model types defined here.
The system under test is always an embedded boot. The harness never
drives a deployed camel run process.
Re-exports§
pub use adapters::DirectStimulus;pub use adapters::FakeAdapter;pub use adapters::FakeRecorder;pub use adapters::IncomingMessage;pub use adapters::OutgoingMessage;pub use adapters::PartnerAdapter;pub use adapters::PartnerRouter;pub use adapters::ReceiveError;pub use adapters::ReceiveTimeout;pub use adapters::RecordedSend;pub use adapters::TransportError;pub use boot_scenario::ScenarioRun;pub use boot_scenario::boot_scenario;pub use document::CountBound;pub use document::DocError;pub use document::EndpointRef;pub use document::Expectation;pub use document::PartnerExpectation;pub use document::PartnerFault;pub use document::PartnerScript;pub use document::PartnerScriptResponse;pub use document::PathFilter;pub use document::Provisioning;pub use document::RouteSource;pub use document::ScenarioAction;pub use document::ScenarioDocument;pub use document::ScenarioTarget;pub use document::ValidateExpectation;pub use document::parse_scenario_document;pub use env_layers::AmbientLookup;pub use env_layers::LayeredEnv;pub use env_layers::ambient_std;pub use runner::DocumentOutcome;pub use runner::ScenarioFailure;pub use runner::ScenarioVars;pub use runner::ScenarioVerdict;pub use runner::run_scenario;pub use runner::run_scenario_document;pub use tier::DocumentInputs;pub use tier::Tier;pub use tier::derive_tier;
Modules§
- adapters
- Partner adapters and the endpoint-keyed router (ADR-0069 §5, §7).
- boot_
scenario - The embedded FULL-tier scenario boot (ADR-0069 sections 4, 5, 10).
- document
- Scenario document model, parsing, and validation (ADR-0069 sections 1-2).
- env_
layers - Layered hermetic environment source (ADR-0069 §4).
- runner
- The scenario action runner (ADR-0069 §5, §7).
- tier
- Pure tier derivation (ADR-0069 section 1).