Skip to content

Commit

Permalink
Update default dbt version
Browse files Browse the repository at this point in the history
  • Loading branch information
b-per committed Oct 11, 2023
1 parent d236634 commit 1c11af6
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
12 changes: 6 additions & 6 deletions pkg/resources/environment_acceptance_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func TestAccDbtCloudEnvironmentResource(t *testing.T) {
Check: resource.ComposeTestCheckFunc(
testAccCheckDbtCloudEnvironmentExists("dbtcloud_environment.test_env"),
resource.TestCheckResourceAttr("dbtcloud_environment.test_env", "name", environmentName2),
resource.TestCheckResourceAttr("dbtcloud_environment.test_env", "dbt_version", "1.0.1"),
resource.TestCheckResourceAttr("dbtcloud_environment.test_env", "dbt_version", DBT_CLOUD_VERSION),
resource.TestCheckResourceAttr("dbtcloud_environment.test_env", "custom_branch", ""),
resource.TestCheckResourceAttr("dbtcloud_environment.test_env", "use_custom_branch", "false"),
resource.TestCheckResourceAttrSet("dbtcloud_environment.test_env", "credential_id"),
Expand All @@ -59,7 +59,7 @@ func TestAccDbtCloudEnvironmentResource(t *testing.T) {
Check: resource.ComposeTestCheckFunc(
testAccCheckDbtCloudEnvironmentExists("dbtcloud_environment.test_env"),
resource.TestCheckResourceAttr("dbtcloud_environment.test_env", "name", environmentName2),
resource.TestCheckResourceAttr("dbtcloud_environment.test_env", "dbt_version", "1.0.1"),
resource.TestCheckResourceAttr("dbtcloud_environment.test_env", "dbt_version", DBT_CLOUD_VERSION),
resource.TestCheckResourceAttr("dbtcloud_environment.test_env", "custom_branch", "main"),
resource.TestCheckResourceAttr("dbtcloud_environment.test_env", "use_custom_branch", "true"),
resource.TestCheckResourceAttrSet("dbtcloud_environment.test_env", "credential_id"),
Expand All @@ -85,11 +85,11 @@ resource "dbtcloud_project" "test_project" {
resource "dbtcloud_environment" "test_env" {
name = "%s"
type = "deployment"
dbt_version = "1.0.1"
dbt_version = "%s"
project_id = dbtcloud_project.test_project.id
deployment_type = "production"
}
`, projectName, environmentName)
`, projectName, environmentName, DBT_CLOUD_VERSION)
}

func testAccDbtCloudEnvironmentResourceModifiedConfig(projectName, environmentName, customBranch, useCustomBranch string) string {
Expand All @@ -101,7 +101,7 @@ resource "dbtcloud_project" "test_project" {
resource "dbtcloud_environment" "test_env" {
name = "%s"
type = "deployment"
dbt_version = "1.0.1"
dbt_version = "%s"
custom_branch = "%s"
use_custom_branch = %s
project_id = dbtcloud_project.test_project.id
Expand All @@ -114,7 +114,7 @@ resource "dbtcloud_bigquery_credential" "test_credential" {
num_threads = 16
}
`, projectName, environmentName, customBranch, useCustomBranch)
`, projectName, environmentName, DBT_CLOUD_VERSION, customBranch, useCustomBranch)
}

func testAccCheckDbtCloudEnvironmentExists(resource string) resource.TestCheckFunc {
Expand Down
2 changes: 1 addition & 1 deletion pkg/resources/helpers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
)

const (
DBT_CLOUD_VERSION = "1.0.0"
DBT_CLOUD_VERSION = "1.6.0-latest"
)

func providers() map[string]*schema.Provider {
Expand Down
4 changes: 2 additions & 2 deletions pkg/resources/webhook_acceptance_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ resource "dbtcloud_project" "test_project" {
name = "%s"
}
resource "dbtcloud_environment" "test_environment" {
dbt_version = "1.0.1"
dbt_version = "%s"
name = "test"
project_id = dbtcloud_project.test_project.id
type = "deployment"
Expand Down Expand Up @@ -116,7 +116,7 @@ resource "dbtcloud_webhook" "test_webhook" {
]
job_ids = [dbtcloud_job.test.id]
}
`, projectName, webhookName)
`, projectName, DBT_CLOUD_VERSION, webhookName)
}

func testAccCheckDbtCloudWebhookExists(resource string) resource.TestCheckFunc {
Expand Down

0 comments on commit 1c11af6

Please sign in to comment.