MCPcopy Create free account
hub / github.com/Qovery/engine / container_database_context

Function container_database_context

lib-engine/tests/helm/mod.rs:1307–1327  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1305}
1306
1307pub fn container_database_context() -> TestInfo {
1308 let test_kube = test_kubernetes();
1309 let infra_ctx = infra_ctx(test_kube.as_ref());
1310 let test_env = test_environment(test_kube.as_ref(), &infra_ctx.dns_provider().domain().to_string());
1311 let target = deployment_target(&test_env, &infra_ctx);
1312 let temp_dir = format!(
1313 "{}/.qovery-workspace/{}",
1314 test_kube.context().workspace_root_dir(),
1315 test_kube.context().execution_id()
1316 );
1317
1318 TestInfo {
1319 context: test_env.databases[1]
1320 .to_tera_context(&target)
1321 .expect("Unable to get application context"),
1322 event_details: test_kube.get_event_details(Stage::Environment(EnvironmentStep::LoadConfiguration)),
1323 temp_dir,
1324 service_folder_type: "databases".to_string(),
1325 service_id: *test_env.databases[1].long_id(),
1326 }
1327}
1328
1329pub fn router_context() -> TestInfo {
1330 let test_kube = test_kubernetes();

Callers 1

q_container_psql_testFunction · 0.85

Calls 11

test_kubernetesFunction · 0.85
infra_ctxFunction · 0.85
test_environmentFunction · 0.85
deployment_targetFunction · 0.85
EnvironmentClass · 0.85
as_refMethod · 0.80
dns_providerMethod · 0.80
domainMethod · 0.45
to_tera_contextMethod · 0.45
get_event_detailsMethod · 0.45
long_idMethod · 0.45

Tested by

no test coverage detected