test: test for configure/start

This commit is contained in:
Rohit T P
2024-05-02 12:24:27 +00:00
parent 635ab81d01
commit f18655e9c1
9 changed files with 73 additions and 10 deletions

View File

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

View File

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

View File

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

View File

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

View File

@@ -0,0 +1,12 @@
#!/bin/bash
if [ -z "$NOCO_HOME" ]; then
NOCO_HOME="${HOME}/.nocodb"
fi
if [ -d "$NOCO_HOME" ]; then
cd "$NOCO_HOME" || exit
docker compose down
fi
rm -rf "$NOCO_HOME"

View File

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