mirror of
https://github.com/nocodb/nocodb.git
synced 2026-04-27 00:15:28 +00:00
test: add mocks
This commit is contained in:
@@ -21,7 +21,7 @@ teardown() {
|
||||
cd "${NOCO_HOME}" || exit 1
|
||||
|
||||
# Verify container is not running
|
||||
docker compose ps | grep -q 'redis' && fail "Redis is running"
|
||||
docker compose ps | grep -q 'watchtower' && fail "WatchTower is running"
|
||||
docker compose ps | grep -q 'nocodb' && fail "NocoDB is running"
|
||||
docker compose ps | grep -q 'redis' && exit 1
|
||||
docker compose ps | grep -q 'watchtower' && exit 1
|
||||
docker compose ps | grep -q 'nocodb' && exit 1
|
||||
}
|
||||
|
||||
@@ -4,6 +4,8 @@
|
||||
set timeout 10
|
||||
|
||||
# Start your main script
|
||||
set env(PATH) "$env(WORKING_DIR)/mocks:$env(PATH)"
|
||||
|
||||
spawn bash ../../noco.sh
|
||||
|
||||
expect "Do you want to reinstall NocoDB*"
|
||||
|
||||
@@ -4,6 +4,8 @@
|
||||
set timeout 10
|
||||
|
||||
# Start your main script
|
||||
set env(PATH) "$env(WORKING_DIR)/mocks:$env(PATH)"
|
||||
|
||||
spawn bash ../../noco.sh
|
||||
|
||||
expect "Do you want to reinstall NocoDB*"
|
||||
|
||||
@@ -4,6 +4,8 @@
|
||||
set timeout 10
|
||||
|
||||
# Start your main script
|
||||
set env(PATH) "$env(WORKING_DIR)/mocks:$env(PATH)"
|
||||
|
||||
spawn bash ../../noco.sh
|
||||
|
||||
expect "Do you want to reinstall NocoDB*"
|
||||
|
||||
@@ -4,6 +4,8 @@
|
||||
set timeout 10
|
||||
|
||||
# Start your main script
|
||||
set env(PATH) "$env(WORKING_DIR)/mocks:$env(PATH)"
|
||||
|
||||
spawn bash ../../noco.sh
|
||||
|
||||
expect "Do you want to reinstall NocoDB*"
|
||||
|
||||
2
docker-compose/setup-script/tests/expects/configure/stop.sh
Normal file → Executable file
2
docker-compose/setup-script/tests/expects/configure/stop.sh
Normal file → Executable file
@@ -4,6 +4,8 @@
|
||||
set timeout 10
|
||||
|
||||
# Start your main script
|
||||
set env(PATH) "$env(WORKING_DIR)/mocks:$env(PATH)"
|
||||
|
||||
spawn bash ../../noco.sh
|
||||
|
||||
expect "Do you want to reinstall NocoDB*"
|
||||
|
||||
@@ -4,6 +4,8 @@
|
||||
set timeout 10
|
||||
|
||||
# Start your main script
|
||||
set env(PATH) "$env(WORKING_DIR)/mocks:$env(PATH)"
|
||||
|
||||
spawn bash ../../noco.sh
|
||||
|
||||
expect "Do you want to reinstall NocoDB*"
|
||||
|
||||
@@ -4,6 +4,8 @@
|
||||
set timeout 10
|
||||
|
||||
# Start your main script
|
||||
set env(PATH) "$env(WORKING_DIR)/mocks:$env(PATH)"
|
||||
|
||||
spawn bash ../../noco.sh
|
||||
|
||||
# Respond to script prompts
|
||||
|
||||
@@ -5,6 +5,8 @@
|
||||
set timeout 10
|
||||
|
||||
# Start your main script
|
||||
set env(PATH) "$env(WORKING_DIR)/mocks:$env(PATH)"
|
||||
|
||||
spawn bash ../../noco.sh
|
||||
|
||||
# Respond to script prompts
|
||||
|
||||
@@ -4,6 +4,8 @@
|
||||
set timeout 10
|
||||
|
||||
# Start your main script
|
||||
set env(PATH) "$env(WORKING_DIR)/mocks:$env(PATH)"
|
||||
|
||||
spawn bash ../../noco.sh
|
||||
|
||||
# Respond to script prompts
|
||||
|
||||
@@ -4,6 +4,8 @@
|
||||
set timeout 10
|
||||
|
||||
# Start your main script
|
||||
set env(PATH) "$env(WORKING_DIR)/mocks:$env(PATH)"
|
||||
|
||||
spawn bash ../../noco.sh
|
||||
|
||||
# Respond to script prompts
|
||||
|
||||
@@ -6,6 +6,8 @@ set timeout 10
|
||||
set random_number [lindex $argv 0]
|
||||
|
||||
# Start your main script
|
||||
set env(PATH) "$env(WORKING_DIR)/mocks:$env(PATH)"
|
||||
|
||||
spawn bash ../../noco.sh
|
||||
|
||||
# Respond to script prompts
|
||||
|
||||
@@ -4,6 +4,8 @@
|
||||
set timeout 10
|
||||
|
||||
# Start your main script
|
||||
set env(PATH) "$env(WORKING_DIR)/mocks:$env(PATH)"
|
||||
|
||||
spawn bash ../../noco.sh
|
||||
|
||||
# Respond to script prompts
|
||||
|
||||
3
docker-compose/setup-script/tests/mocks/clear
Executable file
3
docker-compose/setup-script/tests/mocks/clear
Executable file
@@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
|
||||
echo "--- Clear Mock ---"
|
||||
3
docker-compose/setup-script/tests/mocks/nproc
Executable file
3
docker-compose/setup-script/tests/mocks/nproc
Executable file
@@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
|
||||
echo 4
|
||||
Reference in New Issue
Block a user