Skip to content

Commit ca18e6c

Browse files
committed
fix examples
1 parent 7f3b1a4 commit ca18e6c

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

tests/examples_test.go

+3-4
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package tests
22

33
import (
44
"context"
5+
"fmt"
56
"os"
67
"path/filepath"
78
"testing"
@@ -14,8 +15,6 @@ import (
1415
"github.com/pulumi/pulumi/sdk/v3/go/auto/optdestroy"
1516
"github.com/pulumi/pulumi/sdk/v3/go/auto/optpreview"
1617
"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"
1918
)
2019

2120
func Test_RdsExample(t *testing.T) {
@@ -45,7 +44,7 @@ func Test_RdsExample(t *testing.T) {
4544
stackName := integrationTest.CurrentStack().Name()
4645
projectSettings, err := integrationTest.CurrentStack().Workspace().ProjectSettings(context.Background())
4746
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())
4948

5049
integrationTest.Preview(t, optpreview.Diff(), optpreview.ExpectNoChanges(),
5150
optpreview.ErrorProgressStreams(os.Stderr),
@@ -54,6 +53,6 @@ func Test_RdsExample(t *testing.T) {
5453

5554
// TODO [pulumi/pulumi-terraform-module#151] Property dependencies aren't flowing through
5655
integrationTest.Destroy(t, optdestroy.TargetDependents(), optdestroy.Target([]string{
57-
rdsUrn.Quote(),
56+
rdsUrn,
5857
}))
5958
}

0 commit comments

Comments
 (0)