Skip to content

Commit ab2ce55

Browse files
test tls no secretName by default
1 parent 7096f51 commit ab2ce55

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tests/manifests/test_ingresses.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,16 @@ def set_tls_secret(values_fragment: dict[str, Any], deployable_details: Deployab
217217
assert template["spec"]["tls"][0]["secretName"] == "component"
218218

219219

220+
@pytest.mark.parametrize("values_file", values_files_with_ingresses)
221+
@pytest.mark.asyncio_cooperative
222+
async def test_tls_no_secretName_by_default(templates):
223+
for template in templates:
224+
if template["kind"] == "Ingress":
225+
assert "tls" in template["spec"]
226+
for tls_spec in template["spec"]["tls"]:
227+
assert "secretName" not in tls_spec
228+
229+
220230
@pytest.mark.parametrize("values_file", values_files_with_ingresses)
221231
@pytest.mark.asyncio_cooperative
222232
async def test_no_ingressClassName_by_default(templates):

0 commit comments

Comments
 (0)