()
| 1074 | } |
| 1075 | |
| 1076 | pub fn container_context() -> TestInfo { |
| 1077 | let test_kube = test_kubernetes(); |
| 1078 | let infra_ctx = infra_ctx(test_kube.as_ref()); |
| 1079 | let test_env = test_environment(test_kube.as_ref(), &infra_ctx.dns_provider().domain().to_string()); |
| 1080 | let target = deployment_target(&test_env, &infra_ctx); |
| 1081 | let temp_dir = format!( |
| 1082 | "{}/.qovery-workspace/{}", |
| 1083 | test_kube.context().workspace_root_dir(), |
| 1084 | test_kube.context().execution_id() |
| 1085 | ); |
| 1086 | |
| 1087 | TestInfo { |
| 1088 | context: test_env.containers[0] |
| 1089 | .to_tera_context(&target) |
| 1090 | .expect("Unable to get application context"), |
| 1091 | event_details: test_kube.get_event_details(Stage::Environment(EnvironmentStep::LoadConfiguration)), |
| 1092 | temp_dir, |
| 1093 | service_folder_type: "containers".to_string(), |
| 1094 | service_id: *test_env.containers[0].long_id(), |
| 1095 | } |
| 1096 | } |
| 1097 | |
| 1098 | fn test_container_with_ndots(test_kube: &dyn Kubernetes, ndots: u8) -> Container<AWSType> { |
| 1099 | let service_id = Uuid::new_v4(); |
no test coverage detected