From 7dd3a40690bfbb1ad420333ef0eb8d4b6278d6f6 Mon Sep 17 00:00:00 2001 From: Kayh Date: Fri, 29 Dec 2023 13:25:25 -0500 Subject: [PATCH] move dwn-test-utils to top level --- Cargo.toml | 2 +- dwn-server/Cargo.toml | 2 +- {dwn-server/tests/utils => dwn-test-utils}/Cargo.toml | 4 ++-- dwn-test-utils/README.md | 3 +++ {dwn-server/tests/utils => dwn-test-utils}/src/lib.rs | 0 5 files changed, 7 insertions(+), 4 deletions(-) rename {dwn-server/tests/utils => dwn-test-utils}/Cargo.toml (84%) create mode 100644 dwn-test-utils/README.md rename {dwn-server/tests/utils => dwn-test-utils}/src/lib.rs (100%) diff --git a/Cargo.toml b/Cargo.toml index 10d8bb7..3c7cc2b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,7 +3,7 @@ resolver = "2" members = [ "dwn", "dwn-server", - "dwn-server/tests/utils" + "dwn-test-utils" ] [workspace.package] diff --git a/dwn-server/Cargo.toml b/dwn-server/Cargo.toml index 1b66d02..95349c7 100644 --- a/dwn-server/Cargo.toml +++ b/dwn-server/Cargo.toml @@ -25,5 +25,5 @@ tracing-subscriber = "0.3.18" tracing-test = { version = "0.2.4", features = ["no-env-filter"] } [dev-dependencies] -dwn-test-utils = { path = "tests/utils" } +dwn-test-utils = { path = "../dwn-test-utils" } reqwest = { version = "0.11.22", features = ["json"] } diff --git a/dwn-server/tests/utils/Cargo.toml b/dwn-test-utils/Cargo.toml similarity index 84% rename from dwn-server/tests/utils/Cargo.toml rename to dwn-test-utils/Cargo.toml index 28b2003..23e0eea 100644 --- a/dwn-server/tests/utils/Cargo.toml +++ b/dwn-test-utils/Cargo.toml @@ -10,8 +10,8 @@ license.workspace = true axum = "0.7.2" didkit.workspace = true dotenvy = "0.15.7" -dwn = { path = "../../../dwn" } -dwn-server = { path = "../../" } +dwn = { path = "../dwn" } +dwn-server = { path = "../dwn-server" } port_check = "0.1.5" reqwest = { version = "0.11.22", features = ["json"] } serde_json = "1.0.108" diff --git a/dwn-test-utils/README.md b/dwn-test-utils/README.md new file mode 100644 index 0000000..adbc10f --- /dev/null +++ b/dwn-test-utils/README.md @@ -0,0 +1,3 @@ +# dwn-test-utils + +Helpful functions used by dwn tests. diff --git a/dwn-server/tests/utils/src/lib.rs b/dwn-test-utils/src/lib.rs similarity index 100% rename from dwn-server/tests/utils/src/lib.rs rename to dwn-test-utils/src/lib.rs