File tree Expand file tree Collapse file tree
tests/model_serving/model_server/maas_billing/maas_subscription Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -97,13 +97,11 @@ def maas_model_tinyllama_free(
9797 "name" : maas_inference_service_tinyllama_free .name ,
9898 "namespace" : maas_inference_service_tinyllama_free .namespace ,
9999 "kind" : "LLMInferenceService" ,
100- "apiGroup" : "serving.kserve.io" ,
101- "group" : "serving.kserve.io" ,
102100 },
103101 teardown = True ,
104102 wait_for_resource = True ,
105- ) as m :
106- yield m
103+ ) as maas_model :
104+ yield maas_model
107105
108106
109107@pytest .fixture (scope = "class" )
@@ -121,13 +119,11 @@ def maas_model_tinyllama_premium(
121119 "name" : maas_inference_service_tinyllama_premium .name ,
122120 "namespace" : maas_inference_service_tinyllama_premium .namespace ,
123121 "kind" : "LLMInferenceService" ,
124- "apiGroup" : "serving.kserve.io" ,
125- "group" : "serving.kserve.io" ,
126122 },
127123 teardown = True ,
128124 wait_for_resource = True ,
129- ) as m :
130- yield m
125+ ) as maas_model :
126+ yield maas_model
131127
132128
133129@pytest .fixture (scope = "class" )
Original file line number Diff line number Diff line change 66from ocp_resources .exceptions import MissingRequiredArgumentError
77from ocp_resources .resource import NamespacedResource
88
9+ from utilities .constants import ApiGroups
10+
911
1012class MaaSAuthPolicy (NamespacedResource ):
1113 """
1214 MaaSAuthPolicy is the Schema for the maasauthpolicies API
1315 """
1416
15- api_group : str = "maas.opendatahub.io"
17+ api_group : str = ApiGroups . MAAS_IO
1618
1719 def __init__ (
1820 self ,
Original file line number Diff line number Diff line change 66from ocp_resources .exceptions import MissingRequiredArgumentError
77from ocp_resources .resource import NamespacedResource
88
9+ from utilities .constants import ApiGroups
10+
911
1012class MaaSModel (NamespacedResource ):
1113 """
1214 MaaSModel is the Schema for the maasmodels API
1315 """
1416
15- api_group : str = "maas.opendatahub.io"
17+ api_group : str = ApiGroups . MAAS_IO
1618
1719 def __init__ (
1820 self ,
Original file line number Diff line number Diff line change 66from ocp_resources .exceptions import MissingRequiredArgumentError
77from ocp_resources .resource import NamespacedResource
88
9+ from utilities .constants import ApiGroups
10+
911
1012class MaaSSubscription (NamespacedResource ):
1113 """
1214 MaaSSubscription is the Schema for the maassubscriptions API
1315 """
1416
15- api_group : str = "maas.opendatahub.io"
17+ api_group : str = ApiGroups . MAAS_IO
1618
1719 def __init__ (
1820 self ,
You can’t perform that action at this time.
0 commit comments