refactor automated testing inputs due to streamlined setup process

This commit is contained in:
Jason Ertel
2023-02-28 16:31:17 -05:00
parent 205e344034
commit 13182fcda2

View File

@@ -181,8 +181,10 @@ if [ -n "$test_profile" ]; then
# The below settings are hardcoded purely for automated testing purposes.
TESTING=true
if [[ "$test_profile" =~ "-sensor-" || "$test_profile" =~ "-search-" ]]; then
HOSTNAME=$test_profile
if [[ "$test_profile" =~ "-sensor-" ]]; then
HOSTNAME=sensor
elif [[ "$test_profile" =~ "-search-" ]]; then
HOSTNAME=search
else
HOSTNAME=manager
fi