Skip to content

Commit 9f8bb81

Browse files
test(features): run the corporate-proxy suite with testkit's own harness
Declare the test target with harness = false and call testkit::main, as every feature package does since #5789, and point the new crates at the ai-openshell repository. Signed-off-by: Matthew Grossman <mgrossman@nvidia.com>
1 parent 7b62c0e commit 9f8bb81

3 files changed

Lines changed: 11 additions & 2 deletions

File tree

‎tests/suites/features/corporate-proxy/Cargo.toml‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,14 @@ version = "0.0.0"
88
edition = "2024"
99
rust-version = "1.94"
1010
license = "Apache-2.0"
11-
repository = "https://github.com/NVIDIA/OpenShell"
11+
repository = "https://github.com/ai-openshell/openshell"
1212
publish = false
1313

14+
[[test]]
15+
name = "corporate-proxy"
16+
path = "tests/corporate_proxy.rs"
17+
harness = false
18+
1419
[dependencies]
1520
container-engine-support = { path = "../../../support/container-engine" }
1621
corporate-proxy-support = { path = "../../../support/corporate-proxy" }

‎tests/suites/features/corporate-proxy/tests/corporate_proxy.rs‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ use testkit::policy::{self, Endpoint as _};
2626
use testkit::sdk::raw::proto;
2727
use testkit::{Context, PYTHON_BINARIES, Poll, ResultExt as _, Sandbox};
2828

29+
fn main() -> std::process::ExitCode {
30+
testkit::main()
31+
}
32+
2933
/// Requests `https://<argv[2]>:<port>/` for each `<name>:<port>:<attempts>`
3034
/// after `argv[2]` and prints one JSON object of results by name. With
3135
/// `argv[1]` `verify`, the client verifies the server against the image's

‎tests/support/corporate-proxy/Cargo.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ version = "0.0.0"
88
edition = "2024"
99
rust-version = "1.94"
1010
license = "Apache-2.0"
11-
repository = "https://github.com/NVIDIA/OpenShell"
11+
repository = "https://github.com/ai-openshell/openshell"
1212
publish = false
1313

1414
[dependencies]

0 commit comments

Comments
 (0)