Browse Source

fix: path error

pull/8373/head
Rohit T P 7 months ago
parent
commit
0e9c96ab02
  1. 12
      docker-compose/setup-script/tests/configure/setup.sh
  2. 4
      docker-compose/setup-script/tests/configure/start.bats
  3. 4
      docker-compose/setup-script/tests/install/default.bats
  4. 4
      docker-compose/setup-script/tests/install/ip.bats
  5. 4
      docker-compose/setup-script/tests/install/redis.bats
  6. 4
      docker-compose/setup-script/tests/install/scale.bats
  7. 4
      docker-compose/setup-script/tests/install/watchtower.bats

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

@ -1,5 +1,7 @@
#!/bin/bash #!/bin/bash
WORKING_DIR=$(dirname "$0")
if [ -z "$NOCO_HOME" ]; then if [ -z "$NOCO_HOME" ]; then
NOCO_HOME="${HOME}/.nocodb" NOCO_HOME="${HOME}/.nocodb"
fi fi
@ -9,10 +11,12 @@ if [ -d "$NOCO_HOME" ]; then
docker compose down docker compose down
fi fi
cd /tmp || exit cd "$WORKING_DIR" || exit
rm -rf "$NOCO_HOME" rm -rf "$NOCO_HOME"
../noco.sh <<< $'\n\nN\n' if [ "$1" = "setup" ]; then
../../noco.sh <<< $'\n\nN\n'
cd "$NOCO_HOME" || exit cd "$NOCO_HOME" || exit
docker compose down docker compose down
fi

4
docker-compose/setup-script/tests/configure/start.bats

@ -7,12 +7,12 @@ WORKING_DIR="$(pwd)"
setup() { setup() {
cd "${WORKING_DIR}" || exit 1 cd "${WORKING_DIR}" || exit 1
setup.sh ./setup.sh "setup"
} }
teardown() { teardown() {
cd "${WORKING_DIR}" || exit 1 cd "${WORKING_DIR}" || exit 1
setup.sh ./setup.sh
} }
@test "Check Redis, WatchTower and NocoDB are up" { @test "Check Redis, WatchTower and NocoDB are up" {

4
docker-compose/setup-script/tests/install/default.bats

@ -7,12 +7,12 @@ WORKING_DIR="$(pwd)"
setup() { setup() {
cd "${WORKING_DIR}" || exit 1 cd "${WORKING_DIR}" || exit 1
setup.sh ./setup.sh
} }
teardown() { teardown() {
cd "${WORKING_DIR}" || exit 1 cd "${WORKING_DIR}" || exit 1
setup.sh ./setup.sh
} }
@test "Check Redis, WatchTower and NocoDB are up" { @test "Check Redis, WatchTower and NocoDB are up" {

4
docker-compose/setup-script/tests/install/ip.bats

@ -7,12 +7,12 @@ WORKING_DIR="$(pwd)"
setup() { setup() {
cd "${WORKING_DIR}" || exit 1 cd "${WORKING_DIR}" || exit 1
setup.sh ./setup.sh
} }
teardown() { teardown() {
cd "${WORKING_DIR}" || exit 1 cd "${WORKING_DIR}" || exit 1
setup.sh ./setup.sh
} }
@test "Check Redis, WatchTower and NocoDB are up with custom ip" { @test "Check Redis, WatchTower and NocoDB are up with custom ip" {

4
docker-compose/setup-script/tests/install/redis.bats

@ -7,12 +7,12 @@ WORKING_DIR="$(pwd)"
setup() { setup() {
cd "${WORKING_DIR}" || exit 1 cd "${WORKING_DIR}" || exit 1
setup.sh ./setup.sh
} }
teardown() { teardown() {
cd "${WORKING_DIR}" || exit 1 cd "${WORKING_DIR}" || exit 1
setup.sh ./setup.sh
} }
@test "Check Redis is enabled when specified" { @test "Check Redis is enabled when specified" {

4
docker-compose/setup-script/tests/install/scale.bats

@ -7,12 +7,12 @@ WORKING_DIR="$(pwd)"
setup() { setup() {
cd "${WORKING_DIR}" || exit 1 cd "${WORKING_DIR}" || exit 1
setup.sh ./setup.sh
} }
teardown() { teardown() {
cd "${WORKING_DIR}" || exit 1 cd "${WORKING_DIR}" || exit 1
setup.sh ./setup.sh
} }
@test "Check if two instances of NoCoDB can be run" { @test "Check if two instances of NoCoDB can be run" {

4
docker-compose/setup-script/tests/install/watchtower.bats

@ -7,12 +7,12 @@ WORKING_DIR="$(pwd)"
setup() { setup() {
cd "${WORKING_DIR}" || exit 1 cd "${WORKING_DIR}" || exit 1
setup.sh ./setup.sh
} }
teardown() { teardown() {
cd "${WORKING_DIR}" || exit 1 cd "${WORKING_DIR}" || exit 1
setup.sh ./setup.sh
} }
@test "Check WatchTower is enabled when specified" { @test "Check WatchTower is enabled when specified" {

Loading…
Cancel
Save