selftest: check file readability in shadow_copy2 test
commit962ab3dd8126cfc65e2058909ae00f72505f2ed4
authorUri Simchoni <uri@samba.org>
Tue, 23 Aug 2016 11:03:30 +0000 (23 14:03 +0300)
committerKarolin Seeger <kseeger@samba.org>
Wed, 21 Sep 2016 09:15:08 +0000 (21 11:15 +0200)
tree30d5ab955d38d813c8eb41428f9241c954d6cbe8
parent73cb902932e885e43a8d0332cad07a0e3147c849
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