mirror of
https://github.com/nocodb/nocodb.git
synced 2026-04-29 13:46:42 +00:00
update : refactor auto-upstall and installation methods
This commit is contained in:
36
docker-compose/1_Auto_Upstall/tests/install/default.bats
Executable file
36
docker-compose/1_Auto_Upstall/tests/install/default.bats
Executable file
@@ -0,0 +1,36 @@
|
||||
#!/usr/bin/env bats
|
||||
|
||||
NOCO_HOME="./nocodb"
|
||||
export NOCO_HOME
|
||||
|
||||
|
||||
|
||||
setup() {
|
||||
cd "${WORKING_DIR}/install" || exit 1
|
||||
./setup.sh
|
||||
}
|
||||
|
||||
teardown() {
|
||||
if [ -n "$SKIP_TEARDOWN" ]; then
|
||||
return
|
||||
fi
|
||||
|
||||
cd "${WORKING_DIR}/install" || exit 1
|
||||
./setup.sh
|
||||
}
|
||||
|
||||
@test "Check installation with all default options" {
|
||||
../expects/install/default.sh
|
||||
|
||||
cd "${NOCO_HOME}"
|
||||
|
||||
# Check Docker Compose file to verify configuration
|
||||
grep -q 'redis' docker-compose.yml
|
||||
grep -q 'watchtower' docker-compose.yml
|
||||
grep -q 'nocodb' docker-compose.yml
|
||||
|
||||
# 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