fix a flapping test involving CreateBeforeDestroy
A typo in the config caused it to disagree with the plan on whether a resource should be CreateBeforeDestroy, preventing it from being ordered properly. Add the new CreateBeforeDestroy field to the test fixture state as well for completeness.
This commit is contained in:
parent
c7cc0afb80
commit
cb99dddb4d
|
@ -10232,6 +10232,7 @@ func TestContext2Apply_moduleReplaceCycle(t *testing.T) {
|
|||
&states.ResourceInstanceObjectSrc{
|
||||
Status: states.ObjectReady,
|
||||
AttrsJSON: []byte(`{"id":"a","require_new":"old"}`),
|
||||
CreateBeforeDestroy: mode == "cbd",
|
||||
},
|
||||
addrs.AbsProviderConfig{
|
||||
Provider: addrs.NewLegacyProvider("aws"),
|
||||
|
|
|
@ -1,8 +1,5 @@
|
|||
resource "aws_instance" "a" {
|
||||
require_new = "new"
|
||||
lifecycle {
|
||||
create_before_destroy = true
|
||||
}
|
||||
}
|
||||
|
||||
output "ids" {
|
||||
|
|
Loading…
Reference in New Issue