@@ -366,14 +366,14 @@ def test_auth_policy_model_ref(self):
366366 "apiVersion" : "maas.opendatahub.io/v1alpha1" ,
367367 "kind" : "MaaSModelRef" ,
368368 "metadata" : {"name" : MODEL_REF , "namespace" : other_ns },
369- "spec" : {"modelRef" : {"kind" : "ExternalModel" , "name" : "test-backend" }},
369+ "spec" : {"modelRef" : {"kind" : "ExternalModel" , "name" : "test-backend" , "provider" : "test" }},
370370 })
371371 # MaaSModelRef in MODEL_NAMESPACE with a different name (not referenced by policy)
372372 _apply_cr ({
373373 "apiVersion" : "maas.opendatahub.io/v1alpha1" ,
374374 "kind" : "MaaSModelRef" ,
375375 "metadata" : {"name" : other_model_ref , "namespace" : MODEL_NAMESPACE },
376- "spec" : {"modelRef" : {"kind" : "ExternalModel" , "name" : "test-backend" }},
376+ "spec" : {"modelRef" : {"kind" : "ExternalModel" , "name" : "test-backend" , "provider" : "test" }},
377377 })
378378
379379 # MaaSAuthPolicy referencing only MODEL_REF in MODEL_NAMESPACE
@@ -436,14 +436,14 @@ def test_subscription_model_ref(self):
436436 "apiVersion" : "maas.opendatahub.io/v1alpha1" ,
437437 "kind" : "MaaSModelRef" ,
438438 "metadata" : {"name" : MODEL_REF , "namespace" : other_ns },
439- "spec" : {"modelRef" : {"kind" : "ExternalModel" , "name" : "test-backend" }},
439+ "spec" : {"modelRef" : {"kind" : "ExternalModel" , "name" : "test-backend" , "provider" : "test" }},
440440 })
441441 # MaaSModelRef in MODEL_NAMESPACE with a different name
442442 _apply_cr ({
443443 "apiVersion" : "maas.opendatahub.io/v1alpha1" ,
444444 "kind" : "MaaSModelRef" ,
445445 "metadata" : {"name" : other_model_ref , "namespace" : MODEL_NAMESPACE },
446- "spec" : {"modelRef" : {"kind" : "ExternalModel" , "name" : "test-backend" }},
446+ "spec" : {"modelRef" : {"kind" : "ExternalModel" , "name" : "test-backend" , "provider" : "test" }},
447447 })
448448
449449 # MaaSSubscription referencing only MODEL_REF in MODEL_NAMESPACE
0 commit comments