test: test for watchtower and scaling

This commit is contained in:
Rohit T P
2024-05-02 12:05:05 +00:00
parent b11c92902e
commit c8a0387ca2
6 changed files with 125 additions and 4 deletions

View File

@@ -0,0 +1,28 @@
#!/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 WatchTower is enabled when specified" {
../expects/install/watchtower.sh
cd "${NOCO_HOME}"
# Check Docker Compose file to verify WatchTower configuration
grep -q 'watchtower' docker-compose.yml
# Verify WatchTower container is running
docker compose ps | grep -q 'watchtower'
}