From b83d8fc41d54f1365c13c63452e139d9be871351 Mon Sep 17 00:00:00 2001 From: MOZGIII Date: Mon, 1 Jun 2020 13:54:41 +0300 Subject: [PATCH] Isolate kubernetes e2e tests via requried-features Signed-off-by: MOZGIII --- Cargo.toml | 7 +++++++ scripts/test-e2e-kubernetes.sh | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index f8f7577e4aa176..8f438e559cf516 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -421,6 +421,9 @@ splunk-integration-tests = ["sinks-splunk_hec", "warp"] shutdown-tests = ["sources","sinks-console","sinks-prometheus","sinks-blackhole","unix","rdkafka","transforms-log_to_metric","transforms-lua"] disable-resolv-conf = [] +# E2E tests +kubernetes-e2e-tests = ["k8s-openapi"] + [[bench]] name = "bench" harness = false @@ -435,3 +438,7 @@ harness = false [patch.'https://github.com/tower-rs/tower'] tower-layer = "0.3" + +[[test]] +name = "kubernetes-e2e" +required-features = ["kubernetes-e2e-tests"] diff --git a/scripts/test-e2e-kubernetes.sh b/scripts/test-e2e-kubernetes.sh index 03d1b363a13163..46227e4c608bf2 100755 --- a/scripts/test-e2e-kubernetes.sh +++ b/scripts/test-e2e-kubernetes.sh @@ -80,4 +80,4 @@ export CONTAINER_IMAGE export KUBE_TEST_DEPLOY_COMMAND="scripts/deploy-kubernetes-test.sh" # Run the tests. -cargo test --test kubernetes-e2e --no-default-features --features k8s-openapi -- --nocapture +cargo test --test kubernetes-e2e --no-default-features --features kubernetes-e2e-tests -- --nocapture