Added username, site and password for influxdb datasources

This commit is contained in:
Torkel Ödegaard
2014-12-19 08:19:12 +01:00
parent 525b367a6f
commit e5811e29b1
6 changed files with 25 additions and 2 deletions
+3 -1
View File
@@ -34,9 +34,10 @@ func TestDataAccess(t *testing.T) {
err := AddDataSource(&m.AddDataSourceCommand{
AccountId: 10,
Type: m.DS_GRAPHITE,
Type: m.DS_INFLUXDB,
Access: m.DS_ACCESS_DIRECT,
Url: "http://test",
Database: "site",
})
So(err, ShouldBeNil)
@@ -50,6 +51,7 @@ func TestDataAccess(t *testing.T) {
ds := query.Result[0]
So(ds.AccountId, ShouldEqual, 10)
So(ds.Database, ShouldEqual, "site")
})
Convey("Given a datasource", func() {