mirror of
https://github.com/nocodb/nocodb.git
synced 2026-04-25 10:35:31 +00:00
33 lines
651 B
Bash
Executable File
33 lines
651 B
Bash
Executable File
#!/usr/bin/env bats
|
|
|
|
NOCO_HOME="./nocodb"
|
|
export NOCO_HOME
|
|
|
|
|
|
|
|
setup() {
|
|
cd "${WORKING_DIR}/install" || exit 1
|
|
./setup.sh
|
|
}
|
|
|
|
teardown() {
|
|
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'
|
|
}
|