From 8e1ee427bdd0f8b80de3412a1c7ec2848b711e4d Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Thu, 28 Jan 2010 22:00:40 +0100 Subject: [PATCH] Tweak action-on-purge test --- regress/tests/action-on-purge-test | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) 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 -- 2.39.5