summaryrefslogtreecommitdiff
path: root/source3/script/tests/test_shadow_copy.sh
AgeCommit message (Collapse)AuthorFilesLines
2017-07-08selftest: add a test for accessing previous version of directories with ↵Ralph Boehme1-0/+23
snapdirseverywhere Bug: https://bugzilla.samba.org/show_bug.cgi?id=12885 Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Ralph Böhme <slow@samba.org> Autobuild-Date(master): Sat Jul 8 00:33:51 CEST 2017 on sn-devel-144
2016-08-25selftest: test listing directories inside snapshotsUri Simchoni1-6/+34
Verify that directories are also listable. 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>
2016-08-25selftest: check file readability in shadow_copy2 testUri Simchoni1-7/+37
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>
2016-08-25selftest: add content to files created during shadow_copy2 testUri Simchoni1-12/+14
This will allow reading them and verifying we got the right version 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>
2016-08-25s2-selftest: run shadow_copy2 test both in NT1 and SMB3 modesUri Simchoni1-2/+2
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>
2016-07-28shadow_copy2: Add test case for snapprefix and delimiterRajesh Joseph1-1/+7
Add test case for the newly addded option shadow:snapprefix and shadow:delimiter Signed-off-by: Rajesh Joseph <rjoseph@redhat.com> Reviewed-by: Uri Simchoni <uri@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
2016-07-28shadow_copy2: Add test cases to cover shadow:formatRajesh Joseph1-0/+35
Added test cases which will filter snapshot names based on shadow:format option in smb.conf Signed-off-by: Rajesh Joseph <rjoseph@redhat.com> Reviewed-by: Uri Simchoni <uri@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
2016-01-26vfs_shadow_copy2: add tests for snapsharepathUri Simchoni1-0/+1
Signed-off-by: Uri Simchoni <uri@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
2016-01-13vfs_shadow_copy2: add a blackbox test suiteUri Simchoni1-0/+290
Add a blackbox test suite for vfs_shadow_copy2, testing parameters mountpoint, basedir, snapdir, snapdirseverywhere, and testing correct wide-link processing. BUG: https://bugzilla.samba.org/show_bug.cgi?id=11580 Signed-off-by: Uri Simchoni <uri@samba.org> Reviewed-by: Michael Adam <obnox@samba.org> Autobuild-User(master): Michael Adam <obnox@samba.org> Autobuild-Date(master): Wed Jan 13 17:11:38 CET 2016 on sn-devel-144