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

Function test_environment

lib-engine/tests/helm/mod.rs:144–169  ·  view source on GitHub ↗
(kube: &dyn Kubernetes, domain: &str)

Source from the content-addressed store, hash-verified

142}
143
144fn test_environment(kube: &dyn Kubernetes, domain: &str) -> Environment {
145 let app = test_application(kube, domain);
146 let app_id = *app.long_id();
147 let env_id = Uuid::new_v4();
148 Environment::new(
149 Uuid::new_v4(),
150 "my_test_environment".to_string(),
151 format!("env-{}-my-test-environment", to_short_id(&env_id)),
152 Uuid::new_v4(),
153 env_id,
154 Action::Create,
155 kube.context(),
156 1,
157 1,
158 vec![Box::new(app)],
159 vec![Box::new(test_container(kube))],
160 vec![Box::new(test_router(kube, app_id))],
161 vec![
162 Box::new(test_managed_database(kube)),
163 Box::new(test_container_database(kube)),
164 ],
165 vec![Box::new(test_job(kube))],
166 vec![], // TODO (helm): add helm charts test
167 vec![],
168 )
169}
170
171fn test_port() -> Port {
172 Port {

Callers 6

application_contextFunction · 0.85
container_contextFunction · 0.85
managed_database_contextFunction · 0.85
router_contextFunction · 0.85
job_contextFunction · 0.85

Calls 3

test_applicationFunction · 0.85
long_idMethod · 0.45
contextMethod · 0.45

Tested by

no test coverage detected