Merge branch 'develop' into 8333-ops-auto-upstall-script-enhancements

This commit is contained in:
Rohit T P
2024-05-07 09:28:29 +00:00
230 changed files with 9381 additions and 4020 deletions

View File

@@ -167,8 +167,8 @@ stop_service() {
show_logs_sub_menu() {
clear
echo "Select a replica for $1:"
for i in $(seq 1 "$2"); do
echo "$i. $1 replica $i"
for i in $(seq 1 $2); do
echo "$i. \"$1\" replica $i"
done
echo "A. All"
echo "0. Back to Logs Menu"

View File

@@ -11,8 +11,12 @@ setup() {
}
teardown() {
cd "${WORKING_DIR}/configure" || exit 1
./setup.sh
if [ -n "$SKIP_TEARDOWN" ]; then
return
fi
cd "${WORKING_DIR}/install" || exit 1
./setup.sh
}
@test "Properly runs monitor script" {

View File

@@ -11,8 +11,12 @@ setup() {
}
teardown() {
cd "${WORKING_DIR}/configure" || exit 1
./setup.sh
if [ -n "$SKIP_TEARDOWN" ]; then
return
fi
cd "${WORKING_DIR}/install" || exit 1
./setup.sh
}
@test "Check all containers are restarted" {

View File

@@ -11,8 +11,12 @@ setup() {
}
teardown() {
cd "${WORKING_DIR}/configure" || exit 1
./setup.sh
if [ -n "$SKIP_TEARDOWN" ]; then
return
fi
cd "${WORKING_DIR}/install" || exit 1
./setup.sh
}
@test "Check NocoDB is scaled to 3 instances" {

View File

@@ -11,8 +11,12 @@ setup() {
}
teardown() {
cd "${WORKING_DIR}/configure" || exit 1
./setup.sh
if [ -n "$SKIP_TEARDOWN" ]; then
return
fi
cd "${WORKING_DIR}/install" || exit 1
./setup.sh
}
@test "Check all containers are up" {

View File

@@ -11,8 +11,12 @@ setup() {
}
teardown() {
cd "${WORKING_DIR}/configure" || exit 1
./setup.sh
if [ -n "$SKIP_TEARDOWN" ]; then
return
fi
cd "${WORKING_DIR}/install" || exit 1
./setup.sh
}
@test "Check all containers are down" {

View File

@@ -11,8 +11,12 @@ setup() {
}
teardown() {
cd "${WORKING_DIR}/configure" || exit 1
./setup.sh
if [ -n "$SKIP_TEARDOWN" ]; then
return
fi
cd "${WORKING_DIR}/install" || exit 1
./setup.sh
}
@test "Check all containers are upgraded" {

View File

@@ -6,13 +6,17 @@ export NOCO_HOME
setup() {
cd "${WORKING_DIR}/install" || exit 1
./setup.sh
cd "${WORKING_DIR}/install" || exit 1
./setup.sh
}
teardown() {
cd "${WORKING_DIR}/install" || exit 1
./setup.sh
if [ -n "$SKIP_TEARDOWN" ]; then
return
fi
cd "${WORKING_DIR}/install" || exit 1
./setup.sh
}
@test "Check installation with all default options" {

View File

@@ -11,8 +11,12 @@ setup() {
}
teardown() {
cd "${WORKING_DIR}/install" || exit 1
./setup.sh
if [ -n "$SKIP_TEARDOWN" ]; then
return
fi
cd "${WORKING_DIR}/install" || exit 1
./setup.sh
}
@test "Check installation with custom ip" {

View File

@@ -11,8 +11,12 @@ setup() {
}
teardown() {
cd "${WORKING_DIR}/install" || exit 1
./setup.sh
if [ -n "$SKIP_TEARDOWN" ]; then
return
fi
cd "${WORKING_DIR}/install" || exit 1
./setup.sh
}
@test "Check Redis is enabled when specified" {

View File

@@ -11,8 +11,12 @@ setup() {
}
teardown() {
cd "${WORKING_DIR}/install" || exit 1
./setup.sh
if [ -n "$SKIP_TEARDOWN" ]; then
return
fi
cd "${WORKING_DIR}/install" || exit 1
./setup.sh
}
@test "Check if two instances of NoCoDB can be run" {

View File

@@ -10,8 +10,12 @@ setup() {
}
teardown() {
cd "${WORKING_DIR}/install" || exit 1
./setup.sh
if [ -n "$SKIP_TEARDOWN" ]; then
return
fi
cd "${WORKING_DIR}/install" || exit 1
./setup.sh
}
@test "Should create SSL certificates" {

View File

@@ -9,8 +9,12 @@ setup() {
}
teardown() {
cd "${WORKING_DIR}/install" || exit 1
./setup.sh
if [ -n "$SKIP_TEARDOWN" ]; then
return
fi
cd "${WORKING_DIR}/install" || exit 1
./setup.sh
}
@test "Check WatchTower is enabled when specified" {