Skip to content

Commit 501b0c1

Browse files
committed
test(e2e): extend gateway start help smoke test to cover key flags
Signed-off-by: Evan Lezar <elezar@nvidia.com>
1 parent 9321f0f commit 501b0c1

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

e2e/rust/tests/cli_smoke.rs

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -122,17 +122,22 @@ async fn sandbox_connect_help_shows_editor_flag() {
122122
);
123123
}
124124

125-
/// `openshell gateway start --help` must show `--recreate`.
125+
/// `openshell gateway start --help` must show key flags.
126126
#[tokio::test]
127-
async fn gateway_start_help_shows_recreate() {
127+
async fn gateway_start_help_shows_key_flags() {
128128
let (output, code) = run_isolated(&["gateway", "start", "--help"]).await;
129129
assert_eq!(code, 0, "openshell gateway start --help should exit 0");
130130

131131
let clean = strip_ansi(&output);
132-
assert!(
133-
clean.contains("--recreate"),
134-
"expected '--recreate' in gateway start --help:\n{clean}"
135-
);
132+
for flag in [
133+
"--gpu",
134+
"--recreate",
135+
] {
136+
assert!(
137+
clean.contains(flag),
138+
"expected '{flag}' in gateway start --help:\n{clean}"
139+
);
140+
}
136141
}
137142

138143
// -------------------------------------------------------------------

0 commit comments

Comments
 (0)