mirror of
https://github.com/nocodb/nocodb.git
synced 2026-04-30 04:56:48 +00:00
update : refactor auto-upstall and installation methods
This commit is contained in:
30
docker-compose/1_Auto_Upstall/tests/install/scale.bats
Executable file
30
docker-compose/1_Auto_Upstall/tests/install/scale.bats
Executable file
@@ -0,0 +1,30 @@
|
||||
#!/usr/bin/env bats
|
||||
|
||||
NOCO_HOME="./nocodb"
|
||||
export NOCO_HOME
|
||||
|
||||
|
||||
|
||||
setup() {
|
||||
cd "${WORKING_DIR}/install" || exit 1
|
||||
./setup.sh
|
||||
}
|
||||
|
||||
teardown() {
|
||||
if [ -n "$SKIP_TEARDOWN" ]; then
|
||||
return
|
||||
fi
|
||||
|
||||
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 ]
|
||||
}
|
||||
Reference in New Issue
Block a user