new failing tests for nested sets

This commit is contained in:
James Bardin 2018-11-13 23:01:51 -05:00
parent 16f28f7348
commit 71b55601ce
2 changed files with 29 additions and 2 deletions

View File

@ -63,13 +63,22 @@ func testResourceNestedSet() *schema.Resource {
Type: schema.TypeInt, Type: schema.TypeInt,
Optional: true, Optional: true,
}, },
"bool": {
Type: schema.TypeBool,
Optional: true,
},
}, },
}, },
}, },
"optional": { "optional": {
Type: schema.TypeString, Type: schema.TypeString,
ForceNew: true, // commenting this causes it to get missed during apply
//ForceNew: true,
Optional: true,
},
"bool": {
Type: schema.TypeBool,
Optional: true, Optional: true,
}, },
}, },

View File

@ -196,6 +196,24 @@ resource "test_resource_nested_set" "foo" {
optional_int = 3 optional_int = 3
} }
} }
}
`),
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, Check: checkFunc,