fix(validation): Mark covered errors in TestValidateClaim for better clarity

This commit is contained in:
yongruilin
2025-10-06 16:36:57 +00:00
parent 763c01ef68
commit 6138a68f4e

View File

@@ -648,7 +648,7 @@ func TestValidateClaim(t *testing.T) {
},
"prioritized-list-too-many-subrequests": {
wantFailures: field.ErrorList{
field.TooMany(field.NewPath("spec", "devices", "requests").Index(0).Child("firstAvailable"), 9, 8),
field.TooMany(field.NewPath("spec", "devices", "requests").Index(0).Child("firstAvailable"), 9, 8).MarkCoveredByDeclarative(),
},
claim: func() *resource.ResourceClaim {
claim := testClaim(goodName, goodNS, validClaimSpec)