MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / test_driver_with_config

Function test_driver_with_config

crates/openshell-driver-docker/src/tests.rs:180–196  ·  view source on GitHub ↗
(config: DockerDriverRuntimeConfig)

Source from the content-addressed store, hash-verified

178}
179
180fn test_driver_with_config(config: DockerDriverRuntimeConfig) -> DockerComputeDriver {
181 let allow_all_default_gpu = config.allow_all_default_gpu;
182 DockerComputeDriver {
183 docker: Arc::new(
184 Docker::connect_with_http("http://127.0.0.1:2375", 1, bollard::API_DEFAULT_VERSION)
185 .expect("construct test Docker client"),
186 ),
187 config,
188 events: broadcast::channel(WATCH_BUFFER).0,
189 pending: Arc::new(tokio::sync::Mutex::new(HashMap::new())),
190 supervisor_readiness: Arc::new(DisconnectedSupervisorReadiness),
191 gpu_selector: Arc::new(CdiGpuDefaultSelector::new(
192 CdiGpuInventory::default(),
193 allow_all_default_gpu,
194 )),
195 }
196}
197
198#[test]
199fn container_visible_endpoint_rewrites_loopback_hosts() {

Calls

no outgoing calls

Tested by

no test coverage detected