Skip to content

Commit 7a3d6c2

Browse files
committed
test: update e2e services
Signed-off-by: Simon Pasquier <[email protected]>
1 parent 37e06d6 commit 7a3d6c2

File tree

6 files changed

+27
-18
lines changed

6 files changed

+27
-18
lines changed

go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ toolchain go1.23.9
77
require (
88
github.com/brancz/kube-rbac-proxy v0.19.0
99
github.com/coreos/go-oidc/v3 v3.15.0
10-
github.com/efficientgo/core v1.0.0-rc.3
11-
github.com/efficientgo/e2e v0.14.1-0.20230413162904-ebc233c5a32f
10+
github.com/efficientgo/core v1.0.0-rc.3.0.20250509094815-bd2ec8febb66
11+
github.com/efficientgo/e2e v0.14.1-0.20251204144843-44570aa52a90
1212
github.com/ghodss/yaml v1.0.0
1313
github.com/go-chi/chi/v5 v5.2.2
1414
github.com/go-chi/httprate v0.14.1

go.sum

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,10 @@ github.com/dustin/go-humanize v1.0.1 h1:GzkhY7T5VNhEkwH0PVJgjz+fX1rhBrR7pRT3mDkp
102102
github.com/dustin/go-humanize v1.0.1/go.mod h1:Mu1zIs6XwVuF/gI1OepvI0qD18qycQx+mFykh5fBlto=
103103
github.com/edsrzf/mmap-go v1.2.0 h1:hXLYlkbaPzt1SaQk+anYwKSRNhufIDCchSPkUD6dD84=
104104
github.com/edsrzf/mmap-go v1.2.0/go.mod h1:19H/e8pUPLicwkyNgOykDXkJ9F0MHE+Z52B8EIth78Q=
105-
github.com/efficientgo/core v1.0.0-rc.3 h1:X6CdgycYWDcbYiJr1H1+lQGzx13o7bq3EUkbB9DsSPc=
106-
github.com/efficientgo/core v1.0.0-rc.3/go.mod h1:FfGdkzWarkuzOlY04VY+bGfb1lWrjaL6x/GLcQ4vJps=
107-
github.com/efficientgo/e2e v0.14.1-0.20230413162904-ebc233c5a32f h1:o6k4pEAY+B54emx/ZkSo1aeBDgzIIvBYluezcWjKilw=
108-
github.com/efficientgo/e2e v0.14.1-0.20230413162904-ebc233c5a32f/go.mod h1:plsKU0YHE9uX+7utvr7SiDtVBSHJyEfHRO4UnUgDmts=
105+
github.com/efficientgo/core v1.0.0-rc.3.0.20250509094815-bd2ec8febb66 h1:dbyJxOkY0GfW7gCJw2T0XPkxUeal/eKKI24jMJVEd0w=
106+
github.com/efficientgo/core v1.0.0-rc.3.0.20250509094815-bd2ec8febb66/go.mod h1:FfGdkzWarkuzOlY04VY+bGfb1lWrjaL6x/GLcQ4vJps=
107+
github.com/efficientgo/e2e v0.14.1-0.20251204144843-44570aa52a90 h1:IxIFadkrIijEI41AgVvLjx7ePtBi+c7Fhmq/Zwkrb9g=
108+
github.com/efficientgo/e2e v0.14.1-0.20251204144843-44570aa52a90/go.mod h1:plsKU0YHE9uX+7utvr7SiDtVBSHJyEfHRO4UnUgDmts=
109109
github.com/emicklei/go-restful/v3 v3.11.0 h1:rAQeMHw1c7zTmncogyy8VvRZwtkmkZ4FxERmMY4rD+g=
110110
github.com/emicklei/go-restful/v3 v3.11.0/go.mod h1:6n3XBCmQQb25CM2LCACGz8ukIrRry+4bhvbpWn3mrbc=
111111
github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4=

test/e2e/configs.go

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -320,17 +320,25 @@ exporters:
320320
headers:
321321
x-tenant: test-oidc
322322
# (Use hard-coded auth header, because this forwarding collector
323-
# is unable to do OIDC password grant.)
323+
# is unable to do OIDC password grant)
324324
authorization: bearer %[2]s
325325
326326
extensions:
327327
health_check:
328+
endpoint: 0.0.0.0:13133
329+
zpages:
330+
endpoint: 0.0.0.0:55679
328331
329332
service:
330-
extensions: [health_check]
333+
extensions: [health_check, zpages]
331334
telemetry:
332335
metrics:
333-
address: :8888
336+
readers:
337+
- pull:
338+
exporter:
339+
prometheus:
340+
host: '0.0.0.0'
341+
port: 8888
334342
level: detailed
335343
# extensions: [oauth2client]
336344
pipelines:
@@ -471,7 +479,9 @@ distributor:
471479
otlp:
472480
protocols:
473481
http:
482+
endpoint: 0.0.0.0:4318
474483
grpc:
484+
endpoint: 0.0.0.0:4317
475485
opencensus:
476486
477487
ingester:

test/e2e/helpers.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ func getTLSClientConfig(t *testing.T, e e2e.Environment) *tls.Config {
123123
}
124124

125125
func assertResponse(t *testing.T, response string, expected string) {
126+
t.Helper()
126127
testutil.Assert(
127128
t,
128129
strings.Contains(response, expected),

test/e2e/services.go

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,15 @@ import (
2020
const (
2121
apiImage = "quay.io/observatorium/api:local_e2e_test" // Image that is built if you run `make container-test`.
2222

23-
// Labels matching below thanos v0.24 will fail with "no matchers specified (excluding external labels)" if you specify only tenant matcher. Fixed later on.
24-
thanosImage = "quay.io/thanos/thanos:v0.32.4"
25-
lokiImage = "grafana/loki:2.6.1"
26-
upImage = "quay.io/observatorium/up:master-2022-10-27-d8bb06f"
27-
alertmanagerImage = "quay.io/prometheus/alertmanager:v0.25.0"
23+
thanosImage = "quay.io/thanos/thanos:v0.40.1"
24+
lokiImage = "grafana/loki:2.9.17"
25+
upImage = "quay.io/observatorium/up:master-2025-12-18-b1c89d2"
26+
alertmanagerImage = "quay.io/prometheus/alertmanager:v0.30.0"
2827
probesImage = "quay.io/redhat-services-prod/openshift/rhobs-synthetics-api:latest"
2928

3029
jaegerAllInOneImage = "jaegertracing/all-in-one:1.57.0"
31-
otelCollectorImage = "ghcr.io/open-telemetry/opentelemetry-collector-releases/opentelemetry-collector-contrib:0.101.0"
32-
tempoImage = "grafana/tempo:2.2.4"
30+
otelCollectorImage = "ghcr.io/open-telemetry/opentelemetry-collector-releases/opentelemetry-collector-contrib:0.142.0"
31+
tempoImage = "grafana/tempo:2.9.0"
3332

3433
dexImage = "dexidp/dex:v2.30.0"
3534
opaImage = "openpolicyagent/opa:1.5.1-static"
@@ -164,7 +163,6 @@ func startTempoServicesForTraces(t *testing.T, e e2e.Environment) (tempoDistribu
164163
},
165164
},
166165
})
167-
createTempoConfigYAML(t, e)
168166

169167
testutil.Ok(t, e2e.StartAndWaitReady(tempo))
170168

test/e2e/traces_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -556,6 +556,7 @@ func TestTracesTempo(t *testing.T) {
556556
"grpc": 4317,
557557
"health_check": 13133,
558558
"telemetry": 8888,
559+
"zpages": 55679,
559560
}).
560561
Init(e2e.StartOptions{
561562
Image: otelCollectorImage,
@@ -606,6 +607,5 @@ func TestTracesTempo(t *testing.T) {
606607
httpObservatoriumTempoEndpoint, "5B8EFFF798038103D269B633813FC60C",
607608
true, fmt.Sprintf("bearer %s", token), http.StatusOK)
608609
assertResponse(t, returnedTrace, tempoTraceResponse5B)
609-
610610
})
611611
}

0 commit comments

Comments
 (0)