blob: 3b6f01758cfad013836bb9274a72ca0b6804f4f6 [file] [log] [blame]
use crate::cli::common::{help::TestHelpCmd, IggyCmdTest, USAGE_PREFIX};
use serial_test::parallel;
#[tokio::test]
#[parallel]
pub async fn should_help_match() {
let mut iggy_cmd_test = IggyCmdTest::help_message();
iggy_cmd_test
.execute_test_for_help_command(TestHelpCmd::new(
vec!["stream", "help"],
format!(
r#"stream operations
{USAGE_PREFIX} stream <COMMAND>
Commands:
create Create stream with given name [aliases: c]
delete Delete stream with given ID [aliases: d]
update Update stream name for given stream ID [aliases: u]
get Get details of a single stream with given ID [aliases: g]
list List all streams [aliases: l]
purge Purge all topics in given stream ID [aliases: p]
help Print this message or the help of the given subcommand(s)
Options:
-h, --help Print help
"#,
),
))
.await;
}