Skip to content

Commit

Permalink
test: improve e2e workspace
Browse files Browse the repository at this point in the history
  • Loading branch information
fraidev committed Nov 27, 2024
1 parent 9255d78 commit a7afcf8
Show file tree
Hide file tree
Showing 19 changed files with 993 additions and 773 deletions.
76 changes: 31 additions & 45 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 12 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
members = [
"crates/sql-sink",
"crates/fluvio-model-sql",
"crates/integration-tests",
"crates/json-sql",
"tests/integration",
]
resolver = "2"

Expand All @@ -12,7 +12,15 @@ inherits = "release"
lto = true

[workspace.dependencies]
fluvio = { git = "https://github.com/infinyon/fluvio", branch = "fix_shutdown_cdk" }
fluvio-connector-common = { git = "https://github.com/infinyon/fluvio", branch = "fix_shutdown_cdk" }
# fluvio = { git = "https://github.com/infinyon/fluvio", branch = "master" }
# fluvio-connector-common = { git = "https://github.com/infinyon/fluvio", branch = "master" }
fluvio-future = "0.7.0"
fluvio-smartmodule = { git = "https://github.com/infinyon/fluvio", branch = "fix_shutdown_cdk" }
# fluvio-smartmodule = { git = "https://github.com/infinyon/fluvio", branch = "master" }


fluvio = { path = "../../fluvio/crates/fluvio/" }
fluvio-connector-common = { path = "../../fluvio/crates/fluvio-connector-common/" }
fluvio-smartmodule = { path = "../../fluvio/crates/fluvio-smartmodule/" }

# Internal dependencies
fluvio-model-sql = { path = "crates/fluvio-model-sql" }
17 changes: 12 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
integration_tests:
cdk build -p sql-sink
smdk build -p json-sql
smdk load -p json-sql
RUST_LOG=warn,integration_tests=info cargo run --release -p integration-tests
# Default paths to binaries
BINARIES_PATH ?=
FLUVIO_BIN ?= $(BINARIES_PATH)fluvio
SMDK_BIN ?= $(BINARIES_PATH)smdk
CDK_BIN ?= $(BINARIES_PATH)cdk

# Integration tests target
integration_tests:
$(CDK_BIN) build -p sql-sink
$(SMDK_BIN) build -p json-sql
FLUVIO_BIN=$(FLUVIO_BIN) CDK_BIN=$(CDK_BIN) SMDK_BIN=$(SMDK_BIN) \
RUST_LOG=warn,integration_tests=info \
cargo run --release -p integration-tests
Loading

0 comments on commit a7afcf8

Please sign in to comment.