[ARVADOS] updated: 50cd2aaee0e70d35ac4d90e3c29304fa48dd568a

Git user git at public.curoverse.com
Mon Oct 17 08:27:04 EDT 2016


Summary of changes:
 services/keepstore/volume_unix_test.go | 13 +++++++++++++
 1 file changed, 13 insertions(+)

       via  50cd2aaee0e70d35ac4d90e3c29304fa48dd568a (commit)
      from  0cb1e7c1e0d6eda274b175f395a2739806f2cfea (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit 50cd2aaee0e70d35ac4d90e3c29304fa48dd568a
Author: Tom Clegg <tom at curoverse.com>
Date:   Mon Oct 17 08:26:26 2016 -0400

    10281: Test default replication=1 for directory volumes.

diff --git a/services/keepstore/volume_unix_test.go b/services/keepstore/volume_unix_test.go
index ac0a492..887247d 100644
--- a/services/keepstore/volume_unix_test.go
+++ b/services/keepstore/volume_unix_test.go
@@ -101,6 +101,19 @@ func TestUnixVolumeHandlersWithGenericVolumeTests(t *testing.T) {
 	})
 }
 
+func TestReplicationDefault1(t *testing.T) {
+	v := &UnixVolume{
+		Root:     "/",
+		ReadOnly: true,
+	}
+	if err := v.Start(); err != nil {
+		t.Error(err)
+	}
+	if got := v.Replication(); got != 1 {
+		t.Errorf("Replication() returned %d, expected 1 if no config given", got)
+	}
+}
+
 func TestGetNotFound(t *testing.T) {
 	v := NewTestableUnixVolume(t, false, false)
 	defer v.Teardown()

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list