Skip to content

Commit

Permalink
update tests for randomization of solr ports
Browse files Browse the repository at this point in the history
  • Loading branch information
epugh committed Jan 9, 2024
1 parent 06aea29 commit 7a6e7c1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions solr/packaging/test/test_auth.bats
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,13 @@ setup() {
@test "auth enable/disable lifecycle" {
solr start -c
solr auth enable -type basicAuth -credentials name:password
solr assert --started http://localhost:8983/solr --timeout 5000
solr assert --started http://localhost:${SOLR_PORT}/solr --timeout 5000

run curl -u name:password --basic 'http://localhost:8983/solr/admin/collections?action=CREATE&collection.configName=_default&name=test&numShards=2&replicationFactor=1&router.name=compositeId&wt=json'
run curl -u name:password --basic "http://localhost:${SOLR_PORT}/solr/admin/collections?action=CREATE&collection.configName=_default&name=test&numShards=2&replicationFactor=1&router.name=compositeId&wt=json"
assert_output --partial '"status":0'

solr auth disable
run curl 'http://localhost:8983/solr/test/select?q=*:*'
run curl "http://localhost:${SOLR_PORT}/solr/test/select?q=*:*"
assert_output --partial '"numFound":0'
solr stop -all
}

0 comments on commit 7a6e7c1

Please sign in to comment.