mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
tombstone-expunge: Assert than an expunge does not bump the USN
Signed-off-by: Garming Sam <garming@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
parent
a9c6879bb5
commit
cf587f9aff
@ -46,6 +46,10 @@ undump() {
|
||||
|
||||
tombstones_expunge() {
|
||||
tmpfile=$PREFIX_ABS/$RELEASE/expected-expunge-output.txt
|
||||
tmpldif1=$PREFIX_ABS/$RELEASE/expected-expunge-output2.txt.tmp1
|
||||
|
||||
TZ=UTC $ldbsearch -H tdb://$PREFIX_ABS/${RELEASE}/private/sam.ldb -s base -b '' | grep highestCommittedUSN > $tmpldif1
|
||||
|
||||
$PYTHON $BINDIR/samba-tool domain tombstones expunge -H tdb://$PREFIX_ABS/${RELEASE}/private/sam.ldb --current-time=2016-07-30 --tombstone-lifetime=4 > $tmpfile
|
||||
if [ "$?" != "0" ]; then
|
||||
return $?
|
||||
@ -54,6 +58,14 @@ tombstones_expunge() {
|
||||
if [ "$?" != "0" ]; then
|
||||
return 1
|
||||
fi
|
||||
|
||||
tmpldif2=$PREFIX_ABS/$RELEASE/expected-expunge-output2.txt.tmp2
|
||||
TZ=UTC $ldbsearch -H tdb://$PREFIX_ABS/${RELEASE}/private/sam.ldb -s base -b '' | grep highestCommittedUSN > $tmpldif2
|
||||
|
||||
diff $tmpldif1 $tmpldif2
|
||||
if [ "$?" != "0" ]; then
|
||||
return 1
|
||||
fi
|
||||
}
|
||||
|
||||
add_two_more_users() {
|
||||
|
Loading…
Reference in New Issue
Block a user