mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
chore: upgrade terraform to 1.5.1 (#8160)
This commit is contained in:
@@ -22,7 +22,7 @@ var (
|
||||
TerraformVersion = version.Must(version.NewVersion("1.4.6"))
|
||||
|
||||
minTerraformVersion = version.Must(version.NewVersion("1.1.0"))
|
||||
maxTerraformVersion = version.Must(version.NewVersion("1.4.9"))
|
||||
maxTerraformVersion = version.Must(version.NewVersion("1.5.9")) // use .9 to automatically allow patch releases
|
||||
|
||||
terraformMinorVersionMismatch = xerrors.New("Terraform binary minor version mismatch.")
|
||||
)
|
||||
|
||||
@@ -20,7 +20,6 @@ import (
|
||||
|
||||
"cdr.dev/slog"
|
||||
"cdr.dev/slog/sloggers/slogtest"
|
||||
|
||||
"github.com/coder/coder/provisioner/terraform"
|
||||
"github.com/coder/coder/provisionersdk"
|
||||
"github.com/coder/coder/provisionersdk/proto"
|
||||
@@ -284,7 +283,7 @@ func TestProvision(t *testing.T) {
|
||||
Files: map[string]string{
|
||||
"main.tf": `a`,
|
||||
},
|
||||
ErrorContains: "initialize terraform",
|
||||
ErrorContains: "plan terraform",
|
||||
ExpectLogContains: "Argument or block definition required",
|
||||
},
|
||||
{
|
||||
@@ -292,7 +291,7 @@ func TestProvision(t *testing.T) {
|
||||
Files: map[string]string{
|
||||
"main.tf": `;asdf;`,
|
||||
},
|
||||
ErrorContains: "initialize terraform",
|
||||
ErrorContains: "plan terraform",
|
||||
ExpectLogContains: `The ";" character is not valid.`,
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user