tests(mqe): parse mqe query model

This commit is contained in:
bergquist
2016-11-14 15:03:49 +01:00
parent c973241435
commit 1bdda76ba9
6 changed files with 124 additions and 14 deletions
+3 -4
View File
@@ -18,11 +18,10 @@ func TestTokenClient(t *testing.T) {
client := NewTokenClient()
body, err := client.GetTokenData(context.TODO(), dsInfo)
body, err := client.RequestTokenData(context.TODO(), dsInfo)
So(err, ShouldBeNil)
So(len(body.Body.Functions), ShouldBeGreaterThan, 1)
So(len(body.Body.Metrics), ShouldBeGreaterThan, 1)
So(body.Success, ShouldBeTrue)
So(len(body.Functions), ShouldBeGreaterThan, 1)
So(len(body.Metrics), ShouldBeGreaterThan, 1)
})
}