Skip to content

Commit

Permalink
add livenessProbe test
Browse files Browse the repository at this point in the history
  • Loading branch information
elephantum committed Aug 16, 2023
1 parent 8d88503 commit 30cc4c3
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions charts/simple-app/tests/simple_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,19 @@ tests:
sizeLimit: 1Gi
name: shared-memory

- it: Deployment should correctly set livenessProbe path
template: deployment.yaml
set:
livenessProbe:
httpGet:
path: /test
asserts:
- isKind:
of: Deployment
- equal:
path: spec.template.spec.containers[0].livenessProbe.httpGet.path
value: /test

- it: Service should be named as release
template: service.yaml
asserts:
Expand Down

0 comments on commit 30cc4c3

Please sign in to comment.