From: Eric Bollengier Date: Thu, 28 Jan 2010 21:00:40 +0000 (+0100) Subject: Tweak action-on-purge test X-Git-Tag: Release-5.2.1~1833 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=ae9eeaa2380efa2db377c52584a6f264af3e9188;p=bacula%2Fbacula Tweak action-on-purge test --- diff --git a/regress/tests/action-on-purge-test b/regress/tests/action-on-purge-test index ee95c60a59..264cad4870 100755 --- a/regress/tests/action-on-purge-test +++ b/regress/tests/action-on-purge-test @@ -42,9 +42,34 @@ run level=full job=$JobName yes wait messages @######################################################### +@# Run a third job that will wait, and purge volume +@######################################################### +@$out $tmp/log3.out +update volume=TestVolume002 volstatus=Used +messages +@$out $tmp/log1.out +run level=full job=$JobName yes +@#wait mount +@sleep 5 +messages +list volume +@# should continue on TestVolume001 +sql +select VolumeName, ActionOnPurge FROM Media; + +setdebug level=400 director +purge volume=TestVolume001 +list volume +sql +select VolumeName, ActionOnPurge FROM Media; + +mount storage=File +wait +@######################################################### @# Test ActionOnPurge=Truncate Volume size should be small @######################################################### purge volume=TestVolume001 +list volume @######################################################### @# Test ActionOnPurge=Truncate, then update it to None @# Volume size should be normal