Skip to content

Commit 4bea1d9

Browse files
update dynamic tests
1 parent db61828 commit 4bea1d9

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

dynamic/provider_test.go

+12-11
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,9 @@ func TestStacktraceDisplayed(t *testing.T) {
6262
}
6363

6464
func TestPrimitiveTypes(t *testing.T) {
65-
t.Parallel()
6665
skipWindows(t)
66+
// TODO[pulumi/pulumi-terraform-bridge#2517]: fix once accurate bridge previews are enabled by default
67+
t.Setenv("PULUMI_TF_BRIDGE_ACCURATE_BRIDGE_PREVIEW", "true")
6768

6869
ctx := context.Background()
6970

@@ -114,26 +115,26 @@ func TestPrimitiveTypes(t *testing.T) {
114115
t.Run("check", assertGRPCCall(grpc.Check, &pulumirpc.CheckRequest{
115116
Urn: urn,
116117
News: inputs(),
117-
}))
118+
}, noParallel))
118119

119120
t.Run("create(preview)", assertGRPCCall(grpc.Create, &pulumirpc.CreateRequest{
120121
Preview: true,
121122
Urn: urn,
122123
Properties: inputs(),
123-
}))
124+
}, noParallel))
124125

125126
t.Run("create", assertGRPCCall(grpc.Create, &pulumirpc.CreateRequest{
126127
Urn: urn,
127128
Properties: inputs(),
128-
}))
129+
}, noParallel))
129130

130131
t.Run("diff(none)", assertGRPCCall(grpc.Diff, &pulumirpc.DiffRequest{
131132
Id: "example-id-0",
132133
Urn: urn,
133134
Olds: outputs(),
134135
News: inputs(),
135136
OldInputs: inputs(),
136-
}))
137+
}, noParallel))
137138

138139
t.Run("diff(some)", assertGRPCCall(grpc.Diff, &pulumirpc.DiffRequest{
139140
Id: "example-id-1",
@@ -155,7 +156,7 @@ func TestPrimitiveTypes(t *testing.T) {
155156
"attrStringDefaultOverridden": resource.NewProperty("overridden"),
156157
}),
157158
OldInputs: inputs(),
158-
}))
159+
}, noParallel))
159160

160161
t.Run("diff(all)", assertGRPCCall(grpc.Diff, &pulumirpc.DiffRequest{
161162
Id: "example-id-2",
@@ -177,13 +178,13 @@ func TestPrimitiveTypes(t *testing.T) {
177178
"attrNumberRequired": resource.NewProperty(12.3456789),
178179
}),
179180
OldInputs: inputs(),
180-
}))
181+
}, noParallel))
181182

182183
t.Run("delete", assertGRPCCall(grpc.Delete, &pulumirpc.DeleteRequest{
183184
Id: "example-id-delete",
184185
Urn: urn,
185186
Properties: outputs(),
186-
}))
187+
}, noParallel))
187188

188189
t.Run("update", assertGRPCCall(grpc.Update, &pulumirpc.UpdateRequest{
189190
Id: "example-update-id",
@@ -192,18 +193,18 @@ func TestPrimitiveTypes(t *testing.T) {
192193
News: marshal(with(outputProps(), resource.PropertyMap{
193194
"attrBoolRequired": resource.NewProperty(false),
194195
})),
195-
}))
196+
}, noParallel))
196197

197198
t.Run("read", assertGRPCCall(grpc.Read, &pulumirpc.ReadRequest{
198199
Id: "example-read-id",
199200
Urn: urn,
200201
Properties: outputs(),
201-
}))
202+
}, noParallel))
202203

203204
t.Run("import", assertGRPCCall(grpc.Read, &pulumirpc.ReadRequest{
204205
Id: "example-read-id",
205206
Urn: urn,
206-
}))
207+
}, noParallel))
207208
}
208209

209210
func TestConfigure(t *testing.T) {

0 commit comments

Comments
 (0)