Merge pull request #394 from prometheus/beorn7/testing

Fix TestHandler
This commit is contained in:
Björn Rabenstein 2018-03-19 14:17:21 +01:00 committed by GitHub
commit d49167c4b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 8 deletions

View File

@ -254,7 +254,7 @@ collected metric's label constname is not utf8: "\xff"
}, },
out: output{ out: output{
headers: map[string]string{ headers: map[string]string{
"Content-Type": `text/plain; version=0.0.4`, "Content-Type": `text/plain; version=0.0.4; charset=utf-8`,
}, },
body: []byte{}, body: []byte{},
}, },
@ -265,7 +265,7 @@ collected metric's label constname is not utf8: "\xff"
}, },
out: output{ out: output{
headers: map[string]string{ headers: map[string]string{
"Content-Type": `text/plain; version=0.0.4`, "Content-Type": `text/plain; version=0.0.4; charset=utf-8`,
}, },
body: []byte{}, body: []byte{},
}, },
@ -276,7 +276,7 @@ collected metric's label constname is not utf8: "\xff"
}, },
out: output{ out: output{
headers: map[string]string{ headers: map[string]string{
"Content-Type": `text/plain; version=0.0.4`, "Content-Type": `text/plain; version=0.0.4; charset=utf-8`,
}, },
body: []byte{}, body: []byte{},
}, },
@ -298,7 +298,7 @@ collected metric's label constname is not utf8: "\xff"
}, },
out: output{ out: output{
headers: map[string]string{ headers: map[string]string{
"Content-Type": `text/plain; version=0.0.4`, "Content-Type": `text/plain; version=0.0.4; charset=utf-8`,
}, },
body: expectedMetricFamilyAsText, body: expectedMetricFamilyAsText,
}, },
@ -322,7 +322,7 @@ collected metric's label constname is not utf8: "\xff"
}, },
out: output{ out: output{
headers: map[string]string{ headers: map[string]string{
"Content-Type": `text/plain; version=0.0.4`, "Content-Type": `text/plain; version=0.0.4; charset=utf-8`,
}, },
body: externalMetricFamilyAsText, body: externalMetricFamilyAsText,
}, },
@ -365,7 +365,7 @@ collected metric's label constname is not utf8: "\xff"
}, },
out: output{ out: output{
headers: map[string]string{ headers: map[string]string{
"Content-Type": `text/plain; version=0.0.4`, "Content-Type": `text/plain; version=0.0.4; charset=utf-8`,
}, },
body: []byte{}, body: []byte{},
}, },
@ -376,7 +376,7 @@ collected metric's label constname is not utf8: "\xff"
}, },
out: output{ out: output{
headers: map[string]string{ headers: map[string]string{
"Content-Type": `text/plain; version=0.0.4`, "Content-Type": `text/plain; version=0.0.4; charset=utf-8`,
}, },
body: expectedMetricFamilyAsText, body: expectedMetricFamilyAsText,
}, },
@ -388,7 +388,7 @@ collected metric's label constname is not utf8: "\xff"
}, },
out: output{ out: output{
headers: map[string]string{ headers: map[string]string{
"Content-Type": `text/plain; version=0.0.4`, "Content-Type": `text/plain; version=0.0.4; charset=utf-8`,
}, },
body: bytes.Join( body: bytes.Join(
[][]byte{ [][]byte{