Skip to content

Commit 0f2ff6a

Browse files
fix tests
1 parent f85e8ff commit 0f2ff6a

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

tests/manifests/test_labels.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ async def test_our_labels_are_named_consistently(templates):
132132
)
133133

134134

135-
@pytest.mark.parametrize("values_file", values_files_to_test)
135+
@pytest.mark.parametrize("values_file", workloads_values_files_to_test)
136136
@pytest.mark.asyncio_cooperative
137137
async def test_workloads_selector_matches_labels(templates):
138138
for template in templates:

tests/manifests/test_volumes_mounts.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ async def test_volumes_mounts_exists(release_name, templates, other_secrets):
3737
f"Volume {volume['secret']['secretName']} not found in Secret names:"
3838
f"{secrets_names} for {template_id(template)}"
3939
)
40-
assert re.match(r"^((as|secret)-\d+|secret-generated)$", volume["name"]), (
40+
assert re.match(r"^((as)-\d+|(secret)-[a-z0-9]{12}|secret-generated)$", volume["name"]), (
4141
f"{template_id(template)} contains a Secret mounted with an unexpected name: {volume['name']}"
4242
)
4343
if "configMap" in volume:
@@ -50,6 +50,8 @@ async def test_volumes_mounts_exists(release_name, templates, other_secrets):
5050
"haproxy-config",
5151
"nginx-config",
5252
"plain-config",
53+
"plain-syn-config",
54+
"plain-mas-config",
5355
"synapse-haproxy",
5456
"well-known-haproxy",
5557
], f"{template_id(template)} contains a ConfigMap mounted with an unexpected name: {volume['name']}"

0 commit comments

Comments
 (0)