From 71b55601ce505fec3b5f9aff490a28bea8079050 Mon Sep 17 00:00:00 2001 From: James Bardin Date: Tue, 13 Nov 2018 23:01:51 -0500 Subject: [PATCH] new failing tests for nested sets --- builtin/providers/test/resource_nested_set.go | 13 +++++++++++-- .../providers/test/resource_nested_set_test.go | 18 ++++++++++++++++++ 2 files changed, 29 insertions(+), 2 deletions(-) diff --git a/builtin/providers/test/resource_nested_set.go b/builtin/providers/test/resource_nested_set.go index c555265c3..318e020e1 100644 --- a/builtin/providers/test/resource_nested_set.go +++ b/builtin/providers/test/resource_nested_set.go @@ -63,13 +63,22 @@ func testResourceNestedSet() *schema.Resource { Type: schema.TypeInt, Optional: true, }, + "bool": { + Type: schema.TypeBool, + Optional: true, + }, }, }, }, "optional": { - Type: schema.TypeString, - ForceNew: true, + Type: schema.TypeString, + // commenting this causes it to get missed during apply + //ForceNew: true, + Optional: true, + }, + "bool": { + Type: schema.TypeBool, Optional: true, }, }, diff --git a/builtin/providers/test/resource_nested_set_test.go b/builtin/providers/test/resource_nested_set_test.go index 7a27b75a2..fb5694fa7 100644 --- a/builtin/providers/test/resource_nested_set_test.go +++ b/builtin/providers/test/resource_nested_set_test.go @@ -200,6 +200,24 @@ resource "test_resource_nested_set" "foo" { `), Check: checkFunc, }, + + resource.TestStep{ + Config: strings.TrimSpace(` +resource "test_resource_nested_set" "foo" { + single { + value = "bar" + optional = "baz" + } + multi { + set { + required = "new" + optional_int = 3 + } + } +} + `), + Check: checkFunc, + }, }, }) }