Skip to content

Commit

Permalink
jaegertracing#2048[WIP] - Fix failing integration tests and lint
Browse files Browse the repository at this point in the history
Signed-off-by: santosh <bsantosh@thoughtworks.com>
  • Loading branch information
bhiravabhatla committed Jan 22, 2021
1 parent 41a9b85 commit b3caaf2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ func (s *IntegrationTest) initSpanstore(allTagsAsFields bool) error {
})
s.SpanReader = reader

depMapping, err := es.GetDependenciesMappings(numShards, numReplicas, esVersion)
depMapping, err := es.GetDependenciesMappings(esTemplate.TextTemplateBuilder{},numShards, numReplicas, esVersion)
if err != nil {
return err
}
Expand Down
2 changes: 2 additions & 0 deletions cmd/templatizer/app/renderer/render.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ var loadMappingFunc = es.LoadMapping
var mapping string
var err error

// GetMappingAsString returns rendered index templates as string
func GetMappingAsString(opt *app.Options) (string, error) {

if opt.EsVersion == 7 {
Expand All @@ -48,6 +49,7 @@ func GetMappingAsString(opt *app.Options) (string, error) {

}

// IsValidOption checks if passed option is a valid index template.
func IsValidOption(val string) bool {
allowedValues := []string{"jaeger-span", "jaeger-service"}
for _, value := range allowedValues {
Expand Down
5 changes: 2 additions & 3 deletions cmd/templatizer/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ package main

import (
"fmt"
"github.com/jaegertracing/jaeger/pkg/version"
"github.com/spf13/cobra"
"os"

"github.com/spf13/cobra"
"go.uber.org/zap"

"github.com/jaegertracing/jaeger/cmd/templatizer/app"
"github.com/jaegertracing/jaeger/cmd/templatizer/app/renderer"
"github.com/jaegertracing/jaeger/pkg/version"
)

var logger, _ = zap.NewDevelopment()
Expand Down Expand Up @@ -57,5 +57,4 @@ func main() {
os.Exit(1)
}


}

0 comments on commit b3caaf2

Please sign in to comment.