Skip to content

Commit aa66667

Browse files
committed
refactor(e2e): improve the e2e-test
Restructure the code and use the channels to talk with Astarte. Signed-off-by: Joshua Chapman <joshua.chapman@secomind.com>
1 parent fc2dba7 commit aa66667

22 files changed

+2017
-1734
lines changed

Cargo.lock

Lines changed: 188 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ base64 = "0.22.0"
137137
bson = "2.7.0"
138138
bytes = "1.5.0"
139139
chrono = "0.4.20"
140+
clap = "4.5.32"
140141
color-eyre = "0.6.3"
141142
env_logger = "0.11.0"
142143
eyre = "0.6.12"
@@ -148,6 +149,7 @@ itertools = "0.11.0"
148149
mockall = "0.12.1"
149150
mockito = "1.4.0"
150151
openssl = "0.10.46"
152+
phoenix-chan = "0.4.1"
151153
pretty_assertions = "1.4.1"
152154
proc-macro2 = "1.0.83"
153155
quote = "1.0.35"

e2e-test/Cargo.toml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,21 @@ rust-version = { workspace = true }
3131
[dependencies]
3232
astarte-device-sdk = { workspace = true, features = ["derive"] }
3333
base64 = { workspace = true }
34-
chrono = { workspace = true }
34+
chrono = { workspace = true, features = ["serde"] }
35+
clap = { workspace = true, features = ["derive", "env"] }
3536
color-eyre = { workspace = true }
3637
eyre = { workspace = true }
38+
flume = { workspace = true, features = ["async"] }
39+
futures = { workspace = true }
3740
itertools = { workspace = true }
41+
phoenix-chan = { workspace = true }
3842
reqwest = { workspace = true }
3943
rustls = { workspace = true }
44+
serde = { workspace = true, features = ["derive"] }
4045
serde_json = { workspace = true }
4146
tokio = { workspace = true, features = ["full"] }
4247
tracing = { workspace = true }
4348
tracing-subscriber = { workspace = true, features = ["env-filter"] }
49+
50+
[dev-dependencies]
51+
pretty_assertions = { workspace = true }

0 commit comments

Comments
 (0)