mirror of
https://github.com/element-hq/ess-helm.git
synced 2026-01-11 20:06:45 +00:00
test extra volumes: Assert that volumes are present for all workloads
This commit is contained in:
parent
06bcf5f939
commit
fe16657c75
1 changed files with 3 additions and 0 deletions
|
|
@ -129,6 +129,9 @@ async def test_extra_volumes(values, make_templates, release_name):
|
|||
|
||||
for template in await make_templates(values):
|
||||
if template["kind"] in ["Deployment", "StatefulSet", "Job"]:
|
||||
assert "volumes" in template["spec"]["template"]["spec"], (
|
||||
f"Pod volumes unexpectedly absent for {template_id(template)}"
|
||||
)
|
||||
pod_volumes = deepfreeze(template["spec"]["template"]["spec"]["volumes"])
|
||||
deployable_details = template_to_deployable_details(template)
|
||||
if deployable_details.has_mount_context:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue