Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update TF version #189

Merged
merged 1 commit into from
Oct 26, 2022
Merged
Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions scalr/data_source_workspace_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ func TestAccScalrWorkspaceDataSource_basic(t *testing.T) {
resource.TestCheckResourceAttr(
"data.scalr_workspace.test", "auto_apply", "true"),
resource.TestCheckResourceAttr(
"data.scalr_workspace.test", "terraform_version", "0.12.19"),
"data.scalr_workspace.test", "terraform_version", "1.1.9"),
resource.TestCheckResourceAttr(
"data.scalr_workspace.test", "working_directory", "terraform/test"),
resource.TestCheckResourceAttr(
Expand Down Expand Up @@ -61,7 +61,7 @@ resource scalr_workspace test {
name = "workspace-test-%[1]d"
environment_id = scalr_environment.test.id
auto_apply = true
terraform_version = "0.12.19"
terraform_version = "1.1.9"
working_directory = "terraform/test"
hooks {
pre_init = "./scripts/pre-init.sh"
Expand Down
16 changes: 8 additions & 8 deletions scalr/resource_scalr_workspace_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ func TestAccScalrWorkspace_update(t *testing.T) {
resource.TestCheckResourceAttr(
"scalr_workspace.test", "execution_mode", string(scalr.WorkspaceExecutionModeLocal)),
resource.TestCheckResourceAttr(
"scalr_workspace.test", "terraform_version", "0.12.19"),
"scalr_workspace.test", "terraform_version", "1.1.9"),
resource.TestCheckResourceAttr(
"scalr_workspace.test", "working_directory", "terraform/test"),
resource.TestCheckResourceAttr(
Expand Down Expand Up @@ -281,7 +281,7 @@ func TestAccScalrWorkspace_update(t *testing.T) {
resource.TestCheckResourceAttr(
"scalr_workspace.test", "execution_mode", string(scalr.WorkspaceExecutionModeLocal)),
resource.TestCheckResourceAttr(
"scalr_workspace.test", "terraform_version", "0.12.19"),
"scalr_workspace.test", "terraform_version", "1.1.9"),
resource.TestCheckResourceAttr(
"scalr_workspace.test", "working_directory", "terraform/test"),
resource.TestCheckResourceAttr(
Expand Down Expand Up @@ -494,7 +494,7 @@ func testAccCheckScalrWorkspaceAttributesUpdated(
return fmt.Errorf("Bad execution mode: %s", workspace.ExecutionMode)
}

if workspace.TerraformVersion != "0.12.19" {
if workspace.TerraformVersion != "1.1.9" {
return fmt.Errorf("Bad Terraform version: %s", workspace.TerraformVersion)
}

Expand Down Expand Up @@ -714,7 +714,7 @@ resource "scalr_workspace" "test" {
environment_id = scalr_environment.test.id
auto_apply = false
execution_mode = "%s"
terraform_version = "0.12.19"
terraform_version = "1.1.9"
working_directory = "terraform/test"
run_operation_timeout = 200
var_files = ["test1updated.tfvars", "test2updated.tfvars"]
Expand All @@ -737,7 +737,7 @@ resource "scalr_workspace" "test" {
environment_id = scalr_environment.test.id
auto_apply = false
execution_mode = "%s"
terraform_version = "0.12.19"
terraform_version = "1.1.9"
working_directory = "terraform/test"
vcs_repo {
identifier = "TestRepo/local"
Expand All @@ -755,7 +755,7 @@ resource "scalr_workspace" "test" {
environment_id = scalr_environment.test.id
auto_apply = false
execution_mode = "%s"
terraform_version = "0.12.19"
terraform_version = "1.1.9"
working_directory = "terraform/test"
vcs_provider_id = "test_provider_id"
}`, scalr.WorkspaceExecutionModeLocal),
Expand All @@ -770,7 +770,7 @@ resource "scalr_workspace" "test" {
environment_id = scalr_environment.test.id
auto_apply = false
execution_mode = "%s"
terraform_version = "0.12.19"
terraform_version = "1.1.9"
working_directory = "terraform/test"
}`, scalr.WorkspaceExecutionModeLocal),
)
Expand All @@ -784,7 +784,7 @@ resource "scalr_workspace" "test" {
environment_id = scalr_environment.test.id
auto_apply = false
execution_mode = "%s"
terraform_version = "0.12.19"
terraform_version = "1.1.9"
working_directory = ""
hooks {
pre_init = "./scripts/pre-init_updated.sh"
Expand Down