Skip to content

Commit

Permalink
test: add check for the correct admin UI redirect, for #27 (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
stasadev authored Jun 4, 2024
1 parent 0398b27 commit 5acc8b9
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/test.bats
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,14 @@ health_checks() {
fi
done
ddev exec "curl -sSf -u solr:SolrRocks -s http://solr:8983/solr/techproducts/select?q=*:* | grep numFound >/dev/null"
ddev exec "curl -sSf -u solr:SolrRocks -s https://solr:8943/solr/techproducts/select?q=*:* | grep numFound >/dev/null"
# Check unauthenticated read access
ddev exec "curl -sSf -s http://solr:8983/solr/techproducts/select?q=*:* | grep numFound >/dev/null"
ddev exec "curl -sSf -s https://solr:8943/solr/techproducts/select?q=*:* | grep numFound >/dev/null"
# Make sure the solr admin UI is working
ddev exec "curl -sSf -u solr:SolrRocks -s http://solr:8983/solr/# | grep Admin >/dev/null"
ddev exec "curl -sSf -u solr:SolrRocks -s https://solr:8943/solr/# | grep Admin >/dev/null"
# Make sure the solr admin UI via HTTP from outside is redirected to HTTP /solr/
curl --silent --head --fail http://${PROJNAME}.ddev.site:8983 | grep -i "location: http://${PROJNAME}.ddev.site:8983/solr/" >/dev/null
# Make sure the solr admin UI via HTTPS from outside is redirected to HTTPS /solr/
curl --silent --head --fail https://${PROJNAME}.ddev.site:8943 | grep -i "location: https://${PROJNAME}.ddev.site:8943/solr/" >/dev/null
# Make sure the custom `ddev solr` command works
ddev solr | grep COMMAND >/dev/null
# Make sure the custom `ddev solr-zk` command works
Expand Down

0 comments on commit 5acc8b9

Please sign in to comment.