Browse Source

fix: working directory fix

pull/8373/head
Rohit T P 7 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. 6
      docker-compose/setup-script/tests/configure/start.bats
  5. 6
      docker-compose/setup-script/tests/configure/stop.bats
  6. 6
      docker-compose/setup-script/tests/configure/upgrade.bats
  7. 6
      docker-compose/setup-script/tests/install/default.bats
  8. 6
      docker-compose/setup-script/tests/install/ip.bats
  9. 6
      docker-compose/setup-script/tests/install/redis.bats
  10. 6
      docker-compose/setup-script/tests/install/scale.bats
  11. 5
      docker-compose/setup-script/tests/install/setup.sh
  12. 6
      docker-compose/setup-script/tests/install/ssl.bats
  13. 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
}

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