Skip to content

Commit

Permalink
Sidecar deployment e2e tests (#1533)
Browse files Browse the repository at this point in the history
* sidecar deployment tests

Signed-off-by: Marco Freyre <[email protected]>

* sidecar deployment test asserts

Signed-off-by: Marco Freyre <[email protected]>
  • Loading branch information
mfz85 authored Aug 19, 2021
1 parent 27a0cd1 commit e11a3f2
Show file tree
Hide file tree
Showing 6 changed files with 83 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/e2e/sidecar-deployment/00-install.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
apiVersion: jaegertracing.io/v1
kind: Jaeger
metadata:
name: agent-as-sidecar
spec:
strategy: allinone
allInOne:
options:
log-level: "debug"
memory.max-traces: 10000
ingress:
enabled: true
security: "none"
11 changes: 11 additions & 0 deletions tests/e2e/sidecar-deployment/01-assert.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: v1
kind: Pod
metadata:
labels:
app: vertx-create-span-sidecar
spec:
containers:
- name: vertx-create-span-sidecar
- name: jaeger-agent
status:
phase: Running
33 changes: 33 additions & 0 deletions tests/e2e/sidecar-deployment/01-deploy-vertx.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: vertx-create-span-sidecar
annotations:
"sidecar.jaegertracing.io/inject": "true"
spec:
replicas: 1
selector:
matchLabels:
app: vertx-create-span-sidecar
template:
metadata:
labels:
app: vertx-create-span-sidecar
spec:
containers:
- name: vertx-create-span-sidecar
image: "jaegertracing/vertx-create-span:operator-e2e-tests"
ports:
- containerPort: 8080
readinessProbe:
httpGet:
path: "/"
port: 8080
initialDelaySeconds: 1
periodSeconds: 1
livenessProbe:
httpGet:
path: "/"
port: 8080
initialDelaySeconds: 1
periodSeconds: 1
10 changes: 10 additions & 0 deletions tests/e2e/sidecar-deployment/02-assert.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
apiVersion: v1
kind: Pod
metadata:
labels:
app: vertx-create-span-sidecar
spec:
containers:
- name: vertx-create-span-sidecar
status:
phase: Running
5 changes: 5 additions & 0 deletions tests/e2e/sidecar-deployment/02-change-annotation.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
apiVersion: kuttl.dev/v1beta1
kind: TestStep
commands:
- command: kubectl annotate --overwrite deployment vertx-create-span-sidecar "sidecar.jaegertracing.io/inject"="false"
namespaced: true
11 changes: 11 additions & 0 deletions tests/e2e/sidecar-deployment/02-errors.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: v1
kind: Pod
metadata:
labels:
app: vertx-create-span-sidecar
spec:
containers:
- name: vertx-create-span-sidecar
- name: jaeger-agent
status:
phase: Running

0 comments on commit e11a3f2

Please sign in to comment.