]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
regress: tweak append-immutable tests to work with new directives
authorMichal Rakowski <michal.rakowski@baculasystems.com>
Fri, 17 Dec 2021 16:27:40 +0000 (17:27 +0100)
committerEric Bollengier <eric@baculasystems.com>
Thu, 14 Sep 2023 11:56:57 +0000 (13:56 +0200)
regress/tests/volume-append-many-vols-test
regress/tests/volume-append-test
regress/tests/volume-immutable-test

index 0c9d49ca63aa1c2819887bb75885cb6e0899813f..5b56f10f7d9e5f2e2166f53951f6adf63cd2f35a 100755 (executable)
@@ -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
index 9e627bdfda0ac0a066acf0086343512dd67e17b3..3918c33a165c8dee4f52b827711397ac93fe7aa8 100755 (executable)
@@ -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
index bf1787413e82da4364be64543e2a9853b135d3ef..0036cf64ae0f35e2c2032c9389f2a1787d2eead2 100755 (executable)
@@ -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")'