mirror of
https://github.com/nocodb/nocodb.git
synced 2026-04-26 14:05:21 +00:00
test: test for default case and for custom ip
This commit is contained in:
19
docker-compose/setup-script/tests/expects/install/default.sh
Executable file
19
docker-compose/setup-script/tests/expects/install/default.sh
Executable file
@@ -0,0 +1,19 @@
|
||||
#!/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 "\r"
|
||||
|
||||
expect "Do you want to start the management menu*"
|
||||
send "N\r"
|
||||
|
||||
expect eof
|
||||
20
docker-compose/setup-script/tests/expects/install/ip.sh
Executable file
20
docker-compose/setup-script/tests/expects/install/ip.sh
Executable file
@@ -0,0 +1,20 @@
|
||||
#!/usr/bin/expect -f
|
||||
# shellcheck shell=bash
|
||||
|
||||
# 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 "192.168.1.10\r"
|
||||
|
||||
expect "Show Advanced Options*"
|
||||
send "\r"
|
||||
|
||||
expect "Do you want to start the management menu*"
|
||||
send "N\r"
|
||||
|
||||
expect eof
|
||||
Reference in New Issue
Block a user