2018-05-23 23:43:17 +02:00
|
|
|
// Copyright 2016-2018, Pulumi Corporation. All rights reserved.
|
|
|
|
|
|
|
|
package ints
|
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
|
|
|
|
2020-04-14 10:30:25 +02:00
|
|
|
"github.com/pulumi/pulumi/pkg/v2/testing/integration"
|
2018-05-23 23:43:17 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
// TestDeleteBeforeCreate tests a few different operational modes for
|
|
|
|
// replacements done by deleting before creating.
|
|
|
|
func TestDeleteBeforeCreate(t *testing.T) {
|
|
|
|
integration.ProgramTest(t, &integration.ProgramTestOptions{
|
|
|
|
Dir: "step1",
|
|
|
|
Dependencies: []string{"@pulumi/pulumi"},
|
|
|
|
Quick: true,
|
|
|
|
EditDirs: []integration.EditDir{
|
|
|
|
{
|
|
|
|
Dir: "step2",
|
|
|
|
Additive: true,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
Dir: "step3",
|
|
|
|
Additive: true,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
Dir: "step4",
|
|
|
|
Additive: true,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
Dir: "step5",
|
|
|
|
Additive: true,
|
|
|
|
},
|
2019-01-31 23:27:53 +01:00
|
|
|
{
|
|
|
|
Dir: "step6",
|
|
|
|
Additive: true,
|
|
|
|
},
|
2018-05-23 23:43:17 +02:00
|
|
|
},
|
|
|
|
})
|
|
|
|
}
|