mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 09:12:45 +01:00
Merge pull request #12994 from Security-Onion-Solutions/jertel/testcy
support upgrade tests
This commit is contained in:
@@ -584,9 +584,22 @@ up_to_2.4.60() {
|
|||||||
up_to_2.4.70() {
|
up_to_2.4.70() {
|
||||||
playbook_migration
|
playbook_migration
|
||||||
toggle_telemetry
|
toggle_telemetry
|
||||||
|
add_detection_test_pillars
|
||||||
INSTALLEDVERSION=2.4.70
|
INSTALLEDVERSION=2.4.70
|
||||||
}
|
}
|
||||||
|
|
||||||
|
add_detection_test_pillars() {
|
||||||
|
if [[ -n "$SOUP_INTERNAL_TESTING" ]]; then
|
||||||
|
echo "Adding detection pillar values for automated testing"
|
||||||
|
so-yaml.py add /opt/so/saltstack/local/pillar/soc/soc_soc.sls soc.config.server.modules.elastalertengine.allowRegex SecurityOnion
|
||||||
|
so-yaml.py add /opt/so/saltstack/local/pillar/soc/soc_soc.sls soc.config.server.modules.elastalertengine.failAfterConsecutiveErrorCount 1
|
||||||
|
so-yaml.py add /opt/so/saltstack/local/pillar/soc/soc_soc.sls soc.config.server.modules.strelkaengine.allowRegex "EquationGroup_Toolset_Apr17__ELV_.*"
|
||||||
|
so-yaml.py add /opt/so/saltstack/local/pillar/soc/soc_soc.sls soc.config.server.modules.strelkaengine.failAfterConsecutiveErrorCount 1
|
||||||
|
so-yaml.py add /opt/so/saltstack/local/pillar/soc/soc_soc.sls soc.config.server.modules.suricataengine.allowRegex "(200033\\d|2100538|2102466)"
|
||||||
|
so-yaml.py add /opt/so/saltstack/local/pillar/soc/soc_soc.sls soc.config.server.modules.suricataengine.failAfterConsecutiveErrorCount 1
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
toggle_telemetry() {
|
toggle_telemetry() {
|
||||||
if [[ -z $UNATTENDED && $is_airgap -ne 0 ]]; then
|
if [[ -z $UNATTENDED && $is_airgap -ne 0 ]]; then
|
||||||
cat << ASSIST_EOF
|
cat << ASSIST_EOF
|
||||||
|
|||||||
Reference in New Issue
Block a user