Browse Source

fix: working directory fix

pull/8373/head
Rohit T P 6 months ago
parent
commit
d9a9d4b990
  1. 6
      docker-compose/setup-script/tests/configure/monitor.bats
  2. 6
      docker-compose/setup-script/tests/configure/restart.bats
  3. 6
      docker-compose/setup-script/tests/configure/scale.bats
  4. 2
      docker-compose/setup-script/tests/configure/setup.sh
  5. 6
      docker-compose/setup-script/tests/configure/start.bats
  6. 6
      docker-compose/setup-script/tests/configure/stop.bats
  7. 6
      docker-compose/setup-script/tests/configure/upgrade.bats
  8. 6
      docker-compose/setup-script/tests/install/default.bats
  9. 6
      docker-compose/setup-script/tests/install/ip.bats
  10. 6
      docker-compose/setup-script/tests/install/redis.bats
  11. 6
      docker-compose/setup-script/tests/install/scale.bats
  12. 5
      docker-compose/setup-script/tests/install/setup.sh
  13. 6
      docker-compose/setup-script/tests/install/ssl.bats
  14. 6
      docker-compose/setup-script/tests/install/watchtower.bats

6
docker-compose/setup-script/tests/configure/monitor.bats

@ -3,15 +3,15 @@
NOCO_HOME="${HOME}/.nocodb"
export NOCO_HOME
WORKING_DIR="$(pwd)"
setup() {
cd "${WORKING_DIR}" || exit 1
cd "${WORKING_DIR}/configure" || exit 1
./setup.sh "setup"
}
teardown() {
cd "${WORKING_DIR}" || exit 1
cd "${WORKING_DIR}/configure" || exit 1
./setup.sh
}

6
docker-compose/setup-script/tests/configure/restart.bats

@ -3,15 +3,15 @@
NOCO_HOME="${HOME}/.nocodb"
export NOCO_HOME
WORKING_DIR="$(pwd)"
setup() {
cd "${WORKING_DIR}" || exit 1
cd "${WORKING_DIR}/configure" || exit 1
./setup.sh "setup"
}
teardown() {
cd "${WORKING_DIR}" || exit 1
cd "${WORKING_DIR}/configure" || exit 1
./setup.sh
}

6
docker-compose/setup-script/tests/configure/scale.bats

@ -3,15 +3,15 @@
NOCO_HOME="${HOME}/.nocodb"
export NOCO_HOME
WORKING_DIR="$(pwd)"
setup() {
cd "${WORKING_DIR}" || exit 1
cd "${WORKING_DIR}/configure" || exit 1
./setup.sh "setup"
}
teardown() {
cd "${WORKING_DIR}" || exit 1
cd "${WORKING_DIR}/configure" || exit 1
./setup.sh
}

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

@ -19,4 +19,4 @@ if [ "$1" = "setup" ]; then
cd "$NOCO_HOME" || exit
docker compose down
fi
fi

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

@ -3,15 +3,15 @@
NOCO_HOME="${HOME}/.nocodb"
export NOCO_HOME
WORKING_DIR="$(pwd)"
setup() {
cd "${WORKING_DIR}" || exit 1
cd "${WORKING_DIR}/configure" || exit 1
./setup.sh "setup"
}
teardown() {
cd "${WORKING_DIR}" || exit 1
cd "${WORKING_DIR}/configure" || exit 1
./setup.sh
}

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

@ -3,15 +3,15 @@
NOCO_HOME="${HOME}/.nocodb"
export NOCO_HOME
WORKING_DIR="$(pwd)"
setup() {
cd "${WORKING_DIR}" || exit 1
cd "${WORKING_DIR}/configure" || exit 1
./setup.sh
}
teardown() {
cd "${WORKING_DIR}" || exit 1
cd "${WORKING_DIR}/configure" || exit 1
./setup.sh
}

6
docker-compose/setup-script/tests/configure/upgrade.bats

@ -3,15 +3,15 @@
NOCO_HOME="${HOME}/.nocodb"
export NOCO_HOME
WORKING_DIR="$(pwd)"
setup() {
cd "${WORKING_DIR}" || exit 1
cd "${WORKING_DIR}/configure" || exit 1
./setup.sh "setup"
}
teardown() {
cd "${WORKING_DIR}" || exit 1
cd "${WORKING_DIR}/configure" || exit 1
./setup.sh
}

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

@ -3,15 +3,15 @@
NOCO_HOME="${HOME}/.nocodb"
export NOCO_HOME
WORKING_DIR="$(pwd)"
setup() {
cd "${WORKING_DIR}" || exit 1
cd "${WORKING_DIR}/install" || exit 1
./setup.sh
}
teardown() {
cd "${WORKING_DIR}" || exit 1
cd "${WORKING_DIR}/install" || exit 1
./setup.sh
}

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

@ -3,15 +3,15 @@
NOCO_HOME="${HOME}/.nocodb"
export NOCO_HOME
WORKING_DIR="$(pwd)"
setup() {
cd "${WORKING_DIR}" || exit 1
cd "${WORKING_DIR}/install" || exit 1
./setup.sh
}
teardown() {
cd "${WORKING_DIR}" || exit 1
cd "${WORKING_DIR}/install" || exit 1
./setup.sh
}

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

@ -3,15 +3,15 @@
NOCO_HOME="${HOME}/.nocodb"
export NOCO_HOME
WORKING_DIR="$(pwd)"
setup() {
cd "${WORKING_DIR}" || exit 1
cd "${WORKING_DIR}/install" || exit 1
./setup.sh
}
teardown() {
cd "${WORKING_DIR}" || exit 1
cd "${WORKING_DIR}/install" || exit 1
./setup.sh
}

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

@ -3,15 +3,15 @@
NOCO_HOME="${HOME}/.nocodb"
export NOCO_HOME
WORKING_DIR="$(pwd)"
setup() {
cd "${WORKING_DIR}" || exit 1
cd "${WORKING_DIR}/install" || exit 1
./setup.sh
}
teardown() {
cd "${WORKING_DIR}" || exit 1
cd "${WORKING_DIR}/install" || exit 1
./setup.sh
}

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

@ -10,3 +10,8 @@ if [ -d "$NOCO_HOME" ]; then
fi
rm -rf "$NOCO_HOME"
clear()
{
echo "clear mocked"
}

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

@ -1,16 +1,16 @@
#!/usr/bin/env bats
WORKING_DIR="$(pwd)"
RANDOM_NUMBER=$RANDOM
setup() {
cd "${WORKING_DIR}" || exit 1
cd "${WORKING_DIR}/install" || exit 1
./setup.sh
}
teardown() {
cd "${WORKING_DIR}" || exit 1
cd "${WORKING_DIR}/install" || exit 1
./setup.sh
}

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

@ -3,15 +3,13 @@
NOCO_HOME="${HOME}/.nocodb"
export NOCO_HOME
WORKING_DIR="$(pwd)"
setup() {
cd "${WORKING_DIR}" || exit 1
cd "${WORKING_DIR}/install" || exit 1
./setup.sh
}
teardown() {
cd "${WORKING_DIR}" || exit 1
cd "${WORKING_DIR}/install" || exit 1
./setup.sh
}

Loading…
Cancel
Save