Bumping k8s dependencies to 1.13
This commit is contained in:
20
vendor/k8s.io/kubernetes/pkg/kubectl/validation/schema_test.go
generated
vendored
20
vendor/k8s.io/kubernetes/pkg/kubectl/validation/schema_test.go
generated
vendored
@@ -126,14 +126,16 @@ func TestConjunctiveSchema(t *testing.T) {
|
||||
},
|
||||
}
|
||||
|
||||
for _, test := range tests {
|
||||
schema := ConjunctiveSchema(test.schemas)
|
||||
err := schema.ValidateBytes([]byte{})
|
||||
if err != nil && test.shouldPass {
|
||||
t.Errorf("Unexpected error: %v in %s", err, test.name)
|
||||
}
|
||||
if err == nil && !test.shouldPass {
|
||||
t.Errorf("Unexpected non-error: %s", test.name)
|
||||
}
|
||||
for _, tt := range tests {
|
||||
t.Run(tt.name, func(t *testing.T) {
|
||||
schema := ConjunctiveSchema(tt.schemas)
|
||||
err := schema.ValidateBytes([]byte{})
|
||||
if err != nil && tt.shouldPass {
|
||||
t.Errorf("Unexpected error: %v in %s", err, tt.name)
|
||||
}
|
||||
if err == nil && !tt.shouldPass {
|
||||
t.Errorf("Unexpected non-error: %s", tt.name)
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user