refactor: renamed tests

This commit is contained in:
Rohit T P
2024-05-02 15:49:34 +00:00
parent dc8d6da4b9
commit 1bacb13caa
10 changed files with 8 additions and 20 deletions

View File

@@ -15,7 +15,7 @@ teardown() {
./setup.sh
}
@test "Check Redis, WatchTower and NocoDB are restarted" {
@test "Check all containers are restarted" {
../expects/configure/restart.sh
cd "${NOCO_HOME}" || exit 1

View File

@@ -24,6 +24,6 @@ teardown() {
cd "${NOCO_HOME}" || exit 1
result=$(docker-compose ps | grep -c "nocodb/nocodb")
result=$(docker compose ps | grep -c "nocodb/nocodb")
[ "${result}" -eq 3 ]
}

View File

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

View File

@@ -15,7 +15,7 @@ teardown() {
./setup.sh
}
@test "Check Redis, WatchTower and NocoDB are up" {
@test "Check all containers are up" {
../expects/configure/start.sh
cd "${NOCO_HOME}" || exit 1

View File

@@ -15,7 +15,7 @@ teardown() {
./setup.sh
}
@test "Check Redis, WatchTower and NocoDB are down" {
@test "Check all containers are down" {
../expects/configure/stop.sh
cd "${NOCO_HOME}" || exit 1

View File

@@ -15,7 +15,7 @@ teardown() {
./setup.sh
}
@test "Check Redis, WatchTower and NocoDB are upgraded" {
@test "Check all containers are upgraded" {
../expects/configure/upgrade.sh
cd "${NOCO_HOME}" || exit 1