]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
test-obsync.py: add tests with --no-preserve-acls
authorColin Patrick McCabe <cmccabe@alumni.cmu.edu>
Tue, 26 Apr 2011 17:06:54 +0000 (10:06 -0700)
committerColin Patrick McCabe <cmccabe@alumni.cmu.edu>
Tue, 26 Apr 2011 17:07:16 +0000 (10:07 -0700)
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
src/obsync/test-obsync.py

index b0c60d84e9bdd1e2922423739e52326b32358004..ba7aca3bf477df1c73fd789bff8c44855e4556d2 100755 (executable)
@@ -225,6 +225,10 @@ if os.path.exists("/%s/dir1c/a" % tdir):
     raise RuntimeError("error: running with --delete-after \
 failed to delete files from the destination!")
 
+# test with --no-preserve-acls
+obsync_check("file://%s/dir1" % tdir, "file://%s/dir1b2" % tdir,
+            ["--no-preserve-acls", "-c"])
+
 if (len(opts.buckets) >= 1):
     # first, let's empty out the S3 bucket
     os.mkdir("%s/empty1" % tdir)
@@ -280,6 +284,12 @@ if (len(opts.buckets) >= 1):
     obsync_check(opts.buckets[0], "file://%s/escape_dir2" % tdir, ["-c"])
     compare_directories("%s/escape_dir1" % tdir, "%s/escape_dir2" % tdir)
 
+    # some more tests with --no-preserve-acls
+    obsync_check("file://%s/dir1" % tdir, opts.buckets[0],
+                ["--no-preserve-acls"])
+    obsync_check(opts.buckets[0], "file://%s/dir1_no-preserve-acls" % tdir,
+                ["--no-preserve-acls", "-c"])
+
 if (len(opts.buckets) >= 2):
     if (opts.verbose):
         print "copying dir1 to bucket0..."