Skip to content

Commit

Permalink
simplify e2e
Browse files Browse the repository at this point in the history
  • Loading branch information
moh-osman3 committed Feb 28, 2023
1 parent a7ea3e8 commit 1f00e33
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 58 deletions.
6 changes: 4 additions & 2 deletions tests/e2e/autoscale/00-install.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# This creates two different deployments:
# * The first one will be used to see if we scale properly
# * The second is to check the targetCPUUtilization option
# * The first one is to ensure an autoscaler is created without
# setting any metrics in the Spec.
# * The second is to check that scaling works properly and that
# spec updates are working as expected.
#
apiVersion: opentelemetry.io/v1alpha1
kind: OpenTelemetryCollector
Expand Down
9 changes: 0 additions & 9 deletions tests/e2e/autoscale/03-assert.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,3 @@
# Wait until tracegen has completed and the simplest deployment has scaled up to 2
apiVersion: opentelemetry.io/v1alpha1
kind: OpenTelemetryCollector
metadata:
name: simplest
status:
scale:
replicas: 2
---
apiVersion: opentelemetry.io/v1alpha1
kind: OpenTelemetryCollector
metadata:
Expand Down
22 changes: 0 additions & 22 deletions tests/e2e/autoscale/03-install.yaml
Original file line number Diff line number Diff line change
@@ -1,27 +1,5 @@
apiVersion: batch/v1
kind: Job
metadata:
name: tracegen
spec:
template:
spec:
containers:
- name: tracegen
image: ghcr.io/open-telemetry/opentelemetry-collector-contrib/tracegen:latest
command:
- "./tracegen"
args:
- -otlp-endpoint=simplest-collector-headless:4317
- -otlp-insecure
# High duration to ensure the trace creation doesn't stop.
# It'll be stopped in step 4
- -duration=1m
- -workers=20
restartPolicy: Never
backoffLimit: 4
---
apiVersion: batch/v1
kind: Job
metadata:
name: tracegen-set-utilization
spec:
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/autoscale/04-delete.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ delete:
kind: Job
propagationPolicy: Background
metadata:
name: tracegen
name: tracegen-set-utilization
7 changes: 7 additions & 0 deletions tests/e2e/autoscale/05-assert.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
apiVersion: opentelemetry.io/v1alpha1
kind: OpenTelemetryCollector
metadata:
name: simplest-set-utilization
status:
scale:
replicas: 1
8 changes: 0 additions & 8 deletions tests/e2e/autoscale/05-delete.yaml

This file was deleted.

16 changes: 0 additions & 16 deletions tests/e2e/autoscale/06-assert.yaml

This file was deleted.

0 comments on commit 1f00e33

Please sign in to comment.