From: Michal Rakowski Date: Fri, 17 Dec 2021 16:27:40 +0000 (+0100) Subject: regress: tweak append-immutable tests to work with new directives X-Git-Tag: Beta-15.0.0~712 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=775e6f5f64ad1ee8286419c8cd552c3c4c34e6f3;p=thirdparty%2Fbacula.git regress: tweak append-immutable tests to work with new directives --- diff --git a/regress/tests/volume-append-many-vols-test b/regress/tests/volume-append-many-vols-test index 0c9d49ca6..5b56f10f7 100755 --- a/regress/tests/volume-append-many-vols-test +++ b/regress/tests/volume-append-many-vols-test @@ -30,6 +30,9 @@ cleanup() trap 'cleanup' EXIT INT TERM +$bperl -e 'add_attribute("$conf/bacula-sd.conf", "SetVolumeAppendOnly", "yes", "Device", "FileChgr1-Dev1")' +$bperl -e 'add_attribute("$conf/bacula-sd.conf", "SetVolumeAppendOnly", "yes", "Device", "FileChgr1-Dev2")' + # Create temporary bacula-sd.service file so that we can run SD as systemd service scripts/create_sed sed -f ${tmp}/sed_tmp ${cwd}/build/platforms/systemd/bacula-sd.service.in > ${tmp}/test-bacula-sd.service diff --git a/regress/tests/volume-append-test b/regress/tests/volume-append-test index 9e627bdfd..3918c33a1 100755 --- a/regress/tests/volume-append-test +++ b/regress/tests/volume-append-test @@ -31,6 +31,8 @@ cleanup() trap 'cleanup' EXIT INT TERM +$bperl -e 'add_attribute("$conf/bacula-sd.conf", "SetVolumeAppendOnly", "yes", "Device", "FileChgr1-Dev1")' + # Create temporary bacula-sd.service file so that we can run SD as systemd service scripts/create_sed sed -f ${tmp}/sed_tmp ${cwd}/build/platforms/systemd/bacula-sd.service.in > ${tmp}/test-bacula-sd.service diff --git a/regress/tests/volume-immutable-test b/regress/tests/volume-immutable-test index bf1787413..0036cf64a 100755 --- a/regress/tests/volume-immutable-test +++ b/regress/tests/volume-immutable-test @@ -10,7 +10,7 @@ # This test creates temporary bacula-sd.service file so that we can run SD # as systemd service. # -TestName="volume-append-many-vols-test" +TestName="volume-immutable-test" JobName=append . scripts/functions @@ -53,8 +53,10 @@ $bperl -e 'add_attribute("$conf/bacula-sd.conf", "MaximumVolumeSize", "50M", "De $bperl -e 'add_attribute("$conf/bacula-sd.conf", "MaximumVolumeSize", "50M", "Device", "FileChgr1-Dev2")' # Set some protection directives -$bperl -e 'add_attribute("$conf/bacula-sd.conf", "ProtectVolumes", "yes", "Device", "FileChgr1-Dev1")' -$bperl -e 'add_attribute("$conf/bacula-sd.conf", "ProtectVolumes", "yes", "Device", "FileChgr1-Dev2")' +$bperl -e 'add_attribute("$conf/bacula-sd.conf", "SetVolumeAppendOnly", "yes", "Device", "FileChgr1-Dev1")' +$bperl -e 'add_attribute("$conf/bacula-sd.conf", "SetVolumeAppendOnly", "yes", "Device", "FileChgr1-Dev2")' +$bperl -e 'add_attribute("$conf/bacula-sd.conf", "SetVolumeImmutable", "yes", "Device", "FileChgr1-Dev1")' +$bperl -e 'add_attribute("$conf/bacula-sd.conf", "SetVolumeImmutable", "yes", "Device", "FileChgr1-Dev2")' $bperl -e 'add_attribute("$conf/bacula-sd.conf", "MinimumVolumeProtectionTime", "10seconds", "Device", "FileChgr1-Dev1")' $bperl -e 'add_attribute("$conf/bacula-sd.conf", "MinimumVolumeProtectionTime", "10seconds", "Device", "FileChgr1-Dev2")'