use crate::{FdbContext, FdbHealthReport, FdbResult, FoundationDbTenantName};
pub async fn verify_ready(
context: &FdbContext,
tenants: &[FoundationDbTenantName],
) -> FdbResult<FdbHealthReport> {
let health = context.health_report().await?;
verify_tenants_provisioned(context, tenants).await?;
Ok(health)
}
pub async fn verify_tenants_provisioned(
context: &FdbContext,
tenants: &[FoundationDbTenantName],
) -> FdbResult<()> {
for tenant in tenants {
let tenant_handle = context.open_tenant(*tenant).await?;
drop(tenant_handle);
}
Ok(())
}