feat: add e2e test infrastructure with k3d and Camunda 8#30
Open
lenaschoenburg wants to merge 6 commits intomainfrom
Open
feat: add e2e test infrastructure with k3d and Camunda 8#30lenaschoenburg wants to merge 6 commits intomainfrom
lenaschoenburg wants to merge 6 commits intomainfrom
Conversation
- Restructure to lib+bin for test importability (src/lib.rs) - Add e2e tests for both ES and RDBMS storage modes - Add proper Helm values for RDBMS mode (secondaryStorage.type=rdbms) - Add k3d setup/teardown scripts for local testing - Add CI workflow with separate ES and RDBMS test jobs
462163f to
f0bd7fa
Compare
- ES test values work with Camunda chart 13.x (8.8) - RDBMS mode requires chart 14.x (8.9, not yet released) - commented out - Separate rdbms-values.yaml for when 8.9 chart becomes available
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds end-to-end test infrastructure for testing c8-backup against a real Kubernetes cluster with Camunda 8.
Changes
main.rsintolib.rs+ thinmain.rsso integration tests can import crate modules directlytests/e2e_es.rs— testslistandcreatecommands against a Camunda 8 cluster with Elasticsearch secondary storagetests/e2e_rdbms.rs— testslistandcreatecommands against a Camunda 8 cluster with PostgreSQL + filesystem backup storescripts/e2e-setup.shandscripts/e2e-teardown.shfor local cluster management.github/workflows/e2e.ymlwith two parallel jobs (ES and RDBMS), each deploying a k3d cluster with the appropriate Camunda 8 configurationLocal usage
Design decisions
#[ignore]and skip gracefully when no cluster is available, socargo teststill works without a clusterTest plan
cargo buildpassescargo test— 22 passed, 4 ignoredcargo fmt --checkclean