selftest: check file readability in shadow_copy2 test
authorUri Simchoni <uri@samba.org>
Tue, 23 Aug 2016 11:03:30 +0000 (14:03 +0300)
committerKarolin Seeger <kseeger@samba.org>
Tue, 20 Sep 2016 08:10:17 +0000 (10:10 +0200)
commitdcf7d8585aa7510a31a47545d410ec2a4dd58791
tree3a5c8c65928d38cc9a78e674ca9e6690a9344367
parentd83567942aa35e22d96dd126c4d8d5b1d5e88160
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