Skip to content

Commit

Permalink
Improve tests to install aljibe
Browse files Browse the repository at this point in the history
  • Loading branch information
juanjol committed Aug 30, 2024
1 parent adb8804 commit 4991e53
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion commands/host/aljibe-create-project
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ GREEN='\033[0;32m'
NC='\033[0m' # No Color
PROJECT_NAME=${DDEV_PROJECT}

if [ "$1" == "--auto" ]; then
if [ "$1" == "1" ]; then
AUTO=1
else
AUTO=0
Expand Down
9 changes: 6 additions & 3 deletions tests/test.bats
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,19 @@ teardown() {
@test "install from directory" {
set -eu -o pipefail
cd ${TESTDIR}
echo "# ddev get ${DIR} with project ${PROJNAME} in ${TESTDIR} ($(pwd))" >&3
echo "# Installing aljibe with local aljibe assistant" >&3
ddev get metadrop/ddev-aljibe
ddev get ${DIR}
ddev restart
ddev restart >/dev/null
ddev-aljibe-assistant --auto
}

@test "install from release" {
set -eu -o pipefail
cd ${TESTDIR} || ( printf "unable to cd to ${TESTDIR}\n" && exit 1 )
echo "# ddev get drud/test-addon-aljibe-assistant with project ${PROJNAME} in ${TESTDIR} ($(pwd))" >&3
ddev get drud/test-addon-aljibe-assistant
ddev get metadrop/ddev-aljibe
ddev restart >/dev/null
# Do something useful here that verifies the add-on
ddev-aljibe-assistant --auto
}

0 comments on commit 4991e53

Please sign in to comment.