From 2dcbfe453fd63befead58a22d2e92a7cfda293ff Mon Sep 17 00:00:00 2001 From: Sam Stoelinga Date: Fri, 6 Dec 2024 07:40:42 -0800 Subject: [PATCH] add validation test --- test/integration/model_validation_test.go | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/test/integration/model_validation_test.go b/test/integration/model_validation_test.go index dd122646..d9591b2b 100644 --- a/test/integration/model_validation_test.go +++ b/test/integration/model_validation_test.go @@ -262,6 +262,22 @@ func TestModelValidation(t *testing.T) { "s3://", }, }, + { + model: v1.Model{ + ObjectMeta: metadata("cache-profile-with-non-pvc-url-invalid"), + Spec: v1.ModelSpec{ + URL: "pvc://test-pvc/test-model", + Engine: "VLLM", + Features: []v1.ModelFeature{}, + CacheProfile: "some-cache-profile", + }, + }, + expErrContains: []string{ + "cacheProfile is only supported with urls of format", + "hf://", + "s3://", + }, + }, { model: v1.Model{ ObjectMeta: metadata("update-no-changes-valid"),