()
| 1283 | } |
| 1284 | |
| 1285 | pub fn managed_database_context() -> TestInfo { |
| 1286 | let test_kube = test_kubernetes(); |
| 1287 | let infra_ctx = infra_ctx(test_kube.as_ref()); |
| 1288 | let test_env = test_environment(test_kube.as_ref(), &infra_ctx.dns_provider().domain().to_string()); |
| 1289 | let target = deployment_target(&test_env, &infra_ctx); |
| 1290 | let temp_dir = format!( |
| 1291 | "{}/.qovery-workspace/{}", |
| 1292 | test_kube.context().workspace_root_dir(), |
| 1293 | test_kube.context().execution_id() |
| 1294 | ); |
| 1295 | |
| 1296 | TestInfo { |
| 1297 | context: test_env.databases[0] |
| 1298 | .to_tera_context(&target) |
| 1299 | .expect("Unable to get application context"), |
| 1300 | event_details: test_kube.get_event_details(Stage::Environment(EnvironmentStep::LoadConfiguration)), |
| 1301 | temp_dir, |
| 1302 | service_folder_type: "databases".to_string(), |
| 1303 | service_id: *test_env.databases[0].long_id(), |
| 1304 | } |
| 1305 | } |
| 1306 | |
| 1307 | pub fn container_database_context() -> TestInfo { |
| 1308 | let test_kube = test_kubernetes(); |
no test coverage detected