Skip to content

Commit

Permalink
e2e: terraform v1.3.6 (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
yamamoto-febc authored Dec 8, 2022
1 parent dbd5993 commit a0668f6
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion cidr/cidr.go
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ func checkIPv4(ip net.IP) net.IP {
func ipToInt(ip net.IP) (*big.Int, int) {
val := &big.Int{}
val.SetBytes([]byte(ip))
if len(ip) == net.IPv4len { // nolint: gocritic
if len(ip) == net.IPv4len { //nolint: gocritic
return val, 32
} else if len(ip) == net.IPv6len {
return val, 128
Expand Down
2 changes: 1 addition & 1 deletion e2e/request.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func HttpGet(url string) error {

// HttpGetWithResponse 指定のURLにGETでリクエストを行い、ステータスコード200以外の場合はエラーを返す
func HttpGetWithResponse(url string) ([]byte, error) {
res, err := http.Get(url) // nolint
res, err := http.Get(url) //nolint
if err != nil {
return nil, err
}
Expand Down
2 changes: 1 addition & 1 deletion e2e/terraform.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func newTerraform() (*tfexec.Terraform, error) {
installTerraformOnce.Do(func() {
installer := &releases.ExactVersion{
Product: product.Terraform,
Version: version.Must(version.NewVersion("1.0.9")),
Version: version.Must(version.NewVersion("1.3.6")),
}

installed, err := installer.Install(context.Background())
Expand Down
2 changes: 1 addition & 1 deletion newsfeed/functions.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ var NewsFeedURL = "https://secure.sakura.ad.jp/rss/sakuranews/getfeeds.php?forma

// Get ニュースフィード(障害/メンテナンス情報)を取得
func Get() (FeedItems, error) {
resp, err := http.Get(NewsFeedURL) // nolint: gosec
resp, err := http.Get(NewsFeedURL) //nolint: gosec
if err != nil {
return nil, err
}
Expand Down
2 changes: 1 addition & 1 deletion testutil/testutil.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ func Random(strlen int, charSet string) string {
func RandomName(prefix string, strlen int, charSet string) string {
result := make([]byte, strlen)
for i := 0; i < strlen; i++ {
result[i] = charSet[rand.Intn(len(charSet))] // nolint: gosec
result[i] = charSet[rand.Intn(len(charSet))] //nolint: gosec
}
return prefix + string(result)
}
Expand Down

0 comments on commit a0668f6

Please sign in to comment.