Skip to content

Commit

Permalink
Isolate kubernetes e2e tests via requried-features
Browse files Browse the repository at this point in the history
Signed-off-by: MOZGIII <[email protected]>
  • Loading branch information
MOZGIII committed Jun 8, 2020
1 parent d55a5de commit 0a041fa
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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"]
2 changes: 1 addition & 1 deletion scripts/test-e2e-kubernetes.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 0a041fa

Please sign in to comment.