Skip to content

Commit

Permalink
Add release installation instead of just directory
Browse files Browse the repository at this point in the history
  • Loading branch information
rfay committed Mar 17, 2022
1 parent 3eb20ce commit d604281
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions tests/test.bats
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,23 @@ setup() {
}

teardown() {
cd ${TESTDIR}
cd ${TESTDIR} || ( printf "unable to cd to ${TESTDIR}\n" && exit 1 )
ddev delete -Oy ${DDEV_SITENAME}
rm -rf ${TESTDIR}
[ "${TESTDIR}" != "" ] && rm -rf ${TESTDIR}
}

@test "basic installation" {
@test "install from directory" {
cd ${TESTDIR} || ( printf "unable to cd to ${TESTDIR}\n" && exit 1 )
echo "# ddev get ${DIR} with project ${PROJNAME} in ${TESTDIR} ($(pwd))" >&3
ddev get ${DIR}
ddev restart
ddev exec "curl -s elasticsearch:9200" | grep "${PROJNAME}-elasticsearch"
}

@test "install from release" {
cd ${TESTDIR} || ( printf "unable to cd to ${TESTDIR}\n" && exit 1 )
echo "# ddev get drud/ddev-elasticsearch with project ${PROJNAME} in ${TESTDIR} ($(pwd))" >&3
ddev get drud/ddev-elasticsearch
ddev restart
ddev exec "curl -s elasticsearch:9200" | grep "${PROJNAME}-elasticsearch"
}

0 comments on commit d604281

Please sign in to comment.