Skip to content

Commit

Permalink
test(e2e): remove templating mechanism for aut
Browse files Browse the repository at this point in the history
  • Loading branch information
basti1302 committed Aug 22, 2024
1 parent 3e280e1 commit a2f47f7
Show file tree
Hide file tree
Showing 10 changed files with 43 additions and 20 deletions.
6 changes: 0 additions & 6 deletions test-resources/bin/render-templates.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,4 @@ cd "$(dirname ${BASH_SOURCE})"/../..
source test-resources/bin/util
load_env_file

resource_types=( cronjob daemonset deployment job pod replicaset statefulset )

for resource_type in "${resource_types[@]}"; do
cat test-resources/node.js/express/${resource_type}.yaml.template | envsubst > test-resources/node.js/express/${resource_type}.yaml
done

cat test-resources/customresources/dash0monitoring/dash0monitoring.token.yaml.template | DASH0_AUTHORIZATION_TOKEN="$DASH0_AUTHORIZATION_TOKEN" envsubst > test-resources/customresources/dash0monitoring/dash0monitoring.token.yaml
9 changes: 1 addition & 8 deletions test-resources/node.js/express/.gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1 @@
node_modules/
cronjob.yaml
daemonset.yaml
deployment.yaml
job.yaml
pod.yaml
replicaset.yaml
statefulset.yaml
node_modules/
30 changes: 30 additions & 0 deletions test-resources/node.js/express/cronjob.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
apiVersion: batch/v1
kind: CronJob
metadata:
name: dash0-operator-nodejs-20-express-test-cronjob
spec:
jobTemplate:
spec:
template:
spec:
containers:
- env:
- name: PORT
value: "1205"
- name: DASH0_DEBUG
value: "true"
- name: TRIGGER_SELF_AND_EXIT
value: "true"
image: dash0-operator-nodejs-20-express-test-app:latest
imagePullPolicy: Never
name: dash0-operator-nodejs-20-express-test-cronjob-app
ports:
- containerPort: 1205
readinessProbe:
httpGet:
path: /ready
port: 1205
initialDelaySeconds: 1
periodSeconds: 1
restartPolicy: Never
schedule: '* * * * *'
8 changes: 7 additions & 1 deletion test-resources/node.js/express/daemonset.opt-out.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,10 @@ spec:
value: "true"
ports:
- containerPort: 1206
imagePullPolicy: Never
imagePullPolicy: Never
readinessProbe:
httpGet:
path: /ready
port: 1206
initialDelaySeconds: 1
periodSeconds: 1
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ spec:
- containerPort: 1211
imagePullPolicy: Never
readinessProbe:
httpGet:
path: /ready
port: 1211
initialDelaySeconds: 1
periodSeconds: 1
httpGet:
path: /ready
port: 1211
initialDelaySeconds: 1
periodSeconds: 1

0 comments on commit a2f47f7

Please sign in to comment.