Skip to content

Commit

Permalink
Use correct port for healthcheck (#2)
Browse files Browse the repository at this point in the history
* Use correct port for healthcheck

* Use correct container name and hostname

* Use sudo for teardown removal

* Clean up
  • Loading branch information
Buratinas authored Jul 13, 2024
1 parent 72208df commit 3b1e293
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 12 deletions.
9 changes: 0 additions & 9 deletions docker-compose.yml

This file was deleted.

6 changes: 3 additions & 3 deletions tests/test.bats
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ setup() {
health_checks() {
# Do something useful here that verifies the add-on
# ddev exec "curl -s elasticsearch:9200" | grep "${PROJNAME}-elasticsearch"
ddev logs -s python-app
ddev exec "curl -s https://localhost:443/"
ddev logs -s python-fastapi
ddev exec "curl -s https://test-python.ddev.site:8000"
}

teardown() {
set -eu -o pipefail
cd ${TESTDIR} || ( printf "unable to cd to ${TESTDIR}\n" && exit 1 )
ddev delete -Oy ${PROJNAME} >/dev/null 2>&1
[ "${TESTDIR}" != "" ] && rm -rf ${TESTDIR}
[ "${TESTDIR}" != "" ] && sudo rm -rf ${TESTDIR}
}

@test "install from directory" {
Expand Down

0 comments on commit 3b1e293

Please sign in to comment.