selftest: check file readability in shadow_copy2 test
commitbbc351a83ca9c5c27c059d3a90824648f413a377
authorUri Simchoni <uri@samba.org>
Tue, 23 Aug 2016 11:03:30 +0000 (23 14:03 +0300)
committerStefan Metzmacher <metze@samba.org>
Sun, 28 Aug 2016 16:12:11 +0000 (28 18:12 +0200)
treee3b0c10d14d6d6756d2f8e154414baaa5fdfe4e9
parent44616abeff03d0add2c8a0619a61da217931e054
selftest: check file readability in shadow_copy2 test

Add tests which verify that a snapshot file is readable
if and only if it its metadata can be retrieved. Also
verify (in most tests) that file is retrieved from the
correct snapshot.

Together with the existing test for number of previous
versions we can stat, this test checks that we can read
those files, and also that we cannot break out of a snapshot
if wide links are not allowed.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=12172

Signed-off-by: Uri Simchoni <uri@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
(cherry picked from commit 495b8177363bf1930f3afb373ad73caac022f353)
source3/script/tests/test_shadow_copy.sh