mirror of
https://github.com/nocodb/nocodb.git
synced 2026-04-26 18:25:11 +00:00
test: test for restart and upgrade
This commit is contained in:
27
docker-compose/setup-script/tests/configure/upgrade.bats
Executable file
27
docker-compose/setup-script/tests/configure/upgrade.bats
Executable file
@@ -0,0 +1,27 @@
|
||||
#!/usr/bin/env bats
|
||||
|
||||
NOCO_HOME="${HOME}/.nocodb"
|
||||
export NOCO_HOME
|
||||
|
||||
WORKING_DIR="$(pwd)"
|
||||
|
||||
setup() {
|
||||
cd "${WORKING_DIR}" || exit 1
|
||||
./setup.sh "setup"
|
||||
}
|
||||
|
||||
teardown() {
|
||||
cd "${WORKING_DIR}" || exit 1
|
||||
./setup.sh
|
||||
}
|
||||
|
||||
@test "Check Redis, WatchTower and NocoDB are upgraded" {
|
||||
../expects/configure/upgrade.sh
|
||||
|
||||
cd "${NOCO_HOME}" || exit 1
|
||||
|
||||
# Verify container is running
|
||||
docker compose ps | grep -q 'redis'
|
||||
docker compose ps | grep -q 'watchtower'
|
||||
docker compose ps | grep -q 'nocodb'
|
||||
}
|
||||
Reference in New Issue
Block a user