Skip to content

Commit

Permalink
Created e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mcariapas authored and mcariatm committed Jan 25, 2022
1 parent f216c31 commit 557ed9d
Show file tree
Hide file tree
Showing 5 changed files with 105 additions and 0 deletions.
26 changes: 26 additions & 0 deletions tests/e2e/smoke-restarting-deployment/00-assert.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: restarting-collector
status:
readyReplicas: 1

---

apiVersion: v1
kind: Pod
spec:
containers:
- name: otc-container
status:
phase: Running

---

apiVersion: v1
kind: Service
metadata:
name: restarting-collector
spec:
ports:
- targetPort: 14250
7 changes: 7 additions & 0 deletions tests/e2e/smoke-restarting-deployment/00-errors.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
apiVersion: v1
kind: Service
metadata:
name: restarting-collector
spec:
ports:
- targetPort: 4317
21 changes: 21 additions & 0 deletions tests/e2e/smoke-restarting-deployment/00-install.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
apiVersion: opentelemetry.io/v1alpha1
kind: OpenTelemetryCollector
metadata:
name: restarting
spec:
config: |
receivers:
jaeger:
protocols:
grpc:
processors:
exporters:
logging:
service:
pipelines:
traces:
receivers: [jaeger]
processors: []
exporters: [logging]
args:
metrics-level: detailed
27 changes: 27 additions & 0 deletions tests/e2e/smoke-restarting-deployment/01-assert-second-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: restarting-collector
status:
readyReplicas: 1

---

apiVersion: v1
kind: Pod
spec:
containers:
- name: otc-container
status:
phase: Running

---

apiVersion: v1
kind: Service
metadata:
name: restarting-collector
spec:
ports:
- targetPort: 14250
- targetPort: 4317
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
apiVersion: opentelemetry.io/v1alpha1
kind: OpenTelemetryCollector
metadata:
name: restarting
spec:
config: |
receivers:
jaeger:
protocols:
grpc:
otlp:
protocols:
grpc:
processors:
exporters:
logging:
service:
pipelines:
traces:
receivers: [jaeger, otlp]
processors: []
exporters: [logging]
args:
metrics-level: detailed

0 comments on commit 557ed9d

Please sign in to comment.