mirror of
https://github.com/nocodb/nocodb.git
synced 2026-04-26 15:26:23 +00:00
test: test for scaling
This commit is contained in:
25
docker-compose/setup-script/tests/configure/scale.bats
Executable file
25
docker-compose/setup-script/tests/configure/scale.bats
Executable file
@@ -0,0 +1,25 @@
|
||||
#!/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 NocoDB is scaled to 3 instances" {
|
||||
../expects/configure/scale.sh
|
||||
|
||||
cd "${NOCO_HOME}" || exit 1
|
||||
|
||||
result=$(docker-compose ps | grep -c "nocodb/nocodb")
|
||||
[ "${result}" -eq 3 ]
|
||||
}
|
||||
Reference in New Issue
Block a user