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 4, 2020
1 parent d9c9138 commit 1c96467
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 @@ -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
Expand All @@ -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"]
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 1c96467

Please sign in to comment.