diff --git a/tests/config/config.d/keeper_port.xml b/tests/config/config.d/keeper_port.xml index 8cea9044dd0..cffd325e968 100644 --- a/tests/config/config.d/keeper_port.xml +++ b/tests/config/config.d/keeper_port.xml @@ -3,6 +3,8 @@ 9181 1 + true + 10000 100000 diff --git a/tests/config/install.sh b/tests/config/install.sh index a9e66ebb633..46009ce671e 100755 --- a/tests/config/install.sh +++ b/tests/config/install.sh @@ -80,6 +80,10 @@ ln -sf $SRC_PATH/dhparam.pem $DEST_SERVER_PATH/ ln -sf --backup=simple --suffix=_original.xml \ $SRC_PATH/config.d/query_masking_rules.xml $DEST_SERVER_PATH/config.d/ +# We randomize creating the snapshot on exit for Keeper to test out using older snapshots +create_snapshot_on_exit=$(($RANDOM % 2)) +cat $DEST_SERVER_PATH/config.d/keeper_port.xml | sed "s|true|$create_snapshot_on_exit|" > $DEST_SERVER_PATH/config.d/keeper_port.xml + if [[ -n "$USE_POLYMORPHIC_PARTS" ]] && [[ "$USE_POLYMORPHIC_PARTS" -eq 1 ]]; then ln -sf $SRC_PATH/config.d/polymorphic_parts.xml $DEST_SERVER_PATH/config.d/ fi