2018-05-23 23:43:17 +02:00
|
|
|
// Copyright 2016-2018, Pulumi Corporation. All rights reserved.
|
2020-09-02 18:11:15 +02:00
|
|
|
// +build nodejs all
|
2018-05-23 23:43:17 +02:00
|
|
|
|
|
|
|
package ints
|
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
|
|
|
|
2021-03-17 14:20:05 +01:00
|
|
|
"github.com/pulumi/pulumi/pkg/v3/testing/integration"
|
2018-05-23 23:43:17 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
// Test that the engine does not consider old inputs when calling Check during re-creation of
|
|
|
|
// a resource that was deleted due to a dependency on a DBR-replaced resource.
|
|
|
|
func TestResourceRecreateCheck(t *testing.T) {
|
|
|
|
integration.ProgramTest(t, &integration.ProgramTestOptions{
|
|
|
|
Dir: "step1",
|
|
|
|
Dependencies: []string{"@pulumi/pulumi"},
|
|
|
|
Quick: true,
|
|
|
|
EditDirs: []integration.EditDir{
|
|
|
|
{
|
|
|
|
Dir: "step2",
|
|
|
|
Additive: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
})
|
|
|
|
}
|