Merge branch 'master' of github.com:grafana/grafana
This commit is contained in:
+1
-1
@@ -67,7 +67,7 @@ path = grafana.db
|
|||||||
|
|
||||||
#################################### Session ####################################
|
#################################### Session ####################################
|
||||||
[session]
|
[session]
|
||||||
# Either "memory", "file", "redis", "mysql", "postgresql", default is "file"
|
# Either "memory", "file", "redis", "mysql", "postgres", default is "file"
|
||||||
provider = file
|
provider = file
|
||||||
|
|
||||||
# Provider config options
|
# Provider config options
|
||||||
|
|||||||
+1
-1
@@ -67,7 +67,7 @@
|
|||||||
|
|
||||||
#################################### Session ####################################
|
#################################### Session ####################################
|
||||||
[session]
|
[session]
|
||||||
# Either "memory", "file", "redis", "mysql", "postgresql", default is "file"
|
# Either "memory", "file", "redis", "mysql", "postgres", default is "file"
|
||||||
;provider = file
|
;provider = file
|
||||||
|
|
||||||
# Provider config options
|
# Provider config options
|
||||||
|
|||||||
@@ -14,7 +14,8 @@ func TestDataSourceProxy(t *testing.T) {
|
|||||||
|
|
||||||
Convey("When getting graphite datasource proxy", t, func() {
|
Convey("When getting graphite datasource proxy", t, func() {
|
||||||
ds := m.DataSource{Url: "htttp://graphite:8080", Type: m.DS_GRAPHITE}
|
ds := m.DataSource{Url: "htttp://graphite:8080", Type: m.DS_GRAPHITE}
|
||||||
proxy := NewReverseProxy(&ds, "/render")
|
targetUrl, _ := url.Parse(ds.Url)
|
||||||
|
proxy := NewReverseProxy(&ds, "/render", targetUrl)
|
||||||
|
|
||||||
requestUrl, _ := url.Parse("http://grafana.com/sub")
|
requestUrl, _ := url.Parse("http://grafana.com/sub")
|
||||||
req := http.Request{URL: requestUrl}
|
req := http.Request{URL: requestUrl}
|
||||||
@@ -36,7 +37,8 @@ func TestDataSourceProxy(t *testing.T) {
|
|||||||
Password: "password",
|
Password: "password",
|
||||||
}
|
}
|
||||||
|
|
||||||
proxy := NewReverseProxy(&ds, "")
|
targetUrl, _ := url.Parse(ds.Url)
|
||||||
|
proxy := NewReverseProxy(&ds, "", targetUrl)
|
||||||
|
|
||||||
requestUrl, _ := url.Parse("http://grafana.com/sub")
|
requestUrl, _ := url.Parse("http://grafana.com/sub")
|
||||||
req := http.Request{URL: requestUrl}
|
req := http.Request{URL: requestUrl}
|
||||||
|
|||||||
Reference in New Issue
Block a user