diff options
| author | Chris Lu <chris.lu@gmail.com> | 2020-11-16 16:50:12 -0800 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2020-11-16 16:50:12 -0800 |
| commit | 5f19e81dabf7e7bc4f7e9d5506139d36b981501c (patch) | |
| tree | e57e47addb640fa08061de1e0592de980c03d6f5 /weed/filer/filer_conf_test.go | |
| parent | ed1ce3f2998cc51e2310d23098befdc080b56c74 (diff) | |
| download | seaweedfs-5f19e81dabf7e7bc4f7e9d5506139d36b981501c.tar.xz seaweedfs-5f19e81dabf7e7bc4f7e9d5506139d36b981501c.zip | |
filer confi: support hierachical configuration
Diffstat (limited to 'weed/filer/filer_conf_test.go')
| -rw-r--r-- | weed/filer/filer_conf_test.go | 5 |
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) } |
