Skip to content

Commit

Permalink
tests: add integration test framework
Browse files Browse the repository at this point in the history
To support integration tests written in rust, let's add a new package
(which will only be used internally) called integration-tests.

Inside the package, we have a tests repo where we can put tests.

The package imports other trustee packages using a local path,
so it should always have the most recent version of things.

Now integration tests will run simply by doing cargo test at the top of
the repo.

Signed-off-by: Tobin Feldman-Fitzthum <[email protected]>
  • Loading branch information
fitzthum committed Dec 11, 2024
1 parent 6ebd64b commit 512f174
Show file tree
Hide file tree
Showing 4 changed files with 325 additions and 9 deletions.
87 changes: 78 additions & 9 deletions Cargo.lock

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

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ members = [
"rvps",
"tools/kbs-client",
"deps/verifier",
"integration-tests",
]
resolver = "2"

Expand Down
24 changes: 24 additions & 0 deletions integration-tests/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
[package]
name = "integration-tests"
version.workspace = true
authors.workspace = true
description.workspace = true
documentation.workspace = true
edition.workspace = true

[dependencies]
kbs = { path = "../kbs" }
attestation-service = { path = "../attestation-service" }
kbs-client = { path = "../tools/kbs-client" }

actix-web = "4.9.0"
actix-rt = "2.10.0"
anyhow = "1.0.94"
env_logger = "0.11.5"
log = "0.4.22"
openssl = "0.10.68"
rstest.workspace = true
serde_json = "1.0.133"
serial_test = { version = "3.2.0", features = ["async"]}
tempfile = "3.14.0"
tokio = { version = "1.42.0", features = ["full"] }
Loading

0 comments on commit 512f174

Please sign in to comment.