Skip to content

Commit e09625a

Browse files
authored
Disable failing container tests (pulumi#264)
1 parent e3ea966 commit e09625a

File tree

1 file changed

+50
-33
lines changed

1 file changed

+50
-33
lines changed

misc/test/examples_test.go

Lines changed: 50 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -45,19 +45,24 @@ func TestExamples(t *testing.T) {
4545
}
4646

4747
shortTests := []integration.ProgramTestOptions{
48-
base.With(integration.ProgramTestOptions{
49-
Dir: path.Join(cwd, "..", "..", "aws-js-containers"),
50-
Config: map[string]string{
51-
"aws:region": awsRegion,
52-
},
53-
ExtraRuntimeValidation: func(t *testing.T, stack integration.RuntimeValidationStackInfo) {
54-
maxWait := 10 * time.Minute
55-
endpoint := stack.Outputs["frontendURL"].(string)
56-
assertHTTPResultWithRetry(t, endpoint, maxWait, func(body string) bool {
57-
return assert.Contains(t, body, "Hello, Pulumi!")
58-
})
59-
},
60-
}),
48+
// Test disabled due to flakiness
49+
// https://github.com/pulumi/examples/issues/263
50+
/*
51+
base.With(integration.ProgramTestOptions{
52+
Dir: path.Join(cwd, "..", "..", "aws-js-containers"),
53+
Config: map[string]string{
54+
"aws:region": awsRegion,
55+
},
56+
ExtraRuntimeValidation: func(t *testing.T, stack integration.RuntimeValidationStackInfo) {
57+
maxWait := 10 * time.Minute
58+
endpoint := stack.Outputs["frontendURL"].(string)
59+
assertHTTPResultWithRetry(t, endpoint, maxWait, func(body string) bool {
60+
return assert.Contains(t, body, "Hello, Pulumi!")
61+
})
62+
},
63+
}),
64+
*/
65+
6166
base.With(integration.ProgramTestOptions{
6267
Dir: path.Join(cwd, "..", "..", "aws-js-s3-folder"),
6368
Config: map[string]string{
@@ -132,19 +137,25 @@ func TestExamples(t *testing.T) {
132137
"create-role:unprivilegedUsername": "unpriv",
133138
},
134139
}),
135-
base.With(integration.ProgramTestOptions{
136-
Dir: path.Join(cwd, "..", "..", "aws-ts-containers"),
137-
Config: map[string]string{
138-
"aws:region": awsRegion,
139-
},
140-
ExtraRuntimeValidation: func(t *testing.T, stack integration.RuntimeValidationStackInfo) {
141-
maxWait := 10 * time.Minute
142-
endpoint := stack.Outputs["frontendURL"].(string)
143-
assertHTTPResultWithRetry(t, endpoint, maxWait, func(body string) bool {
144-
return assert.Contains(t, body, "Hello, Pulumi!")
145-
})
146-
},
147-
}),
140+
141+
// Test disabled due to flakiness
142+
// https://github.com/pulumi/examples/issues/263
143+
/*
144+
base.With(integration.ProgramTestOptions{
145+
Dir: path.Join(cwd, "..", "..", "aws-ts-containers"),
146+
Config: map[string]string{
147+
"aws:region": awsRegion,
148+
},
149+
ExtraRuntimeValidation: func(t *testing.T, stack integration.RuntimeValidationStackInfo) {
150+
maxWait := 10 * time.Minute
151+
endpoint := stack.Outputs["frontendURL"].(string)
152+
assertHTTPResultWithRetry(t, endpoint, maxWait, func(body string) bool {
153+
return assert.Contains(t, body, "Hello, Pulumi!")
154+
})
155+
},
156+
}),
157+
*/
158+
148159
base.With(integration.ProgramTestOptions{
149160
Dir: path.Join(cwd, "..", "..", "aws-ts-pulumi-webhooks"),
150161
Config: map[string]string{
@@ -269,13 +280,19 @@ func TestExamples(t *testing.T) {
269280
})
270281
},
271282
}),
272-
base.With(integration.ProgramTestOptions{
273-
Dir: path.Join(cwd, "..", "..", "cloud-js-containers"),
274-
Config: map[string]string{
275-
"aws:region": awsRegion,
276-
"cloud-aws:useFargate": "true",
277-
},
278-
}),
283+
284+
// Test disabled due to flakiness
285+
// https://github.com/pulumi/examples/issues/263
286+
/*
287+
base.With(integration.ProgramTestOptions{
288+
Dir: path.Join(cwd, "..", "..", "cloud-js-containers"),
289+
Config: map[string]string{
290+
"aws:region": awsRegion,
291+
"cloud-aws:useFargate": "true",
292+
},
293+
}),
294+
*/
295+
279296
base.With(integration.ProgramTestOptions{
280297
Dir: path.Join(cwd, "..", "..", "cloud-js-httpserver"),
281298
Config: map[string]string{

0 commit comments

Comments
 (0)