@@ -57,33 +57,44 @@ def test_config_map_exists(self: Self, model_catalog_config_map: ConfigMap):
5757 validate_default_catalog (default_catalog = catalogs [0 ])
5858
5959 @pytest .mark .parametrize (
60- "resource_name" ,
60+ "resource_name, expected_resource_count " ,
6161 [
6262 pytest .param (
6363 Deployment ,
64+ 1 ,
6465 id = "test_model_catalog_deployment_resource" ,
6566 ),
6667 pytest .param (
6768 Route ,
69+ 1 ,
6870 id = "test_model_catalog_route_resource" ,
6971 ),
7072 pytest .param (
7173 Service ,
74+ 1 ,
7275 id = "test_model_catalog_service_resource" ,
7376 ),
7477 pytest .param (
7578 Pod ,
79+ 2 ,
7680 id = "test_model_catalog_pod_resource" ,
7781 ),
7882 ],
7983 )
8084 @pytest .mark .post_upgrade
8185 @pytest .mark .install
8286 def test_model_catalog_resources_exists (
83- self : Self , admin_client : DynamicClient , model_registry_namespace : str , resource_name : Any
87+ self : Self ,
88+ admin_client : DynamicClient ,
89+ model_registry_namespace : str ,
90+ resource_name : Any ,
91+ expected_resource_count : int ,
8492 ):
8593 validate_model_catalog_resource (
86- kind = resource_name , admin_client = admin_client , namespace = model_registry_namespace
94+ kind = resource_name ,
95+ admin_client = admin_client ,
96+ namespace = model_registry_namespace ,
97+ expected_resource_count = expected_resource_count ,
8798 )
8899
89100 def test_operator_pod_enabled_model_catalog (self : Self , model_registry_operator_pod : Pod ):
0 commit comments