fix failing request match

This commit is contained in:
Brad Rydzewski 2019-03-13 15:16:42 -07:00
parent 7c5ea588b9
commit 3a07030982

View file

@ -46,6 +46,9 @@ func TestDo(t *testing.T) {
d.repos = repos
d.builds = builds
d.system.Host = "test.example.com"
d.config.License = "trial"
d.config.EnableGithub = true
d.config.EnableAgents = true
d.config.Endpoint = "https://api.datadoghq.com/api/v1/series"
d.do(noContext, 915148800)
@ -60,19 +63,22 @@ var sample = `{
"metric": "drone.users",
"points": [[915148800, 10]],
"type": "gauge",
"host": "test.example.com"
"host": "test.example.com",
"tags": ["remote:github:cloud","scheduler:internal:agents","license:trial"]
},
{
"metric": "drone.repos",
"points": [[915148800, 20]],
"type": "gauge",
"host": "test.example.com"
"host": "test.example.com",
"tags": ["remote:github:cloud","scheduler:internal:agents","license:trial"]
},
{
"metric": "drone.builds",
"points": [[915148800, 30]],
"type": "gauge",
"host": "test.example.com"
"host": "test.example.com",
"tags": ["remote:github:cloud","scheduler:internal:agents","license:trial"]
}
]
}`