(config: DockerDriverRuntimeConfig)
| 178 | } |
| 179 | |
| 180 | fn 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] |
| 199 | fn container_visible_endpoint_rewrites_loopback_hosts() { |
no outgoing calls
no test coverage detected