Skip to content

Commit d1345b9

Browse files
authoredMar 17, 2025··
update: interactive tests to update non-supported store flags to endpoint in querier (#8157)
Signed-off-by: Saumya Shah <saumyabshah90@gmail.com>
1 parent 8da0a2b commit d1345b9

File tree

1 file changed

+16
-9
lines changed

1 file changed

+16
-9
lines changed
 

‎examples/interactive/interactive_test.go

+16-9
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import (
88
"os"
99
execlib "os/exec"
1010
"path/filepath"
11+
"strings"
1112
"testing"
1213

1314
"github.com/efficientgo/e2e"
@@ -329,19 +330,25 @@ func TestReadOnlyThanosSetup(t *testing.T) {
329330
// │ Sidecar │◄─────┘
330331
// └────────────┘
331332
//
333+
334+
storeAPIEndpoints := []string{
335+
store1.InternalEndpoint("grpc"),
336+
store2.InternalEndpoint("grpc"),
337+
sidecarHA0.InternalEndpoint("grpc"),
338+
sidecarHA1.InternalEndpoint("grpc"),
339+
sidecar2.InternalEndpoint("grpc"),
340+
receive1.InternalEndpoint("grpc"),
341+
}
342+
332343
query1 := e2edb.NewThanosQuerier(
333344
e,
334345
"query1",
335-
[]string{
336-
store1.InternalEndpoint("grpc"),
337-
store2.InternalEndpoint("grpc"),
338-
sidecarHA0.InternalEndpoint("grpc"),
339-
sidecarHA1.InternalEndpoint("grpc"),
340-
sidecar2.InternalEndpoint("grpc"),
341-
receive1.InternalEndpoint("grpc"),
342-
},
346+
[]string{},
343347
e2edb.WithImage("thanos:latest"),
344-
e2edb.WithFlagOverride(map[string]string{"--tracing.config": string(jaegerConfig)}),
348+
e2edb.WithFlagOverride(map[string]string{
349+
"--tracing.config": string(jaegerConfig),
350+
"--endpoint": strings.Join(storeAPIEndpoints, ","),
351+
}),
345352
)
346353
testutil.Ok(t, e2e.StartAndWaitReady(query1))
347354

0 commit comments

Comments
 (0)
Please sign in to comment.