Add overlay runtime import for packed events
This commit is contained in:
parent
8ca65cbbfb
commit
fa63cefb70
13 changed files with 1248 additions and 153 deletions
|
|
@ -74,6 +74,8 @@ pub struct ExpectedRuntimeSummary {
|
|||
#[serde(default)]
|
||||
pub packed_event_unsupported_record_count: Option<usize>,
|
||||
#[serde(default)]
|
||||
pub packed_event_blocked_missing_company_context_count: Option<usize>,
|
||||
#[serde(default)]
|
||||
pub event_runtime_record_count: Option<usize>,
|
||||
#[serde(default)]
|
||||
pub candidate_availability_count: Option<usize>,
|
||||
|
|
@ -361,6 +363,14 @@ impl ExpectedRuntimeSummary {
|
|||
));
|
||||
}
|
||||
}
|
||||
if let Some(count) = self.packed_event_blocked_missing_company_context_count {
|
||||
if actual.packed_event_blocked_missing_company_context_count != count {
|
||||
mismatches.push(format!(
|
||||
"packed_event_blocked_missing_company_context_count mismatch: expected {count}, got {}",
|
||||
actual.packed_event_blocked_missing_company_context_count
|
||||
));
|
||||
}
|
||||
}
|
||||
if let Some(count) = self.event_runtime_record_count {
|
||||
if actual.event_runtime_record_count != count {
|
||||
mismatches.push(format!(
|
||||
|
|
@ -531,6 +541,7 @@ pub enum FixtureStateOrigin {
|
|||
Inline,
|
||||
SnapshotPath(String),
|
||||
SaveSlicePath(String),
|
||||
ImportPath(String),
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
|
||||
|
|
@ -546,6 +557,8 @@ pub struct RawFixtureDocument {
|
|||
#[serde(default)]
|
||||
pub state_save_slice_path: Option<String>,
|
||||
#[serde(default)]
|
||||
pub state_import_path: Option<String>,
|
||||
#[serde(default)]
|
||||
pub commands: Vec<StepCommand>,
|
||||
#[serde(default)]
|
||||
pub expected_summary: ExpectedRuntimeSummary,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue