[
https://issues.apache.org/jira/browse/KUDU-1862?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Grant Henke updated KUDU-1862:
------------------------------
Component/s: test
> Add a ToolTest to test all the action help strings
> --------------------------------------------------
>
> Key: KUDU-1862
> URL: https://issues.apache.org/jira/browse/KUDU-1862
> Project: Kudu
> Issue Type: Improvement
> Components: test
> Reporter: Dinesh Bhat
> Priority: Minor
>
> We want a test to cover the help string displayed by actions of cli tools.
> For example:
> {noformat}
> TEST_F(ToolTest, TestActionHelp) {
> const vector<string> kFormatActionRegexes = {
> "-fs_wal_dir \\(Directory",
> "-fs_data_dirs \\(Comma-separated list",
> "-uuid \\(The uuid"
> };
> NO_FATALS(RunTestHelp("fs format --help", kFormatActionRegexes));
> NO_FATALS(RunTestHelp("fs format extra_arg", kFormatActionRegexes,
> Status::InvalidArgument("too many arguments: 'extra_arg'")));
> }
> {noformat}
> which is testing "kudu fs format" command's action help string. We need a
> test/method to test all the action help strings. We could make this more
> generic for future additions too.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)