@@ -55,7 +55,7 @@ def _verify_operator_csv(admin_client: DynamicClient, csv_prefix: str, namespace
5555 for csv in ClusterServiceVersion .get (client = admin_client , namespace = namespace ):
5656 if csv .name .startswith (csv_prefix ) and csv .status == csv .Status .SUCCEEDED :
5757 return
58- pytest .fail (f"Operator CSV { csv_prefix } not found or not Succeeded in { namespace } " )
58+ pytest .xfail (f"Operator CSV { csv_prefix } not found or not Succeeded in { namespace } " )
5959
6060
6161def verify_llmd_health (admin_client : DynamicClient , dsc_resource : Resource ) -> None :
@@ -68,10 +68,10 @@ def verify_llmd_health(admin_client: DynamicClient, dsc_resource: Resource) -> N
6868 for condition in dsc_resource .instance .status .conditions :
6969 if condition .type == LLMD_DSC_CONDITION :
7070 if condition .status != "True" :
71- pytest .fail (f"{ LLMD_DSC_CONDITION } is not ready: { condition .status } , reason: { condition .get ('reason' )} " )
71+ pytest .xfail (f"{ LLMD_DSC_CONDITION } is not ready: { condition .status } , reason: { condition .get ('reason' )} " )
7272 break
7373 else :
74- pytest .fail (f"{ LLMD_DSC_CONDITION } condition not found in DSC status" )
74+ pytest .xfail (f"{ LLMD_DSC_CONDITION } condition not found in DSC status" )
7575
7676 # 2. Operator CSVs
7777 for csv_prefix , namespace in LLMD_REQUIRED_OPERATORS .items ():
@@ -81,39 +81,39 @@ def verify_llmd_health(admin_client: DynamicClient, dsc_resource: Resource) -> N
8181 for name , namespace in LLMD_REQUIRED_DEPLOYMENTS .items ():
8282 deployment = Deployment (client = admin_client , name = name , namespace = namespace )
8383 if not deployment .exists :
84- pytest .fail (f"LLMD dependency deployment { name } not found in { namespace } " )
84+ pytest .xfail (f"LLMD dependency deployment { name } not found in { namespace } " )
8585
8686 dep_available = False
8787 for condition in deployment .instance .status .get ("conditions" , []):
8888 if condition .type == "Available" :
8989 if condition .status != "True" :
90- pytest .fail (f"Deployment { name } in { namespace } is not Available: { condition .get ('reason' )} " )
90+ pytest .xfail (f"Deployment { name } in { namespace } is not Available: { condition .get ('reason' )} " )
9191 dep_available = True
9292 break
9393
9494 if not dep_available :
95- pytest .fail (f"Deployment { name } in { namespace } has no Available condition" )
95+ pytest .xfail (f"Deployment { name } in { namespace } has no Available condition" )
9696
9797 # 4. LeaderWorkerSetOperator CR
9898 lws_operator = LeaderWorkerSetOperator (client = admin_client , name = "cluster" )
9999 if not lws_operator .exists :
100- pytest .fail ("LeaderWorkerSetOperator 'cluster' CR not found" )
100+ pytest .xfail ("LeaderWorkerSetOperator 'cluster' CR not found" )
101101
102102 lws_available = False
103103 for condition in lws_operator .instance .status .get ("conditions" , []):
104104 if condition .type == "Available" :
105105 if condition .status != "True" :
106- pytest .fail (f"LeaderWorkerSetOperator is not Available: { condition .get ('reason' )} " )
106+ pytest .xfail (f"LeaderWorkerSetOperator is not Available: { condition .get ('reason' )} " )
107107 lws_available = True
108108 break
109109
110110 if not lws_available :
111- pytest .fail ("LeaderWorkerSetOperator has no Available condition" )
111+ pytest .xfail ("LeaderWorkerSetOperator has no Available condition" )
112112
113113 # 5. Kuadrant CR
114114 kuadrant = Kuadrant (client = admin_client , name = "kuadrant" , namespace = "kuadrant-system" )
115115 if not kuadrant .exists :
116- pytest .fail ("Kuadrant 'kuadrant' CR not found" )
116+ pytest .xfail ("Kuadrant 'kuadrant' CR not found" )
117117
118118 LOGGER .info ("LLMD component health check passed" )
119119
0 commit comments