mirror of
https://github.com/nocodb/nocodb.git
synced 2026-04-25 23:05:38 +00:00
27 lines
428 B
Bash
Executable File
27 lines
428 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 if two instances of NoCoDB can be run" {
|
|
../expects/install/scale.sh
|
|
|
|
cd "${NOCO_HOME}"
|
|
|
|
# Get scale from docker compose ps
|
|
scale=$(docker compose ps | grep -c "nocodb/nocodb")
|
|
[ "$scale" -eq 2 ]
|
|
}
|