Skip to content
This repository was archived by the owner on Mar 29, 2023. It is now read-only.

Commit f644bd6

Browse files
committed
Run go fmt
1 parent 3c60880 commit f644bd6

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

test/terratest_helpers.go

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
package test
22

33
import (
4-
"testing"
54
"fmt"
6-
"time"
5+
"github.com/gruntwork-io/terratest/modules/aws"
6+
"github.com/gruntwork-io/terratest/modules/logger"
7+
"github.com/gruntwork-io/terratest/modules/packer"
8+
"io/ioutil"
79
"net/http"
810
"net/url"
9-
"io/ioutil"
1011
"strings"
11-
"github.com/gruntwork-io/terratest/modules/logger"
12-
"github.com/gruntwork-io/terratest/modules/packer"
13-
"github.com/gruntwork-io/terratest/modules/aws"
12+
"testing"
13+
"time"
1414
)
1515

1616
// The username and password we use in all the examples, mocks, and tests
@@ -49,18 +49,17 @@ func buildCouchbaseWithPackerE(t *testing.T, builderName string, baseAmiName str
4949

5050
options := &packer.Options{
5151
Template: templatePath,
52-
Only: builderName,
52+
Only: builderName,
5353
Vars: map[string]string{
54-
"aws_region": awsRegion,
54+
"aws_region": awsRegion,
5555
"base_ami_name": baseAmiName,
56-
"edition": edition,
56+
"edition": edition,
5757
},
5858
}
5959

6060
return packer.BuildAmiE(t, options)
6161
}
6262

63-
6463
func HttpPostForm(t *testing.T, postUrl string, postParams url.Values) (int, string, error) {
6564
logger.Logf(t, "Making an HTTP POST call to URL %s with body %v", postUrl, postParams)
6665

@@ -82,4 +81,4 @@ func HttpPostForm(t *testing.T, postUrl string, postParams url.Values) (int, str
8281
}
8382

8483
return resp.StatusCode, strings.TrimSpace(string(respBody)), nil
85-
}
84+
}

0 commit comments

Comments
 (0)