mirror of
https://github.com/jlengrand/engine.git
synced 2026-03-10 08:11:21 +00:00
refactor: rename tests
This commit is contained in:
@@ -20,7 +20,7 @@ use self::test_utilities::utilities::{engine_run_test, generate_id};
|
||||
**/
|
||||
|
||||
// to check overload between several databases and apps
|
||||
#[cfg(feature = "test-self-hosted-aws")]
|
||||
#[cfg(feature = "test-aws-self-hosted")]
|
||||
#[test]
|
||||
fn deploy_an_environment_with_3_databases_and_3_apps() {
|
||||
init();
|
||||
@@ -58,7 +58,7 @@ fn deploy_an_environment_with_3_databases_and_3_apps() {
|
||||
}
|
||||
|
||||
// this test ensure containers databases are never restarted, even in failover environment case
|
||||
#[cfg(feature = "test-self-hosted-aws")]
|
||||
#[cfg(feature = "test-aws-self-hosted")]
|
||||
#[test]
|
||||
fn postgresql_failover_dev_environment_with_all_options() {
|
||||
init();
|
||||
@@ -124,7 +124,7 @@ fn postgresql_failover_dev_environment_with_all_options() {
|
||||
}
|
||||
|
||||
// Ensure a full environment can run correctly
|
||||
#[cfg(feature = "test-self-hosted-aws")]
|
||||
#[cfg(feature = "test-aws-self-hosted")]
|
||||
#[test]
|
||||
fn postgresql_deploy_a_working_development_environment_with_all_options() {
|
||||
init();
|
||||
@@ -169,7 +169,7 @@ fn postgresql_deploy_a_working_development_environment_with_all_options() {
|
||||
}
|
||||
|
||||
// Ensure redeploy works as expected
|
||||
#[cfg(feature = "test-self-hosted-aws")]
|
||||
#[cfg(feature = "test-aws-self-hosted")]
|
||||
#[test]
|
||||
fn postgresql_deploy_a_working_environment_and_redeploy() {
|
||||
engine_run_test(|| {
|
||||
@@ -370,7 +370,7 @@ fn test_postgresql_configuration(context: Context, mut environment: Environment,
|
||||
}
|
||||
|
||||
// Postgres environment environment
|
||||
#[cfg(feature = "test-self-hosted-aws")]
|
||||
#[cfg(feature = "test-aws-self-hosted")]
|
||||
#[test]
|
||||
fn postgresql_v10_deploy_a_working_dev_environment() {
|
||||
let context = context();
|
||||
@@ -383,7 +383,7 @@ fn postgresql_v10_deploy_a_working_dev_environment() {
|
||||
);
|
||||
}
|
||||
|
||||
#[cfg(feature = "test-self-hosted-aws")]
|
||||
#[cfg(feature = "test-aws-self-hosted")]
|
||||
#[test]
|
||||
fn postgresql_v11_deploy_a_working_dev_environment() {
|
||||
let context = context();
|
||||
@@ -396,7 +396,7 @@ fn postgresql_v11_deploy_a_working_dev_environment() {
|
||||
);
|
||||
}
|
||||
|
||||
#[cfg(feature = "test-self-hosted-aws")]
|
||||
#[cfg(feature = "test-aws-self-hosted")]
|
||||
#[test]
|
||||
fn postgresql_v12_deploy_a_working_dev_environment() {
|
||||
let context = context();
|
||||
@@ -410,7 +410,7 @@ fn postgresql_v12_deploy_a_working_dev_environment() {
|
||||
}
|
||||
|
||||
// Postgres production environment
|
||||
#[cfg(feature = "test-managed-services-aws")]
|
||||
#[cfg(feature = "test-aws-managed-services")]
|
||||
#[test]
|
||||
fn postgresql_v10_deploy_a_working_prod_environment() {
|
||||
let context = context();
|
||||
@@ -424,7 +424,7 @@ fn postgresql_v10_deploy_a_working_prod_environment() {
|
||||
);
|
||||
}
|
||||
|
||||
#[cfg(feature = "test-managed-services-aws")]
|
||||
#[cfg(feature = "test-aws-managed-services")]
|
||||
#[test]
|
||||
fn postgresql_v11_deploy_a_working_prod_environment() {
|
||||
let context = context();
|
||||
@@ -438,7 +438,7 @@ fn postgresql_v11_deploy_a_working_prod_environment() {
|
||||
);
|
||||
}
|
||||
|
||||
#[cfg(feature = "test-managed-services-aws")]
|
||||
#[cfg(feature = "test-aws-managed-services")]
|
||||
#[test]
|
||||
fn postgresql_v12_deploy_a_working_prod_environment() {
|
||||
let context = context();
|
||||
@@ -569,7 +569,7 @@ fn test_mongodb_configuration(context: Context, mut environment: Environment, ve
|
||||
}
|
||||
|
||||
// development environment
|
||||
#[cfg(feature = "test-self-hosted-aws")]
|
||||
#[cfg(feature = "test-aws-self-hosted")]
|
||||
#[test]
|
||||
fn mongodb_v3_6_deploy_a_working_dev_environment() {
|
||||
let context = context();
|
||||
@@ -582,7 +582,7 @@ fn mongodb_v3_6_deploy_a_working_dev_environment() {
|
||||
);
|
||||
}
|
||||
|
||||
#[cfg(feature = "test-self-hosted-aws")]
|
||||
#[cfg(feature = "test-aws-self-hosted")]
|
||||
#[test]
|
||||
fn mongodb_v4_0_deploy_a_working_dev_environment() {
|
||||
let context = context();
|
||||
@@ -595,7 +595,7 @@ fn mongodb_v4_0_deploy_a_working_dev_environment() {
|
||||
);
|
||||
}
|
||||
|
||||
#[cfg(feature = "test-self-hosted-aws")]
|
||||
#[cfg(feature = "test-aws-self-hosted")]
|
||||
#[test]
|
||||
fn mongodb_v4_2_deploy_a_working_dev_environment() {
|
||||
let context = context();
|
||||
@@ -608,7 +608,7 @@ fn mongodb_v4_2_deploy_a_working_dev_environment() {
|
||||
);
|
||||
}
|
||||
|
||||
#[cfg(feature = "test-self-hosted-aws")]
|
||||
#[cfg(feature = "test-aws-self-hosted")]
|
||||
#[test]
|
||||
fn mongodb_v4_4_deploy_a_working_dev_environment() {
|
||||
let context = context();
|
||||
@@ -622,7 +622,7 @@ fn mongodb_v4_4_deploy_a_working_dev_environment() {
|
||||
}
|
||||
|
||||
// MongoDB production environment (DocumentDB)
|
||||
#[cfg(feature = "test-managed-services-aws")]
|
||||
#[cfg(feature = "test-aws-managed-services")]
|
||||
#[test]
|
||||
fn mongodb_v3_6_deploy_a_working_prod_environment() {
|
||||
let context = context();
|
||||
@@ -636,7 +636,7 @@ fn mongodb_v3_6_deploy_a_working_prod_environment() {
|
||||
);
|
||||
}
|
||||
|
||||
#[cfg(feature = "test-managed-services-aws")]
|
||||
#[cfg(feature = "test-aws-managed-services")]
|
||||
#[test]
|
||||
fn mongodb_v4_0_deploy_a_working_prod_environment() {
|
||||
let context = context();
|
||||
@@ -758,7 +758,7 @@ fn test_mysql_configuration(context: Context, mut environment: Environment, vers
|
||||
}
|
||||
|
||||
// MySQL self-hosted environment
|
||||
#[cfg(feature = "test-self-hosted-aws")]
|
||||
#[cfg(feature = "test-aws-self-hosted")]
|
||||
#[test]
|
||||
fn mysql_v5_7_deploy_a_working_dev_environment() {
|
||||
let context = context();
|
||||
@@ -771,7 +771,7 @@ fn mysql_v5_7_deploy_a_working_dev_environment() {
|
||||
);
|
||||
}
|
||||
|
||||
#[cfg(feature = "test-self-hosted-aws")]
|
||||
#[cfg(feature = "test-aws-self-hosted")]
|
||||
#[test]
|
||||
fn mysql_v8_deploy_a_working_dev_environment() {
|
||||
let context = context();
|
||||
@@ -780,7 +780,7 @@ fn mysql_v8_deploy_a_working_dev_environment() {
|
||||
}
|
||||
|
||||
// MySQL production environment (RDS)
|
||||
#[cfg(feature = "test-managed-services-aws")]
|
||||
#[cfg(feature = "test-aws-managed-services")]
|
||||
#[test]
|
||||
fn mysql_v5_7_deploy_a_working_prod_environment() {
|
||||
let context = context();
|
||||
@@ -794,7 +794,7 @@ fn mysql_v5_7_deploy_a_working_prod_environment() {
|
||||
);
|
||||
}
|
||||
|
||||
#[cfg(feature = "test-managed-services-aws")]
|
||||
#[cfg(feature = "test-aws-managed-services")]
|
||||
#[test]
|
||||
fn mysql_v8_0_deploy_a_working_prod_environment() {
|
||||
let context = context();
|
||||
@@ -916,7 +916,7 @@ fn test_redis_configuration(context: Context, mut environment: Environment, vers
|
||||
}
|
||||
|
||||
// Redis self-hosted environment
|
||||
#[cfg(feature = "test-self-hosted-aws")]
|
||||
#[cfg(feature = "test-aws-self-hosted")]
|
||||
#[test]
|
||||
fn redis_v5_deploy_a_working_dev_environment() {
|
||||
let context = context();
|
||||
@@ -924,7 +924,7 @@ fn redis_v5_deploy_a_working_dev_environment() {
|
||||
test_redis_configuration(context, environment, "5", "redis_v5_deploy_a_working_dev_environment");
|
||||
}
|
||||
|
||||
#[cfg(feature = "test-self-hosted-aws")]
|
||||
#[cfg(feature = "test-aws-self-hosted")]
|
||||
#[test]
|
||||
fn redis_v6_deploy_a_working_dev_environment() {
|
||||
let context = context();
|
||||
@@ -934,7 +934,7 @@ fn redis_v6_deploy_a_working_dev_environment() {
|
||||
}
|
||||
|
||||
// Redis production environment (Elasticache)
|
||||
#[cfg(feature = "test-managed-services-aws")]
|
||||
#[cfg(feature = "test-aws-managed-services")]
|
||||
#[test]
|
||||
fn redis_v5_deploy_a_working_prod_environment() {
|
||||
let context = context();
|
||||
@@ -943,7 +943,7 @@ fn redis_v5_deploy_a_working_prod_environment() {
|
||||
test_redis_configuration(context, environment, "5", "redis_v5_deploy_a_working_prod_environment");
|
||||
}
|
||||
|
||||
#[cfg(feature = "test-managed-services-aws")]
|
||||
#[cfg(feature = "test-aws-managed-services")]
|
||||
#[test]
|
||||
fn redis_v6_deploy_a_working_prod_environment() {
|
||||
let context = context();
|
||||
|
||||
@@ -84,7 +84,7 @@ pub fn delete_environment(context: &Context, environment_action: &EnvironmentAct
|
||||
tx.commit()
|
||||
}
|
||||
|
||||
#[cfg(feature = "test-self-hosted-aws")]
|
||||
#[cfg(feature = "test-aws-self-hosted")]
|
||||
#[test]
|
||||
fn deploy_a_working_environment_with_no_router_on_aws_eks() {
|
||||
engine_run_test(|| {
|
||||
@@ -118,7 +118,7 @@ fn deploy_a_working_environment_with_no_router_on_aws_eks() {
|
||||
})
|
||||
}
|
||||
|
||||
#[cfg(feature = "test-self-hosted-aws")]
|
||||
#[cfg(feature = "test-aws-self-hosted")]
|
||||
#[test]
|
||||
fn deploy_a_not_working_environment_with_no_router_on_aws_eks() {
|
||||
engine_run_test(|| {
|
||||
@@ -156,7 +156,7 @@ fn deploy_a_not_working_environment_with_no_router_on_aws_eks() {
|
||||
})
|
||||
}
|
||||
|
||||
#[cfg(feature = "test-self-hosted-aws")]
|
||||
#[cfg(feature = "test-aws-self-hosted")]
|
||||
#[test]
|
||||
fn build_with_buildpacks_and_deploy_a_working_environment() {
|
||||
engine_run_test(|| {
|
||||
@@ -200,7 +200,7 @@ fn build_with_buildpacks_and_deploy_a_working_environment() {
|
||||
})
|
||||
}
|
||||
|
||||
#[cfg(feature = "test-self-hosted-aws")]
|
||||
#[cfg(feature = "test-aws-self-hosted")]
|
||||
#[test]
|
||||
fn deploy_a_working_environment_with_domain() {
|
||||
engine_run_test(|| {
|
||||
@@ -279,7 +279,7 @@ fn deploy_a_working_environment_with_custom_domain() {
|
||||
})
|
||||
}
|
||||
|
||||
#[cfg(feature = "test-self-hosted-aws")]
|
||||
#[cfg(feature = "test-aws-self-hosted")]
|
||||
#[test]
|
||||
fn deploy_a_working_environment_with_storage_on_aws_eks() {
|
||||
engine_run_test(|| {
|
||||
@@ -332,7 +332,7 @@ fn deploy_a_working_environment_with_storage_on_aws_eks() {
|
||||
}
|
||||
|
||||
// to check if app redeploy or not, it shouldn't
|
||||
#[cfg(feature = "test-self-hosted-aws")]
|
||||
#[cfg(feature = "test-aws-self-hosted")]
|
||||
#[test]
|
||||
fn redeploy_same_app_with_ebs() {
|
||||
engine_run_test(|| {
|
||||
@@ -475,7 +475,7 @@ fn deploy_a_working_production_environment_with_all_options_on_aws_eks() {
|
||||
};
|
||||
}*/
|
||||
|
||||
#[cfg(feature = "test-self-hosted-aws")]
|
||||
#[cfg(feature = "test-aws-self-hosted")]
|
||||
#[test]
|
||||
fn deploy_a_not_working_environment_and_after_working_environment() {
|
||||
engine_run_test(|| {
|
||||
@@ -532,7 +532,7 @@ fn deploy_a_not_working_environment_and_after_working_environment() {
|
||||
})
|
||||
}
|
||||
|
||||
#[cfg(feature = "test-self-hosted-aws")]
|
||||
#[cfg(feature = "test-aws-self-hosted")]
|
||||
#[test]
|
||||
fn deploy_ok_fail_fail_ok_environment() {
|
||||
init();
|
||||
@@ -608,7 +608,7 @@ fn deploy_ok_fail_fail_ok_environment() {
|
||||
};
|
||||
}
|
||||
|
||||
#[cfg(feature = "test-self-hosted-aws")]
|
||||
#[cfg(feature = "test-aws-self-hosted")]
|
||||
#[test]
|
||||
fn deploy_a_non_working_environment_with_no_failover_on_aws_eks() {
|
||||
engine_run_test(|| {
|
||||
@@ -642,7 +642,7 @@ fn deploy_a_non_working_environment_with_no_failover_on_aws_eks() {
|
||||
})
|
||||
}
|
||||
|
||||
#[cfg(feature = "test-self-hosted-aws")]
|
||||
#[cfg(feature = "test-aws-self-hosted")]
|
||||
#[test]
|
||||
fn deploy_a_non_working_environment_with_a_working_failover_on_aws_eks() {
|
||||
init();
|
||||
@@ -734,7 +734,7 @@ fn deploy_a_non_working_environment_with_a_working_failover_on_aws_eks() {
|
||||
// };
|
||||
// }
|
||||
|
||||
#[cfg(feature = "test-self-hosted-aws")]
|
||||
#[cfg(feature = "test-aws-self-hosted")]
|
||||
#[test]
|
||||
fn deploy_a_non_working_environment_with_a_non_working_failover_on_aws_eks() {
|
||||
init();
|
||||
|
||||
@@ -114,7 +114,7 @@ fn create_and_destroy_eks_cluster(region: &str, test_name: &str) {
|
||||
It is useful to keep 2 clusters deployment tests to run in // to validate there is no name collision (overlaping)
|
||||
*/
|
||||
|
||||
#[cfg(feature = "test-infra-aws")]
|
||||
#[cfg(feature = "test-aws-infra")]
|
||||
#[test]
|
||||
fn create_and_destroy_eks_cluster_in_eu_west_3() {
|
||||
let region = "eu-west-3";
|
||||
@@ -124,7 +124,7 @@ fn create_and_destroy_eks_cluster_in_eu_west_3() {
|
||||
);
|
||||
}
|
||||
|
||||
#[cfg(feature = "test-infra-aws")]
|
||||
#[cfg(feature = "test-aws-infra")]
|
||||
#[test]
|
||||
fn create_and_destroy_eks_cluster_in_us_east_2() {
|
||||
let region = "us-east-2";
|
||||
|
||||
Reference in New Issue
Block a user