From 56c3693765e0cdedde5a52b13063470836fb7215 Mon Sep 17 00:00:00 2001 From: Jeff Darcy Date: Thu, 21 Oct 2010 11:33:44 -0400 Subject: [PATCH] Add test for re-replication when an attribute changes. --- t/replication | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/t/replication b/t/replication index 08721ea..5423dc3 100644 --- a/t/replication +++ b/t/replication @@ -92,11 +92,20 @@ wait_for .1 50 "wait_for_repl $api" || fail_ "replication seems stuck" test -f fs_downstream/rbucket/file5 && fail=1 # Test replication of deletes. -curl -X DELETE $bkt/file4 || fail=2 +curl -X DELETE $bkt/file4 || fail=1 wait_for .1 50 "wait_for_repl $api" || fail_ "replication seems stuck" test -f fs_upstream/rbucket/file4 && fail=1 test -f fs_downstream/rbucket/file4 && fail=1 +# Test re-replication when we change an attribute. +echo hello | curl -T - $bkt/file6 +echo -n 'red' | curl -T - $bkt/file6/color +echo -n '$color=="blue"' | curl -T - $bkt/file6/_policy +test -f fs_downstream/rbucket/file6 && fail=1 +echo -n 'blue' | curl -T - $bkt/file6/color +wait_for .1 50 "wait_for_repl $api" || fail_ "replication seems stuck" +test -f fs_downstream/rbucket/file6 || fail=1 + # TBD: add op=check result checks Exit $fail -- 2.11.4.GIT