Skip to content

Commit

Permalink
Update to match SolrCLI.printToolHelp formatting rules (#2573)
Browse files Browse the repository at this point in the history
  • Loading branch information
epugh authored Jul 20, 2024
1 parent 60f4958 commit b87242e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions solr/packaging/test/test_help.bats
Original file line number Diff line number Diff line change
Expand Up @@ -68,25 +68,25 @@ setup() {

@test "healthcheck help flag prints help" {
run solr healthcheck --help
assert_output --partial 'usage: healthcheck'
assert_output --partial 'usage: bin/solr healthcheck'
refute_output --partial 'ERROR'
}

@test "create help flag prints help" {
run solr create --help
assert_output --partial 'usage: create'
assert_output --partial 'usage: bin/solr create'
refute_output --partial 'ERROR'
}

@test "delete help flag prints help" {
run solr delete -h
assert_output --partial 'usage: delete'
assert_output --partial 'usage: bin/solr delete'
refute_output --partial 'ERROR'
}

@test "version help flag prints help" {
run solr version -h
assert_output --partial 'usage: version'
assert_output --partial 'usage: bin/solr version'
refute_output --partial 'ERROR'
}

Expand All @@ -104,12 +104,12 @@ setup() {

@test "assert help flag prints help" {
run solr assert --help
assert_output --partial 'usage: assert'
assert_output --partial 'usage: bin/solr assert'
refute_output --partial 'ERROR'
}

@test "post help flag prints help" {
run solr post --help
assert_output --partial 'usage: post'
assert_output --partial 'usage: bin/solr post'
refute_output --partial 'ERROR'
}
4 changes: 2 additions & 2 deletions solr/packaging/test/test_post.bats
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@ teardown() {
assert_output --partial 'Must specify either --solr-update-url or -c parameter'

run solr post -h
assert_output --partial 'usage: post'
assert_output --partial 'usage: bin/solr post'
refute_output --partial 'ERROR'

run solr post --help
assert_output --partial 'usage: post'
assert_output --partial 'usage: bin/solr post'
refute_output --partial 'ERROR'

}
Expand Down

0 comments on commit b87242e

Please sign in to comment.