diff --git a/Cargo.lock b/Cargo.lock index 76beb36a..bf3c7329 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1790,6 +1790,20 @@ dependencies = [ "cfg-if", ] +[[package]] +name = "integration-tests" +version = "0.0.0" +dependencies = [ + "httpmock", + "oxide", + "oxide-httpmock", + "rand", + "tempfile", + "test-common", + "tokio", + "uuid", +] + [[package]] name = "io-lifetimes" version = "1.0.11" @@ -2340,8 +2354,6 @@ dependencies = [ "clap", "dirs", "futures", - "httpmock", - "oxide-httpmock", "progenitor-client 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)", "rand", "regress", diff --git a/Cargo.toml b/Cargo.toml index 68e8c8e3..81cfbadc 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,7 @@ [workspace] members = [ "cli", + "integration-tests", "sdk", "sdk-httpmock", "test-common", diff --git a/integration-tests/Cargo.toml b/integration-tests/Cargo.toml new file mode 100644 index 00000000..0d50f542 --- /dev/null +++ b/integration-tests/Cargo.toml @@ -0,0 +1,15 @@ +[package] +name = "integration-tests" +version = "0.0.0" +edition = "2021" +publish = false + +[dev-dependencies] +httpmock = { workspace = true } +oxide = { workspace = true } +oxide-httpmock = { workspace = true } +tempfile = { workspace = true } +test-common = { workspace = true } +tokio = { workspace = true } +rand = { workspace = true, features = ["small_rng"] } +uuid = { workspace = true } diff --git a/integration-tests/src/lib.rs b/integration-tests/src/lib.rs new file mode 100644 index 00000000..61d102db --- /dev/null +++ b/integration-tests/src/lib.rs @@ -0,0 +1,8 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + +// Copyright 2024 Oxide Computer Company + +//! This crate exists only for stand-alone integration tests that act as SDK +//! consumers. diff --git a/sdk/tests/test_extra.rs b/integration-tests/tests/test_extras.rs similarity index 100% rename from sdk/tests/test_extra.rs rename to integration-tests/tests/test_extras.rs diff --git a/sdk/Cargo.toml b/sdk/Cargo.toml index d9497292..3435937d 100644 --- a/sdk/Cargo.toml +++ b/sdk/Cargo.toml @@ -27,8 +27,6 @@ toml_edit = { workspace = true } uuid = { workspace = true } [dev-dependencies] -httpmock = { workspace = true } -oxide-httpmock = { workspace = true } tempfile = { workspace = true } test-common = { workspace = true } tokio = { workspace = true }