Skip to content

Commit

Permalink
update test with current errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jbardin committed Aug 16, 2019
1 parent b5cf0a4 commit 8247472
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
7 changes: 1 addition & 6 deletions builtin/providers/test/resource_nested_set_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -646,12 +646,7 @@ resource "test_resource_nested_set" "foo" {
}
}
`),
Check: resource.ComposeTestCheckFunc(
func(s *terraform.State) error {
fmt.Println(s)
return nil
},
),
Check: resource.ComposeTestCheckFunc(),
},
},
})
Expand Down
4 changes: 2 additions & 2 deletions builtin/providers/test/resource_required_min_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ func TestResource_dynamicRequiredMinItems(t *testing.T) {
resource "test_resource_required_min" "a" {
}
`,
ExpectError: regexp.MustCompile(`"required_min_items" blocks are required`),
ExpectError: regexp.MustCompile(`"required_min_items": required field is not set`),
},
resource.TestStep{
Config: strings.TrimSpace(`
Expand All @@ -37,7 +37,7 @@ resource "test_resource_required_min" "b" {
}
}
`),
ExpectError: regexp.MustCompile(`required_min_items: attribute supports 2 item as a minimum`),
ExpectError: regexp.MustCompile(`attribute supports 2 item as a minimum, config has 1 declared`),
},
resource.TestStep{
Config: strings.TrimSpace(`
Expand Down

0 comments on commit 8247472

Please sign in to comment.