Add integration tests based on testcontainers

This commit is contained in:
2026-10-25 19:47:25 +02:00
parent 2ccd67d64c
commit f4a6540df9
24 changed files with 8693 additions and 68 deletions
+27
View File
@@ -1462,6 +1462,33 @@ impl Application {
)
}
/// Test-only adapter boundary for Alpine fixture apply. The supplied
/// callback must report a completed fixture operation; observation and
/// verification still use the real Rustix reader and normal persistence
/// path. This method is not present in production builds.
#[cfg(test)]
#[allow(dead_code)] // Consumed by the M8.5 in-container scenario driver.
pub(crate) fn restart_with_fixture_apply(
&mut self,
preview: RestartPreview,
choice: RestartChoice,
fixture_apply: impl FnOnce(&str, RestartDeadline) -> RestartExecution,
) -> RestartReport {
self.restart_with_adapters(
preview,
choice,
fixture_apply,
|interface, timeout| {
runtime::transport::observe_interface(
interface,
timeout,
runtime::netlink::DecodeLimits::default(),
)
},
|store, saved, backup| store.install(saved, backup),
)
}
fn restart_with_adapters_and_clock(
&mut self,
preview: RestartPreview,