Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update README and tests for ddev add-on get command #1

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@

Uses [typesense official image](https://hub.docker.com/r/typesense/typesense/)

`ddev get torhoehn/ddev-typesense`
`ddev add-on get torhoehn/ddev-typesense`

For DDEV versions prior to v1.23.5, use `ddev get torhoehn/ddev-typesense`.

## Configuration

Expand Down
8 changes: 4 additions & 4 deletions tests/test.bats
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,17 @@ teardown() {
@test "install from directory" {
set -eu -o pipefail
cd ${TESTDIR}
echo "# ddev get ${DIR} with project ${PROJNAME} in ${TESTDIR} ($(pwd))" >&3
ddev get ${DIR}
echo "# ddev add-on get ${DIR} with project ${PROJNAME} in ${TESTDIR} ($(pwd))" >&3
ddev add-on get ${DIR}
ddev restart
health_checks
}

@test "install from release" {
set -eu -o pipefail
cd ${TESTDIR} || ( printf "unable to cd to ${TESTDIR}\n" && exit 1 )
echo "# ddev get torhoehn/ddev-typesense with project ${PROJNAME} in ${TESTDIR} ($(pwd))" >&3
ddev get torhoehn/ddev-typesense
echo "# ddev add-on get torhoehn/ddev-typesense with project ${PROJNAME} in ${TESTDIR} ($(pwd))" >&3
ddev add-on get torhoehn/ddev-typesense
ddev restart >/dev/null
health_checks
}