new failing tests for nested sets
This commit is contained in:
parent
16f28f7348
commit
71b55601ce
|
@ -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,
|
||||
// commenting this causes it to get missed during apply
|
||||
//ForceNew: true,
|
||||
Optional: true,
|
||||
},
|
||||
"bool": {
|
||||
Type: schema.TypeBool,
|
||||
Optional: true,
|
||||
},
|
||||
},
|
||||
|
|
|
@ -196,6 +196,24 @@ resource "test_resource_nested_set" "foo" {
|
|||
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,
|
||||
|
|
Loading…
Reference in New Issue