mirror of https://github.com/nocodb/nocodb
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
513 B
31 lines
513 B
#!/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 if two instances of NoCoDB can be run" { |
|
# Mock nproc to return 4 |
|
nproc() { |
|
echo 4 |
|
} |
|
|
|
../expects/install/scale.sh |
|
|
|
cd "${NOCO_HOME}" |
|
|
|
# Get scale from docker compose ps |
|
scale=$(docker compose ps | grep nocodb | awk '{print $1}') |
|
[ "$scale" -eq 2 ] |
|
}
|
|
|