Add unit test for 'cluster dir' configuration

pull/1452/head
Philip O'Toole 2015-01-29 16:41:34 -08:00
parent 5a53de4d93
commit 86cf0888df
1 changed files with 5 additions and 0 deletions

View File

@ -125,6 +125,10 @@ func TestParseConfig(t *testing.T) {
t.Fatalf("data dir mismatch: %v", c.Data.Dir)
}
if c.Cluster.Dir != "/tmp/influxdb/development/cluster" {
t.Fatalf("cluster dir mismatch: %v", c.Cluster.Dir)
}
// TODO: UDP Servers testing.
/*
c.Assert(config.UdpServers, HasLen, 1)
@ -217,6 +221,7 @@ dir = "/tmp/influxdb/development/broker"
dir = "/tmp/influxdb/development/db"
[cluster]
dir = "/tmp/influxdb/development/cluster"
`
func TestCollectd_ConnectionString(t *testing.T) {