relax login rate limiting when testing

This commit is contained in:
Jason Ertel
2023-05-15 12:57:41 -04:00
parent 634dd9907d
commit ba9892941d

View File

@@ -910,7 +910,7 @@ create_manager_pillars() {
influxdb_pillar influxdb_pillar
logrotate_pillar logrotate_pillar
patch_pillar patch_pillar
nginx_pillar
} }
create_repo() { create_repo() {
@@ -1395,6 +1395,19 @@ idstools_pillar() {
touch $adv_idstools_pillar_file touch $adv_idstools_pillar_file
} }
nginx_pillar() {
title "Creating the NGINX pillar"
[[ -z "$TESTING" ]] && return
# When testing, set the login rate limiting to high values to avoid failing automated logins
printf '%s\n'\
"nginx:"\
" config:"\
" throttle_login_burst: 9999"\
" throttle_login_rate: 9999"\
"" > "$nginx_pillar_file"
}
soc_pillar() { soc_pillar() {
title "Creating the SOC pillar" title "Creating the SOC pillar"
touch $adv_soc_pillar_file touch $adv_soc_pillar_file