Skip to content

Commit 9da55c3

Browse files
committed
Add negative test for allowedOrganization
1 parent 4592fa9 commit 9da55c3

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

tests/model_registry/model_catalog/catalog_config/test_model_catalog_negative.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,21 @@ def test_modify_default_catalog_configmap_reconciles(
156156
"Hugging Face requires a specific organization",
157157
id="test_hf_source_multiple_wildcards",
158158
),
159+
pytest.param(
160+
"""
161+
catalogs:
162+
- name: HuggingFace Hub
163+
id: error_catalog
164+
type: hf
165+
enabled: true
166+
properties:
167+
allowedOrganization: "abc-random"
168+
includedModels:
169+
- '*'
170+
""",
171+
"failed to expand model patterns: no models found",
172+
id="test_hf_source_invalid_organization",
173+
),
159174
],
160175
indirect=["updated_catalog_config_map_scope_function"],
161176
)

0 commit comments

Comments
 (0)