File tree Expand file tree Collapse file tree 1 file changed +16
-6
lines changed Expand file tree Collapse file tree 1 file changed +16
-6
lines changed Original file line number Diff line number Diff line change 11setup () {
22 export DIR=" $( cd " $( dirname " $BATS_TEST_FILENAME " ) " > /dev/null 2>&1 && pwd ) /.."
3- export TESTDIR=$( mktemp -d -t testmemcached-XXXXXXXXXX)
3+ export TESTDIR=~ /tmp/testelasticsearch
4+ mkdir -p $TESTDIR
45 export PROJNAME=testmemcached
56 export DDEV_NON_INTERACTIVE=true
67 ddev delete -Oy ${PROJNAME} || true
78 cd " ${TESTDIR} "
8- ddev config --project-name=${PROJNAME} --project-type=drupal9 --docroot=web --create-docroot
9+ ddev config --project-name=${PROJNAME}
910 ddev start
1011}
1112
1213teardown () {
13- cd ${TESTDIR}
14+ cd ${TESTDIR} || ( printf " unable to cd to ${TESTDIR} \n " && exit 1 )
1415 ddev delete -Oy ${DDEV_SITENAME}
15- rm -rf ${TESTDIR}
16+ [ " ${TESTDIR} " != " " ] && rm -rf ${TESTDIR}
1617}
1718
18- @test " basic installation" {
19- cd ${TESTDIR}
19+ @test " install from directory" {
20+ cd ${TESTDIR} || ( printf " unable to cd to ${TESTDIR} \n" && exit 1 )
21+ echo " # ddev get ${DIR} with project ${PROJNAME} in ${TESTDIR} ($( pwd) )" >&3
2022 ddev get ${DIR}
2123 ddev restart
2224 v=$( ddev exec ' printf "version\nquit\nquit\n" | nc memcached 11211' )
2325 [[ " ${v} " = VERSION* ]]
2426}
27+
28+ @test " install from release" {
29+ cd ${TESTDIR} || ( printf " unable to cd to ${TESTDIR} \n" && exit 1 )
30+ echo " # ddev get drud/ddev-elasticsearch with project ${PROJNAME} in ${TESTDIR} ($( pwd) )" >&3
31+ ddev get drud/ddev-elasticsearch
32+ ddev restart
33+ ddev exec " curl -s elasticsearch:9200" | grep " ${PROJNAME} -elasticsearch"
34+ }
You can’t perform that action at this time.
0 commit comments