Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions test/hello_world_app_unit_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
"github.com/gruntwork-io/terratest/modules/terraform"
"testing"
"time"
"strings"
)

// An example of a unit test for the Terraform module in examples/hello-world-app
Expand Down Expand Up @@ -40,6 +41,7 @@ func TestHelloWorldAppUnit(t *testing.T) {
func validateHelloWorldApp(t *testing.T, terraformOptions *terraform.Options) {
// Run `terraform output` to get the values of output variables
url := terraform.Output(t, terraformOptions, "url")
url = strings.Replace(url, "\"","",-1)

// Verify the app returns a 200 OK with the text "Hello, World!"
expectedStatus := 200
Expand Down