Skip to content

Commit

Permalink
Reenable cloud-js-api test (pulumi#408)
Browse files Browse the repository at this point in the history
stack72 authored Oct 1, 2019
1 parent 0ae4ddb commit 6175495
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions misc/test/examples_test.go
Original file line number Diff line number Diff line change
@@ -558,18 +558,17 @@ func TestExamples(t *testing.T) {
"password": "MySuperS3cretPassw0rd",
},
}),
// [TODO:examples#367] Fix failing cloud-js-api integration test.
// base.With(integration.ProgramTestOptions{
// Dir: path.Join(cwd, "..", "..", "cloud-js-api"),
// Config: map[string]string{
// "aws:region": awsRegion,
// },
// ExtraRuntimeValidation: func(t *testing.T, stack integration.RuntimeValidationStackInfo) {
// assertHTTPResult(t, stack.Outputs["endpoint"].(string)+"/hello", nil, func(body string) bool {
// return assert.Contains(t, body, "{\"route\":\"hello\",\"count\":1}")
// })
// },
// }),
base.With(integration.ProgramTestOptions{
Dir: path.Join(cwd, "..", "..", "cloud-js-api"),
Config: map[string]string{
"aws:region": awsRegion,
},
ExtraRuntimeValidation: func(t *testing.T, stack integration.RuntimeValidationStackInfo) {
assertHTTPResult(t, stack.Outputs["endpoint"].(string)+"/hello", nil, func(body string) bool {
return assert.Contains(t, body, "{\"route\":\"hello\",\"count\":1}")
})
},
}),
base.With(integration.ProgramTestOptions{
Dir: path.Join(cwd, "..", "..", "cloud-js-containers"),
Config: map[string]string{

0 comments on commit 6175495

Please sign in to comment.