mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-02-22 07:03:28 +00:00
fix(validation): Mark covered errors in TestValidateClaim for better clarity
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user