Skip to content

Commit

Permalink
Merge branch 'master' into mikhailshilkov/stream-analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
mikhailshilkov committed Jun 27, 2019
2 parents 9cfa2f1 + 4186b75 commit 7cc4dab
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions misc/test/examples_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ func TestExamples(t *testing.T) {
azureEnviron = "public"
fmt.Println("Defaulting ARM_ENVIRONMENT to 'public'. You can override using the ARM_ENVIRONMENT variable")
}
azureLocation := os.Getenv("AZURE_LOCATION")
if azureLocation == "" {
azureLocation = "westus"
fmt.Println("Defaulting AZURE_LOCATION to 'westus'. You can override using the AZURE_LOCATION variable")
}
cwd, err := os.Getwd()
if !assert.NoError(t, err, "expected a valid working directory: %v", err) {
return
Expand Down Expand Up @@ -271,6 +276,7 @@ func TestExamples(t *testing.T) {
Dir: path.Join(cwd, "..", "..", "azure-ts-functions"),
Config: map[string]string{
"azure:environment": azureEnviron,
"azure:location": azureLocation,
},
ExtraRuntimeValidation: func(t *testing.T, stack integration.RuntimeValidationStackInfo) {
assertHTTPResult(t, stack.Outputs["endpoint"], func(body string) bool {
Expand Down

0 comments on commit 7cc4dab

Please sign in to comment.