Browse Source

chore: added skip for ssl

pull/8373/head
Rohit T P 2 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" rm -rf "$NOCO_HOME"
if [ "$1" = "setup" ]; then if [ "$1" = "setup" ]; then
../noco.sh <<< $'\n\nN\n' ../noco.sh <<< $'\n\nN\n'
cd "$NOCO_HOME" || exit
docker compose down
fi fi

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

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

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

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

Loading…
Cancel
Save