@@ -62,7 +62,6 @@ def model_registry_db_service(
6262 admin_client : DynamicClient ,
6363 teardown_resources : bool ,
6464 model_registry_namespace : str ,
65- is_model_registry_oauth : bool ,
6665) -> Generator [list [Service ], Any , Any ]:
6766 num_resources = getattr (request , "param" , {}).get ("num_resources" , 1 )
6867 if pytestconfig .option .post_upgrade :
@@ -89,7 +88,6 @@ def model_registry_db_pvc(
8988 admin_client : DynamicClient ,
9089 teardown_resources : bool ,
9190 model_registry_namespace : str ,
92- is_model_registry_oauth : bool ,
9391) -> Generator [list [PersistentVolumeClaim ], Any , Any ]:
9492 num_resources = getattr (request , "param" , {}).get ("num_resources" , 1 )
9593 if pytestconfig .option .post_upgrade :
@@ -116,7 +114,6 @@ def model_registry_db_secret(
116114 admin_client : DynamicClient ,
117115 teardown_resources : bool ,
118116 model_registry_namespace : str ,
119- is_model_registry_oauth : bool ,
120117) -> Generator [list [Secret ], Any , Any ]:
121118 num_resources = getattr (request , "param" , {}).get ("num_resources" , 1 )
122119 if pytestconfig .option .post_upgrade :
@@ -143,7 +140,6 @@ def model_registry_db_deployment(
143140 admin_client : DynamicClient ,
144141 teardown_resources : bool ,
145142 model_registry_namespace : str ,
146- is_model_registry_oauth : bool ,
147143) -> Generator [list [Deployment ], Any , Any ]:
148144 num_resources = getattr (request , "param" , {}).get ("num_resources" , 1 )
149145 if pytestconfig .option .post_upgrade :
@@ -182,7 +178,6 @@ def model_registry_instance_mysql(
182178 admin_client : DynamicClient ,
183179 teardown_resources : bool ,
184180 model_registry_namespace : str ,
185- is_model_registry_oauth : bool ,
186181) -> Generator [list [Any ], Any , Any ]:
187182 """Creates a model registry instance with oauth proxy configuration."""
188183 param = getattr (request , "param" , {})
@@ -257,7 +252,7 @@ def updated_dsc_component_state_scope_class(
257252 dsc_resource .wait_for_condition (
258253 condition = DscComponents .COMPONENT_MAPPING [component_name ], status = "True"
259254 )
260- namespace = Namespace (name = py_config ["model_registry_namespace" ], ensure_exists = True )
255+ namespace = Namespace (name = py_config ["model_registry_namespace" ], wait_for_resource = True )
261256 namespace .wait_for_status (status = Namespace .Status .ACTIVE )
262257 wait_for_pods_running (
263258 admin_client = admin_client ,
@@ -455,11 +450,6 @@ def delete_mr_deployment() -> None:
455450 mr_deployment .delete (wait = True )
456451
457452
458- @pytest .fixture (scope = "class" )
459- def is_model_registry_oauth (request : FixtureRequest ) -> bool :
460- return getattr (request , "param" , {}).get ("use_oauth_proxy" , True )
461-
462-
463453@pytest .fixture (scope = "session" )
464454def api_server_url (admin_client : DynamicClient ) -> str :
465455 infrastructure = Infrastructure (client = admin_client , name = "cluster" , ensure_exists = True )
0 commit comments