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

Function test_health_store

crates/openshell-server/tests/common/mod.rs:628–634  ·  view source on GitHub ↗

Build an in-memory store sufficient for wiring `health_router` in tests where the persistence layer itself is not under test.

()

Source from the content-addressed store, hash-verified

626/// Build an in-memory store sufficient for wiring `health_router` in tests
627/// where the persistence layer itself is not under test.
628pub async fn test_health_store() -> Arc<Store> {
629 Arc::new(
630 Store::connect("sqlite::memory:")
631 .await
632 .expect("connect in-memory sqlite store for tests"),
633 )
634}
635
636/// Parse PEM cert bytes into a `RootCertStore`.
637pub fn build_tls_root(cert_pem: &[u8]) -> RootCertStore {

Callers 1

start_test_serverFunction · 0.70

Calls 1

connectFunction · 0.85

Tested by

no test coverage detected