Skip to content

Commit b7c17b0

Browse files
committed
fix testss
1 parent fda6424 commit b7c17b0

File tree

4 files changed

+6
-24
lines changed

4 files changed

+6
-24
lines changed

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ e2e-prometheuscr: chainsaw
304304
# Target allocator end-to-tests
305305
.PHONY: e2e-targetallocator
306306
e2e-targetallocator: chainsaw
307-
$(CHAINSAW) test --apply-timeout 45s --assert-timeout 45s --cleanup-timeout 45s --delete-timeout 45s --error-timeout 45s --exec-timeout 45s --test-dir ./tests/e2e-targetallocator
307+
$(CHAINSAW) test --test-dir ./tests/e2e-targetallocator
308308

309309
# end-to-end-test for Annotations/Labels Filters
310310
.PHONY: e2e-metadata-filters

config/manager/kustomization.yaml

-19
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,2 @@
11
resources:
22
- manager.yaml
3-
apiVersion: kustomize.config.k8s.io/v1beta1
4-
kind: Kustomization
5-
images:
6-
- name: controller
7-
newName: ghcr.io/open-telemetry/opentelemetry-operator/opentelemetry-operator
8-
newTag: 0.107.0-47-g8719954d
9-
patches:
10-
- patch: '[{"op":"add","path":"/spec/template/spec/containers/0/args/-","value":"--target-allocator-image=ghcr.io/open-telemetry/opentelemetry-operator/target-allocator:ve2e-targetallocator"}]'
11-
target:
12-
kind: Deployment
13-
- patch: '[{"op":"add","path":"/spec/template/spec/containers/0/args/-","value":"--operator-opamp-bridge-image=ghcr.io/open-telemetry/opentelemetry-operator/operator-opamp-bridge:ve2e-targetallocator"}]'
14-
target:
15-
kind: Deployment
16-
- patch: '[{"op":"add","path":"/spec/template/spec/containers/0/args/-","value":"--target-allocator-image=ghcr.io/open-telemetry/opentelemetry-operator/target-allocator:v0.107.0-47-g8719954d"}]'
17-
target:
18-
kind: Deployment
19-
- patch: '[{"op":"add","path":"/spec/template/spec/containers/0/args/-","value":"--operator-opamp-bridge-image=ghcr.io/open-telemetry/opentelemetry-operator/operator-opamp-bridge:v0.107.0-47-g8719954d"}]'
20-
target:
21-
kind: Deployment

tests/e2e-targetallocator/targetallocator-prometheuscr/00-assert.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,12 @@ data:
3030
prometheus:
3131
config:
3232
global:
33-
scrape_interval: 30s
3433
scrape_protocols:
3534
- PrometheusProto
3635
- OpenMetricsText1.0.0
3736
- OpenMetricsText0.0.1
3837
- PrometheusText0.0.4
38+
scrape_timeout: 1s
3939
target_allocator:
4040
collector_id: ${POD_NAME}
4141
endpoint: http://prometheus-cr-targetallocator:80
@@ -49,4 +49,4 @@ data:
4949
- prometheus
5050
kind: ConfigMap
5151
metadata:
52-
name: prometheus-cr-collector-837a5cfe
52+
name: prometheus-cr-collector-21f47755

tests/e2e-targetallocator/targetallocator-prometheuscr/01-install.yaml

+3-2
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,9 @@ spec:
4646
- /bin/sh
4747
- -c
4848
- >
49-
curl -s http://prometheus-cr-targetallocator/scrape_configs |
50-
grep "prometheus-cr" && grep "PrometheusProto"
49+
curl -s http://prometheus-cr-targetallocator/scrape_configs > /tmp/output.txt &&
50+
grep "prometheus-cr" /tmp/output.txt &&
51+
grep "PrometheusProto" /tmp/output.txt
5152
---
5253
apiVersion: batch/v1
5354
kind: Job

0 commit comments

Comments
 (0)