Skip to content

Commit

Permalink
add validation test
Browse files Browse the repository at this point in the history
  • Loading branch information
samos123 committed Dec 6, 2024
1 parent 5e9afcd commit 2dcbfe4
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions test/integration/model_validation_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
Expand Down

0 comments on commit 2dcbfe4

Please sign in to comment.