mirror of
https://github.com/nocodb/nocodb.git
synced 2026-04-26 06:34:55 +00:00
test: test for watchtower and scaling
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
set timeout 10
|
||||
|
||||
# Start your main script
|
||||
spawn bash ../noco.sh
|
||||
spawn bash ../../noco.sh
|
||||
|
||||
# Respond to script prompts
|
||||
expect "Enter the IP address or domain name for the NocoDB instance (default: localhost):"
|
||||
31
docker-compose/setup-script/tests/expects/install/scale.sh
Executable file
31
docker-compose/setup-script/tests/expects/install/scale.sh
Executable file
@@ -0,0 +1,31 @@
|
||||
#!/usr/bin/expect -f
|
||||
|
||||
# Configure timeout for each expect command
|
||||
set timeout 10
|
||||
|
||||
# Start your main script
|
||||
spawn bash ../../noco.sh
|
||||
|
||||
# Respond to script prompts
|
||||
expect "Enter the IP address or domain name for the NocoDB instance (default: localhost):"
|
||||
send "\r"
|
||||
|
||||
expect "Show Advanced Options*"
|
||||
send "Y\r"
|
||||
|
||||
expect "Choose Community or Enterprise Edition*"
|
||||
send "\r"
|
||||
|
||||
expect "Do you want to enabled Redis for caching*"
|
||||
send "Y\r"
|
||||
|
||||
expect "Do you want to enabled Watchtower for automatic updates*"
|
||||
send "\r"
|
||||
|
||||
expect "How many instances of NocoDB do you want to run*"
|
||||
send "2\r"
|
||||
|
||||
expect "Do you want to start the management menu*"
|
||||
send "N\r"
|
||||
|
||||
expect eof
|
||||
31
docker-compose/setup-script/tests/expects/install/watchtower.sh
Executable file
31
docker-compose/setup-script/tests/expects/install/watchtower.sh
Executable file
@@ -0,0 +1,31 @@
|
||||
#!/usr/bin/expect -f
|
||||
|
||||
# Configure timeout for each expect command
|
||||
set timeout 10
|
||||
|
||||
# Start your main script
|
||||
spawn bash ../../noco.sh
|
||||
|
||||
# Respond to script prompts
|
||||
expect "Enter the IP address or domain name for the NocoDB instance (default: localhost):"
|
||||
send "\r"
|
||||
|
||||
expect "Show Advanced Options*"
|
||||
send "Y\r"
|
||||
|
||||
expect "Choose Community or Enterprise Edition*"
|
||||
send "\r"
|
||||
|
||||
expect "Do you want to enabled Redis for caching*"
|
||||
send "\r"
|
||||
|
||||
expect "Do you want to enabled Watchtower for automatic updates*"
|
||||
send "Y\r"
|
||||
|
||||
expect "How many instances of NocoDB do you want to run*"
|
||||
send "\r"
|
||||
|
||||
expect "Do you want to start the management menu*"
|
||||
send "N\r"
|
||||
|
||||
expect eof
|
||||
Reference in New Issue
Block a user