Skip to content

Commit 6d2f18b

Browse files
authored
Check OpenTelemetryCollector status in e2e tests (#3932)
1 parent 02e42e5 commit 6d2f18b

File tree

4 files changed

+34
-4
lines changed

4 files changed

+34
-4
lines changed

tests/e2e/smoke-daemonset/00-assert.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,12 @@ spec:
1111
status:
1212
numberMisscheduled: 0
1313
(desiredNumberScheduled == numberReady): true
14+
---
15+
apiVersion: opentelemetry.io/v1beta1
16+
kind: OpenTelemetryCollector
17+
metadata:
18+
name: daemonset-test
19+
status:
20+
(starts_with(image, 'ghcr.io/open-telemetry/opentelemetry-collector-releases/opentelemetry-collector')): true
21+
(version != ''): true
22+
# TODO: Check replicas here after resolving https://github.com/open-telemetry/opentelemetry-operator/issues/3930

tests/e2e/smoke-simplest-v1beta1/00-assert.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,3 +52,14 @@ spec:
5252
port: 4318
5353
protocol: TCP
5454
targetPort: 4318
55+
---
56+
apiVersion: opentelemetry.io/v1beta1
57+
kind: OpenTelemetryCollector
58+
metadata:
59+
name: simplest
60+
status:
61+
(starts_with(image, 'ghcr.io/open-telemetry/opentelemetry-collector-releases/opentelemetry-collector')): true
62+
(version != ''): true
63+
scale:
64+
replicas: 1
65+
statusReplicas: "1/1"

tests/e2e/smoke-statefulset/00-assert.yaml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,15 @@ metadata:
44
name: stateful-collector
55
status:
66
replicas: 1
7-
readyReplicas: 1
7+
readyReplicas: 1
8+
---
9+
apiVersion: opentelemetry.io/v1beta1
10+
kind: OpenTelemetryCollector
11+
metadata:
12+
name: stateful
13+
status:
14+
(starts_with(image, 'ghcr.io/open-telemetry/opentelemetry-collector-releases/opentelemetry-collector')): true
15+
(version != ''): true
16+
scale:
17+
replicas: 1
18+
statusReplicas: "1/1"

tests/e2e/smoke-statefulset/00-install.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
1-
apiVersion: opentelemetry.io/v1alpha1
1+
apiVersion: opentelemetry.io/v1beta1
22
kind: OpenTelemetryCollector
33
metadata:
44
name: stateful
55
spec:
66
mode: statefulset
7-
config: |
7+
config:
88
receivers:
99
jaeger:
1010
protocols:
1111
grpc:
12-
processors:
1312
exporters:
1413
debug:
1514
service:

0 commit comments

Comments
 (0)