You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
466 B
19 lines
466 B
package tempo
|
|
|
|
import (
|
|
"context"
|
|
"testing"
|
|
|
|
"github.com/grafana/grafana/pkg/infra/log"
|
|
"github.com/stretchr/testify/assert"
|
|
"github.com/stretchr/testify/require"
|
|
)
|
|
|
|
func TestTempo(t *testing.T) {
|
|
t.Run("createRequest - success", func(t *testing.T) {
|
|
service := &Service{tlog: log.New("tempo-test")}
|
|
req, err := service.createRequest(context.Background(), &datasourceInfo{}, "traceID")
|
|
require.NoError(t, err)
|
|
assert.Equal(t, 1, len(req.Header))
|
|
})
|
|
}
|
|
|