From ef8636830a6b3e4d84633b88da23e27509992b8b Mon Sep 17 00:00:00 2001 From: Romain GERARD Date: Fri, 25 Mar 2022 16:29:31 +0100 Subject: [PATCH] Add minimal phase tests --- Cargo.toml | 13 ++++++++++--- tests/aws/aws_environment.rs | 4 ++-- tests/digitalocean/do_environment.rs | 4 ++-- tests/scaleway/scw_environment.rs | 4 ++-- 4 files changed, 16 insertions(+), 9 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 4c46c5cf..7f5b924b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -80,7 +80,13 @@ tracing-test = "0.1.0" [features] default = [] -test-all = ["test-all-self-hosted", "test-all-infra", "test-all-managed-services", "test-all-whole-enchilada"] +test-all = ["test-all-minimal", "test-all-self-hosted", "test-all-infra", "test-all-managed-services", "test-all-whole-enchilada"] + +# Minimal depencies test (i.e: build, deploy nothing managed) +test-aws-minimal = [] +test-do-minimal = [] +test-scw-minimal = [] +test-all-minimal = ["test-aws-minimal", "test-do-minimal", "test-scw-minimal"] # functionnal tests by type test-aws-self-hosted = [] @@ -109,5 +115,6 @@ test-do-all = ["test-do-infra", "test-do-managed-services", "test-do-self-hosted test-scw-all = ["test-scw-infra", "test-scw-managed-services", "test-scw-self-hosted", "test-scw-whole-enchilada"] # functionnal test with only a k8s cluster as a dependency -test-with-kube = [] -test-with-docker = [] +test-local-kube = [] +test-local-docker = [] +test-all-local = ["test-local-kube", "test-local-docker"] diff --git a/tests/aws/aws_environment.rs b/tests/aws/aws_environment.rs index c14c00ef..c90ae51b 100644 --- a/tests/aws/aws_environment.rs +++ b/tests/aws/aws_environment.rs @@ -16,7 +16,7 @@ use test_utilities::aws::aws_default_engine_config; use test_utilities::utilities::{context, init, kubernetes_config_path}; use tracing::{span, Level}; -#[cfg(feature = "test-aws-self-hosted")] +#[cfg(feature = "test-aws-minimal")] #[named] #[test] fn aws_test_build_phase() { @@ -67,7 +67,7 @@ fn aws_test_build_phase() { }) } -#[cfg(feature = "test-aws-self-hosted")] +#[cfg(feature = "test-aws-minimal")] #[named] #[test] fn deploy_a_working_environment_with_no_router_on_aws_eks() { diff --git a/tests/digitalocean/do_environment.rs b/tests/digitalocean/do_environment.rs index 0d036a95..a15cf579 100644 --- a/tests/digitalocean/do_environment.rs +++ b/tests/digitalocean/do_environment.rs @@ -20,7 +20,7 @@ use tracing::{span, warn, Level}; // Note: All those tests relies on a test cluster running on DigitalOcean infrastructure. // This cluster should be live in order to have those tests passing properly. -#[cfg(feature = "test-do-self-hosted")] +#[cfg(feature = "test-do-minimal")] #[named] #[test] fn digitalocean_test_build_phase() { @@ -68,7 +68,7 @@ fn digitalocean_test_build_phase() { }) } -#[cfg(feature = "test-do-self-hosted")] +#[cfg(feature = "test-do-minimal")] #[named] #[test] fn digitalocean_doks_deploy_a_working_environment_with_no_router() { diff --git a/tests/scaleway/scw_environment.rs b/tests/scaleway/scw_environment.rs index ae788b39..ca0930a3 100644 --- a/tests/scaleway/scw_environment.rs +++ b/tests/scaleway/scw_environment.rs @@ -19,7 +19,7 @@ use tracing::{span, warn, Level}; // Note: All those tests relies on a test cluster running on Scaleway infrastructure. // This cluster should be live in order to have those tests passing properly. -#[cfg(feature = "test-scw-self-hosted")] +#[cfg(feature = "test-scw-minimal")] #[named] #[test] fn scaleway_test_build_phase() { @@ -69,7 +69,7 @@ fn scaleway_test_build_phase() { }) } -#[cfg(feature = "test-scw-self-hosted")] +#[cfg(feature = "test-scw-minimal")] #[named] #[test] fn scaleway_kapsule_deploy_a_working_environment_with_no_router() {