Add tests for C# and F#
MODIFY
misc/test/examples_test.go
misc/test/examples_test.go
@@ -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{

Add tests for C# and F#