()
| 824 | } |
| 825 | |
| 826 | pub fn application_context() -> TestInfo { |
| 827 | let test_kube = test_kubernetes(); |
| 828 | let infra_ctx = infra_ctx(test_kube.as_ref()); |
| 829 | let test_env = test_environment(test_kube.as_ref(), &infra_ctx.dns_provider().domain().to_string()); |
| 830 | let target = deployment_target(&test_env, &infra_ctx); |
| 831 | let temp_dir = format!( |
| 832 | "{}/.qovery-workspace/{}", |
| 833 | test_kube.context().workspace_root_dir(), |
| 834 | test_kube.context().execution_id() |
| 835 | ); |
| 836 | |
| 837 | TestInfo { |
| 838 | context: test_env.applications[0] |
| 839 | .to_tera_context(&target) |
| 840 | .expect("Unable to get application context"), |
| 841 | event_details: test_kube.get_event_details(Stage::Environment(EnvironmentStep::LoadConfiguration)), |
| 842 | temp_dir, |
| 843 | service_folder_type: "applications".to_string(), |
| 844 | service_id: *test_env.applications[0].long_id(), |
| 845 | } |
| 846 | } |
| 847 | |
| 848 | fn test_application_with_ndots(test_kube: &dyn Kubernetes, domain: &str, ndots: u8) -> Application<AWSType> { |
| 849 | let long_id = Uuid::new_v4(); |
no test coverage detected