Skip to content

Commit

Permalink
Unit tests for PR 450 (temporalio#611)
Browse files Browse the repository at this point in the history
* Add unit tests for temporalio#450.
  • Loading branch information
robholland authored and asproul committed Dec 16, 2024
1 parent 223d752 commit 0bf4c6f
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/temporal/templates/admintools-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ spec:
{{ include "temporal.serviceAccount" $ }}
{{- if $.Values.admintools.additionalInitContainers }}
initContainers:
{{- toYaml $.Values.admintools.additionalInitContainers | nindent 8}}
{{- toYaml $.Values.admintools.additionalInitContainers | nindent 8 }}
{{- end }}
containers:
- name: admin-tools
Expand Down
2 changes: 1 addition & 1 deletion charts/temporal/templates/server-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ spec:
env:
- name: TEMPORAL_ADDRESS
value: "{{ include "temporal.fullname" $ }}-frontend.{{ $.Release.Namespace }}.svc:{{ $.Values.server.frontend.service.port }}"
{{- with $.Values.server.additionalVolumeMounts }}
{{- with $.Values.admintools.additionalVolumeMounts }}
volumeMounts:
{{- toYaml . | nindent 12 }}
{{- end }}
Expand Down
14 changes: 14 additions & 0 deletions charts/temporal/tests/server_deployment_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,17 @@ tests:
- equal:
path: spec.template.spec.containers[0].resources.requests.cpu
value: 200m
- it: includes additional init containers
template: templates/server-deployment.yaml
documentSelector:
path: .kind
value: Deployment
matchMany: true
set:
server:
additionalInitContainers:
- name: my-init-container
asserts:
- equal:
path: spec.template.spec.initContainers[0].name
value: my-init-container

0 comments on commit 0bf4c6f

Please sign in to comment.