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

Function test_driver_startup

crates/openshell-server/src/lib.rs:921–932  ·  view source on GitHub ↗
(
        config: &'a Config,
        file: Option<&'a super::config_file::ConfigFile>,
    )

Source from the content-addressed store, hash-verified

919 use crate::tls_test_utils::{generate_test_certs_with_ca, install_rustls_provider};
920
921 fn test_driver_startup<'a>(
922 config: &'a Config,
923 file: Option<&'a super::config_file::ConfigFile>,
924 ) -> crate::compute::driver_config::DriverStartupContext<'a> {
925 crate::compute::driver_config::DriverStartupContext {
926 file,
927 guest_tls: None,
928 gateway_port: openshell_core::config::DEFAULT_SERVER_PORT,
929 gateway_tls_enabled: false,
930 endpoint_overrides: &config.compute_driver_endpoints,
931 }
932 }
933
934 fn test_tls_acceptor() -> (TempDir, TlsAcceptor) {
935 install_rustls_provider();

Calls

no outgoing calls

Tested by

no test coverage detected