Skip to content

Commit 2f1b576

Browse files
committed
Update e2e tests to chainsaw
Signed-off-by: Yuri Sa <[email protected]>
1 parent 29ad837 commit 2f1b576

File tree

3 files changed

+80
-11
lines changed

3 files changed

+80
-11
lines changed

tests/e2e-autoscale/autoscale/04-delete.yaml

-11
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
# This creates two different deployments:
2+
# * The first one is to ensure an autoscaler is created without
3+
# setting any metrics in the Spec.
4+
# * The second is to check that scaling works properly and that
5+
# spec updates are working as expected.
6+
#
7+
apiVersion: opentelemetry.io/v1alpha1
8+
kind: OpenTelemetryCollector
9+
metadata:
10+
name: simplest
11+
spec:
12+
# TODO: these tests use .Spec.MaxReplicas and .Spec.MinReplicas. These fields are
13+
# deprecated and moved to .Spec.Autoscaler. Fine to use these fields to test that old CRD is
14+
# still supported but should eventually be updated.
15+
minReplicas: 1
16+
maxReplicas: 2
17+
resources:
18+
limits:
19+
cpu: 500m
20+
memory: 128Mi
21+
requests:
22+
cpu: 5m
23+
memory: 64Mi
24+
25+
config: |
26+
receivers:
27+
otlp:
28+
protocols:
29+
grpc:
30+
http:
31+
processors:
32+
33+
exporters:
34+
debug:
35+
36+
service:
37+
pipelines:
38+
traces:
39+
receivers: [otlp]
40+
processors: []
41+
exporters: [debug]
42+
---
43+
apiVersion: opentelemetry.io/v1alpha1
44+
kind: OpenTelemetryCollector
45+
metadata:
46+
name: simplest-set-utilization
47+
spec:
48+
minReplicas: 1
49+
maxReplicas: 2
50+
resources:
51+
limits:
52+
cpu: 250m
53+
memory: 128Mi
54+
requests:
55+
cpu: 5m
56+
memory: 64Mi
57+
58+
config: |
59+
receivers:
60+
otlp:
61+
protocols:
62+
grpc:
63+
http:
64+
processors:
65+
66+
exporters:
67+
debug:
68+
69+
service:
70+
pipelines:
71+
traces:
72+
receivers: [otlp]
73+
processors: []
74+
exporters: [debug]

tests/e2e-autoscale/autoscale/chainsaw-test.yaml

+6
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,9 @@ spec:
3333
name: telemetrygen-set-utilization
3434
- assert:
3535
file: 03-assert.yaml
36+
- name: step-04
37+
try:
38+
- apply:
39+
file: 04-install.yaml
40+
- error:
41+
file: 04-error.yaml

0 commit comments

Comments
 (0)