| 123456789101112131415161718192021222324252627 |
- package mqe
- import (
- "context"
- "testing"
- "github.com/grafana/grafana/pkg/components/simplejson"
- "github.com/grafana/grafana/pkg/models"
- . "github.com/smartystreets/goconvey/convey"
- )
- func TestTokenClient(t *testing.T) {
- SkipConvey("Token client", t, func() {
- dsInfo := &models.DataSource{
- JsonData: simplejson.New(),
- Url: "",
- }
- client := NewTokenClient(dsInfo)
- body, err := client.RequestTokenData(context.TODO())
- So(err, ShouldBeNil)
- //So(len(body.Functions), ShouldBeGreaterThan, 1)
- So(len(body.Metrics), ShouldBeGreaterThan, 1)
- })
- }
|