|
8 | 8 | "os"
|
9 | 9 | execlib "os/exec"
|
10 | 10 | "path/filepath"
|
| 11 | + "strings" |
11 | 12 | "testing"
|
12 | 13 |
|
13 | 14 | "github.com/efficientgo/e2e"
|
@@ -329,19 +330,25 @@ func TestReadOnlyThanosSetup(t *testing.T) {
|
329 | 330 | // │ Sidecar │◄─────┘
|
330 | 331 | // └────────────┘
|
331 | 332 | //
|
| 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 | + |
332 | 343 | query1 := e2edb.NewThanosQuerier(
|
333 | 344 | e,
|
334 | 345 | "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{}, |
343 | 347 | 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 | + }), |
345 | 352 | )
|
346 | 353 | testutil.Ok(t, e2e.StartAndWaitReady(query1))
|
347 | 354 |
|
|
0 commit comments