test: add mocks

This commit is contained in:
Rohit T P
2024-05-02 15:37:34 +00:00
parent d9a9d4b990
commit dc8d6da4b9
15 changed files with 33 additions and 3 deletions

View File

@@ -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
}

View 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*"

View 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*"

View 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*"

View 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*"

View 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*"

View 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*"

View 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
# Respond to script prompts

View File

@@ -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

View 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
# Respond to script prompts

View 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
# Respond to script prompts

View File

@@ -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

View 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
# Respond to script prompts

View File

@@ -0,0 +1,3 @@
#!/bin/bash
echo "--- Clear Mock ---"

View File

@@ -0,0 +1,3 @@
#!/bin/bash
echo 4