@@ -2,6 +2,7 @@ package tests
2
2
3
3
import (
4
4
"context"
5
+ "fmt"
5
6
"os"
6
7
"path/filepath"
7
8
"testing"
@@ -14,8 +15,6 @@ import (
14
15
"github.com/pulumi/pulumi/sdk/v3/go/auto/optdestroy"
15
16
"github.com/pulumi/pulumi/sdk/v3/go/auto/optpreview"
16
17
"github.com/pulumi/pulumi/sdk/v3/go/auto/optup"
17
- "github.com/pulumi/pulumi/sdk/v3/go/common/resource"
18
- "github.com/pulumi/pulumi/sdk/v3/go/common/tokens"
19
18
)
20
19
21
20
func Test_RdsExample (t * testing.T ) {
@@ -45,7 +44,7 @@ func Test_RdsExample(t *testing.T) {
45
44
stackName := integrationTest .CurrentStack ().Name ()
46
45
projectSettings , err := integrationTest .CurrentStack ().Workspace ().ProjectSettings (context .Background ())
47
46
assert .NoError (t , err )
48
- rdsUrn := resource . NewURN ( tokens . QName ( stackName ), projectSettings . Name , " rdsmod:index:Module" , "" , "test-rds" )
47
+ rdsUrn := fmt . Sprintf ( "urn:pulumi:%s::%s:: rdsmod:index:Module::test-rds " , stackName , projectSettings . Name . String () )
49
48
50
49
integrationTest .Preview (t , optpreview .Diff (), optpreview .ExpectNoChanges (),
51
50
optpreview .ErrorProgressStreams (os .Stderr ),
@@ -54,6 +53,6 @@ func Test_RdsExample(t *testing.T) {
54
53
55
54
// TODO [pulumi/pulumi-terraform-module#151] Property dependencies aren't flowing through
56
55
integrationTest .Destroy (t , optdestroy .TargetDependents (), optdestroy .Target ([]string {
57
- rdsUrn . Quote () ,
56
+ rdsUrn ,
58
57
}))
59
58
}
0 commit comments