From 26cb84722364dde27e095b821beac387299955d8 Mon Sep 17 00:00:00 2001 From: Marco Hermo Date: Tue, 13 Feb 2024 18:53:54 +1300 Subject: [PATCH] MNT Update bats test --- tests/test.bats | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/tests/test.bats b/tests/test.bats index b41afac..777b4f3 100644 --- a/tests/test.bats +++ b/tests/test.bats @@ -1,9 +1,9 @@ setup() { set -eu -o pipefail export DIR="$( cd "$( dirname "$BATS_TEST_FILENAME" )" >/dev/null 2>&1 && pwd )/.." - export TESTDIR=~/tmp/test-addon-template + export TESTDIR=~/tmp/ddev-enterpise-search mkdir -p $TESTDIR - export PROJNAME=test-addon-template + export PROJNAME=ddev-enterpise-search export DDEV_NON_INTERACTIVE=true ddev delete -Oy ${PROJNAME} >/dev/null 2>&1 || true cd "${TESTDIR}" @@ -13,8 +13,9 @@ setup() { health_checks() { # Do something useful here that verifies the add-on - # ddev exec "curl -s elasticsearch:9200" | grep "${PROJNAME}-elasticsearch" - ddev exec "curl -s https://localhost:443/" + ddev exec "curl -s elasticsearch:9200" + ddev exec "curl -s kibana:5601" + ddev exec "curl -s enterprisesearch:3002" } teardown() { @@ -36,8 +37,8 @@ teardown() { @test "install from release" { set -eu -o pipefail cd ${TESTDIR} || ( printf "unable to cd to ${TESTDIR}\n" && exit 1 ) - echo "# ddev get ddev/ddev-addon-template with project ${PROJNAME} in ${TESTDIR} ($(pwd))" >&3 - ddev get ddev/ddev-addon-template + echo "# ddev get ssmarco/ddev-enterprise-search with project ${PROJNAME} in ${TESTDIR} ($(pwd))" >&3 + ddev get ssmarco/ddev-enterprise-search ddev restart >/dev/null health_checks }