Skip to content

Commit

Permalink
cloud-js-api test. simple test of the cloud-js-api example.
Browse files Browse the repository at this point in the history
  • Loading branch information
daveremy committed Oct 10, 2018
1 parent c11a96a commit d0f558b
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions misc/test/examples_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,18 @@ func TestExamples(t *testing.T) {
})
},
}),
base.With(integration.ProgramTestOptions{
Dir: path.Join(cwd, "..", "..", "cloud-js-api"),
SkipBuild: true,
Config: map[string]string{
"aws:region": awsRegion,
},
ExtraRuntimeValidation: func(t *testing.T, stack integration.RuntimeValidationStackInfo) {
assertHTTPResult(t, stack.Outputs["endpoint"].(string)+"/hello", func(body string) bool {
return assert.Contains(t, body, "{\"route\":\"hello\",\"count\":1}")
})
},
}),
// TODO: This test fails due to a bug in the Terraform Azure provider in which the
// service principal is not available when attempting to create the K8s cluster.
// See the azure-ts-aks-example readme for more detail.
Expand Down

0 comments on commit d0f558b

Please sign in to comment.