mirror of
https://github.com/nocodb/nocodb.git
synced 2026-04-26 16:55:35 +00:00
refactor: renamed tests
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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 ]
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user