mirror of
https://github.com/nocodb/nocodb.git
synced 2026-04-25 17:35:43 +00:00
test: test for default case and for custom ip
This commit is contained in:
32
docker-compose/setup-script/tests/install/default.bats
Normal file
32
docker-compose/setup-script/tests/install/default.bats
Normal file
@@ -0,0 +1,32 @@
|
||||
#!/usr/bin/env bats
|
||||
|
||||
NOCO_HOME="${HOME}/.nocodb"
|
||||
export NOCO_HOME
|
||||
|
||||
WORKING_DIR="$(pwd)"
|
||||
|
||||
setup() {
|
||||
cd "${WORKING_DIR}" || exit 1
|
||||
../setup.sh
|
||||
}
|
||||
|
||||
teardown() {
|
||||
cd "${WORKING_DIR}" || exit 1
|
||||
../setup.sh
|
||||
}
|
||||
|
||||
@test "Check Redis, WatchTower and NocoDB are up" {
|
||||
../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