Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exercise code path when --prompt and clevis specified #3635

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions tests/stratis_min.rs
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,23 @@ fn test_stratis_min_create_no_blockdevs() {
));
}

#[test]
// Test starting a pool using both a prompt and an unlock method of clevis.
fn test_stratis_min_pool_start_invalid_arg_combination() {
let mut cmd = Command::cargo_bin("stratis-min").unwrap();
cmd.arg("pool")
.arg("start")
.arg("--name")
.arg("pn")
.arg("--unlock-method")
.arg("clevis")
.arg("--prompt");
cmd.assert()
.failure()
.code(1)
.stderr(predicate::str::contains("mutually exclusive"));
}

#[test]
// Test stopping a pool using an invalid UUID; unless name is specified the
// id value is interpreted as a UUID.
Expand Down
Loading