mirror of https://github.com/nocodb/nocodb
Rohit T P
7 months ago
2 changed files with 47 additions and 0 deletions
@ -0,0 +1,27 @@
|
||||
#!/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 "Properly runs monitor script" { |
||||
../expects/configure/restart.sh |
||||
|
||||
cd "${NOCO_HOME}" || exit 1 |
||||
|
||||
# Verify container is running |
||||
docker compose ps | grep -q 'redis' |
||||
docker compose ps | grep -q 'watchtower' |
||||
docker compose ps | grep -q 'nocodb' |
||||
} |
@ -0,0 +1,20 @@
|
||||
#!/usr/bin/expect -f |
||||
|
||||
# Configure timeout for each expect command |
||||
set timeout 10 |
||||
|
||||
# Start your main script |
||||
spawn bash ../../noco.sh |
||||
|
||||
expect "Do you want to reinstall NocoDB*" |
||||
send "N\r" |
||||
|
||||
expect "Enter your choice: " |
||||
send "7\r" |
||||
|
||||
send \x03 |
||||
|
||||
expect "Enter your choice: " |
||||
send "0\r" |
||||
|
||||
expect EOF |
Loading…
Reference in new issue