mirror of
https://github.com/NVIDIA/OpenShell.git
synced 2026-10-27 07:03:17 +08:00
test(runtime): update boundary fixtures for current contracts
Signed-off-by: Drew Newberry <anewberry@nvidia.com>
This commit is contained in:
@@ -49,7 +49,8 @@ mod tests {
|
||||
},
|
||||
"landlock_abi": 3, "landlock_allow_deny": true,
|
||||
"udp_dns_round_trip": true, "tcp_dns_round_trip": true,
|
||||
"tcp_allow_round_trip": true, "tcp_deny_round_trip": true
|
||||
"tcp_allow_round_trip": true, "tcp_deny_round_trip": true,
|
||||
"socket_loopback_confinement": true
|
||||
});
|
||||
let properties = LinuxBoundaryAuditValidator.validate(&evidence).unwrap();
|
||||
let audit: crate::boundary_protocol::NativeLinuxSandboxAuditEvidence =
|
||||
|
||||
@@ -357,6 +357,18 @@ impl NetworkMediationSource for TestIo {
|
||||
|
||||
#[tonic::async_trait]
|
||||
impl BoundaryProcess for TestIo {
|
||||
async fn attach(
|
||||
&self,
|
||||
) -> std::result::Result<openshell_isolation_interface::contract::ProcessAttachment, BackendError>
|
||||
{
|
||||
Ok(openshell_isolation_interface::contract::ProcessAttachment {
|
||||
stdin: Box::new(tokio::io::sink()),
|
||||
stdout: Box::new(tokio::io::empty()),
|
||||
stderr: Some(Box::new(tokio::io::empty())),
|
||||
terminal: None,
|
||||
})
|
||||
}
|
||||
|
||||
async fn wait(&self) -> std::result::Result<BoundaryExitStatus, BackendError> {
|
||||
Ok(BoundaryExitStatus::Exited(0))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user