helper/schema: call InternalValidate w/ schemaMap{}
This commit is contained in:
parent
1e3d1b07e6
commit
bb14bfa657
|
@ -334,7 +334,7 @@ func TestResourceInternalValidate(t *testing.T) {
|
||||||
}
|
}
|
||||||
|
|
||||||
for i, tc := range cases {
|
for i, tc := range cases {
|
||||||
err := tc.In.InternalValidate()
|
err := tc.In.InternalValidate(schemaMap{})
|
||||||
if (err != nil) != tc.Err {
|
if (err != nil) != tc.Err {
|
||||||
t.Fatalf("%d: bad: %s", i, err)
|
t.Fatalf("%d: bad: %s", i, err)
|
||||||
}
|
}
|
||||||
|
|
|
@ -2799,7 +2799,7 @@ func TestSchemaMap_InternalValidate(t *testing.T) {
|
||||||
}
|
}
|
||||||
|
|
||||||
for i, tc := range cases {
|
for i, tc := range cases {
|
||||||
err := schemaMap(tc.In).InternalValidate()
|
err := schemaMap(tc.In).InternalValidate(schemaMap{})
|
||||||
if (err != nil) != tc.Err {
|
if (err != nil) != tc.Err {
|
||||||
if tc.Err {
|
if tc.Err {
|
||||||
t.Fatalf("%d: Expected error did not occur:\n\n%#v", i, tc.In)
|
t.Fatalf("%d: Expected error did not occur:\n\n%#v", i, tc.In)
|
||||||
|
|
Loading…
Reference in New Issue