Skip to content

Commit

Permalink
Add tests for C# and F#
Browse files Browse the repository at this point in the history
  • Loading branch information
lukehoban committed Nov 21, 2019
1 parent 1c45199 commit 30df65a
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions misc/test/examples_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,52 @@ func TestAccAwsTsTwitterAthena(t *testing.T) {
integration.ProgramTest(t, &test)
}

func TestAccAzureCsAppService(t *testing.T) {
test := getAzureBase(t).
With(integration.ProgramTestOptions{
Dir: path.Join(getCwd(t), "..", "..", "azure-cs-appservice"),
Config: map[string]string{
"sqlPassword": "2@Password@2",
},
ExtraRuntimeValidation: func(t *testing.T, stack integration.RuntimeValidationStackInfo) {
assertHTTPResult(t, stack.Outputs["endpoint"], nil, func(body string) bool {
return assert.Contains(t, body, "Greetings from Azure App Service!")
})
},
})

integration.ProgramTest(t, &test)
}

func TestAccAzureCsWebserver(t *testing.T) {
test := getAzureBase(t).
With(integration.ProgramTestOptions{
Dir: path.Join(getCwd(t), "..", "..", "azure-cs-webserver"),
ExtraRuntimeValidation: func(t *testing.T, stack integration.RuntimeValidationStackInfo) {
assertHTTPHelloWorld(t, stack.Outputs["ipAddress"], nil)
},
})

integration.ProgramTest(t, &test)
}

func TestAccAzureFsAppService(t *testing.T) {
test := getAzureBase(t).
With(integration.ProgramTestOptions{
Dir: path.Join(getCwd(t), "..", "..", "azure-fs-appservice"),
Config: map[string]string{
"sqlPassword": "2@Password@2",
},
ExtraRuntimeValidation: func(t *testing.T, stack integration.RuntimeValidationStackInfo) {
assertHTTPResult(t, stack.Outputs["endpoint"], nil, func(body string) bool {
return assert.Contains(t, body, "Greetings from Azure App Service!")
})
},
})

integration.ProgramTest(t, &test)
}

func TestAccAzureJsWebserver(t *testing.T) {
test := getAzureBase(t).
With(integration.ProgramTestOptions{
Expand Down

0 comments on commit 30df65a

Please sign in to comment.