aboutsummaryrefslogtreecommitdiff
path: root/weed/filer/filer_conf_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'weed/filer/filer_conf_test.go')
-rw-r--r--weed/filer/filer_conf_test.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/weed/filer/filer_conf_test.go b/weed/filer/filer_conf_test.go
index 1bfe8bcfe..91f006cda 100644
--- a/weed/filer/filer_conf_test.go
+++ b/weed/filer/filer_conf_test.go
@@ -20,10 +20,15 @@ func TestFilerConf(t *testing.T) {
LocationPrefix: "/buckets/abcd",
Collection: "abcd",
},
+ {
+ LocationPrefix: "/buckets/",
+ Replication: "001",
+ },
}}
fc.doLoadConf(conf)
assert.Equal(t, "abc", fc.MatchStorageRule("/buckets/abc/jasdf").Collection)
assert.Equal(t, "abcd", fc.MatchStorageRule("/buckets/abcd/jasdf").Collection)
+ assert.Equal(t, "001", fc.MatchStorageRule("/buckets/abc/jasdf").Replication)
}