Skip to main content

setup_authenticated_grpc_database

Function setup_authenticated_grpc_database 

Source
pub async fn setup_authenticated_grpc_database(
    instance: Arc<Instance>,
    username: &str,
    password: &str,
) -> (Database, Arc<GrpcServer>)
Expand description

Starts a gRPC server backed by instance and returns a client authenticated as the supplied test user. The server handle keeps the listener alive.