selftest: check file readability in shadow_copy2 test
authorUri Simchoni <uri@samba.org>
Tue, 23 Aug 2016 11:03:30 +0000 (14:03 +0300)
committerJeremy Allison <jra@samba.org>
Wed, 24 Aug 2016 23:38:28 +0000 (01:38 +0200)
commit495b8177363bf1930f3afb373ad73caac022f353
tree80680a1f687dea77b3d9b131b2e4543a75d9b9cc
parent523046080dd65607eacb901d58ee3b6e54de865e
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>
source3/script/tests/test_shadow_copy.sh