refactor automated testing inputs due to streamlined setup process

This commit is contained in:
Jason Ertel
2023-02-28 15:34:09 -05:00
parent d456f681f1
commit 749c299ed2

View File

@@ -175,34 +175,38 @@ progress() {
if [ -n "$test_profile" ]; then if [ -n "$test_profile" ]; then
install_type="$(echo $test_profile |awk -F- '{print $1}')" install_type="$(echo $test_profile |awk -F- '{print $1}')"
install_type=${install_type^^}
info "Activating test profile; profile=$test_profile; install_type=$install_type" info "Activating test profile; profile=$test_profile; install_type=$install_type"
# The below settings are hardcoded purely for automated testing purposes. # The below settings are hardcoded purely for automated testing purposes.
TESTING=true TESTING=true
if [[ "$test_profile" =~ "-sensor-" || "$test_profile" =~ "-search-" ]]; then if [[ "$test_profile" =~ "-sensor-" || "$test_profile" =~ "-search-" ]]; then
HOSTNAME=$test_profile HOSTNAME=$test_profile
else
HOSTNAME=manager
fi
MSRV=manager MSRV=manager
if [[ "$test_profile" =~ "-net" ]]; then if [[ "$test_profile" =~ "-net" ]]; then
address_type=DHCP
MSRVIP=10.66.166.72 MSRVIP=10.66.166.72
elif [[ "$test_profile" =~ "-cloud" ]]; then elif [[ "$test_profile" =~ "-cloud" ]]; then
MSRVIP=10.99.1.20 MSRVIP=10.99.1.20
elif [[ "$test_profile" =~ "-iso" ]]; then elif [[ "$test_profile" =~ "-iso" ]]; then
MSRVIP=10.66.166.42 MSRVIP=10.66.166.42
elif [[ "$test_profile" =~ "-airgap" ]]; then elif [[ "$test_profile" =~ "-airgap" ]]; then
is_airgap=true
MSRVIP=10.66.166.52 MSRVIP=10.66.166.52
fi fi
else
HOSTNAME=manager
fi
if [[ "$test_profile" =~ "-net" ]]; then
address_type=DHCP
fi
if [ -f "/root/public_ip" ]; then if [ -f "/root/public_ip" ]; then
REDIRECTHOST=$(cat /root/public_ip) REDIRECTHOST=$(cat /root/public_ip)
REDIRECTINFO=OTHER REDIRECTINFO=OTHER
else else
REDIRECTINFO=IP REDIRECTINFO=IP
fi fi
ALLOW_CIDR=0.0.0.0/0 ALLOW_CIDR=0.0.0.0/0
MNIC=eth0 MNIC=eth0
BNICS=eth1 BNICS=eth1