Add a unittest for sidecar containers.
This commit is contained in:
20
unittests/deployment/sidecar-container.yaml
Normal file
20
unittests/deployment/sidecar-container.yaml
Normal file
@ -0,0 +1,20 @@
|
||||
suite: sidecar container
|
||||
release:
|
||||
name: gitea-unittests
|
||||
namespace: testing
|
||||
templates:
|
||||
- templates/gitea/deployment.yaml
|
||||
tests:
|
||||
- it: supports adding a sidecar container
|
||||
template: templates/gitea/deployment.yaml
|
||||
set:
|
||||
extraContainers:
|
||||
- name: sidecar-bob
|
||||
image: busybox
|
||||
asserts:
|
||||
- equal:
|
||||
path: spec.template.spec.containers[0].name
|
||||
value: "sidecar-bob"
|
||||
- equal:
|
||||
path: spec.template.spec.containers[0].image
|
||||
value: "busybox"
|
Reference in New Issue
Block a user