File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
tests/model_registry/model_catalog Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 77from ocp_resources .resource import ResourceEditor
88
99from ocp_resources .route import Route
10+ from tests .conftest import admin_client
1011from tests .model_registry .constants import DEFAULT_MODEL_CATALOG
1112from tests .model_registry .model_catalog .utils import is_model_catalog_ready , wait_for_model_catalog_api
13+ from tests .model_registry .utils import wait_for_pods_running
1214
1315
1416@pytest .fixture (scope = "class" )
@@ -24,8 +26,11 @@ def model_catalog_routes(admin_client: DynamicClient, model_registry_namespace:
2426
2527
2628@pytest .fixture (scope = "class" )
27- def model_catalog_rest_url (model_registry_namespace : str , model_catalog_routes : list [Route ]) -> list [str ]:
29+ def model_catalog_rest_url (admin_client : DynamicClient , model_registry_namespace : str , model_catalog_routes : list [Route ]) -> list [str ]:
2830 assert model_catalog_routes , f"Model catalog routes does not exist in { model_registry_namespace } "
31+ # ensure that model catalog pod is up and running:
32+ wait_for_pods_running (admin_client = admin_client , namespace_name = model_registry_namespace ,
33+ number_of_consecutive_checks = 3 )
2934 route_urls = [
3035 f"https://{ route .instance .spec .host } :443/api/model_catalog/v1alpha1/" for route in model_catalog_routes
3136 ]
You can’t perform that action at this time.
0 commit comments