diff --git a/Cargo.toml b/Cargo.toml index a7a292c322d11c..6a808e41ebb4dc 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -419,6 +419,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 @@ -433,3 +436,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