Browse Source

chore: added skip for ssl

pull/8373/head
Rohit T P 7 months ago
parent
commit
1e12f0b49b
  1. 5
      docker-compose/setup-script/tests/configure/setup.sh
  2. 7
      docker-compose/setup-script/tests/configure/stop.bats
  3. 5
      docker-compose/setup-script/tests/install/ssl.bats

5
docker-compose/setup-script/tests/configure/setup.sh

@ -13,8 +13,5 @@ cd "$WORKING_DIR" || exit
rm -rf "$NOCO_HOME"
if [ "$1" = "setup" ]; then
../noco.sh <<< $'\n\nN\n'
cd "$NOCO_HOME" || exit
docker compose down
../noco.sh <<< $'\n\nN\n'
fi

7
docker-compose/setup-script/tests/configure/stop.bats

@ -7,7 +7,7 @@ export NOCO_HOME
setup() {
cd "${WORKING_DIR}/configure" || exit 1
./setup.sh
./setup.sh setup
}
teardown() {
@ -21,7 +21,6 @@ teardown() {
cd "${NOCO_HOME}" || exit 1
# Verify container is not running
docker compose ps | grep -q 'redis' && exit 1
docker compose ps | grep -q 'watchtower' && exit 1
docker compose ps | grep -q 'nocodb' && exit 1
count=$(docker compose ps -q | wc -l)
[ "$count" -eq 0 ]
}

5
docker-compose/setup-script/tests/install/ssl.bats

@ -15,6 +15,11 @@ teardown() {
}
@test "Should create SSL certificates" {
if [ -z "$TEST_SSL" ]
then
skip "Skipping SSL tests"
fi
../expects/install/ssl.sh "$RANDOM_NUMBER"
curl -ksS --head "https://${RANDOM_NUMBER}.ssl.nocodb.dev" > /dev/null

Loading…
Cancel
Save