From cf6e7bf0b9b5eebd3027515eee92a6d0921c6b85 Mon Sep 17 00:00:00 2001 From: Craig Squire <677724+csquire@users.noreply.github.com> Date: Fri, 13 Dec 2024 10:05:37 -0600 Subject: [PATCH] Update tests to use dbt_version latest --- pkg/framework/acctest_config/acctest_config.go | 2 +- pkg/framework/acctest_helper/acctest_helper.go | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/pkg/framework/acctest_config/acctest_config.go b/pkg/framework/acctest_config/acctest_config.go index 02b92c2..de3afa0 100644 --- a/pkg/framework/acctest_config/acctest_config.go +++ b/pkg/framework/acctest_config/acctest_config.go @@ -14,7 +14,7 @@ func buildAcctestConfig() AcctestConfig { DbtCloudServiceToken: os.Getenv("DBT_CLOUD_TOKEN"), DbtCloudPersonalAccessToken: os.Getenv("DBT_CLOUD_PERSONAL_ACCESS_TOKEN"), DbtCloudHostUrl: determineStringValue("DBT_CLOUD_HOST_URL", "", ""), - DbtCloudVersion: "versionless", + DbtCloudVersion: "latest", DbtCloudUserId: determineIntValue( "ACC_TEST_DBT_CLOUD_USER_ID", diff --git a/pkg/framework/acctest_helper/acctest_helper.go b/pkg/framework/acctest_helper/acctest_helper.go index 8ec477a..3acc356 100644 --- a/pkg/framework/acctest_helper/acctest_helper.go +++ b/pkg/framework/acctest_helper/acctest_helper.go @@ -40,10 +40,6 @@ func SharedClient() (*dbt_cloud.Client, error) { return &client, nil } -const ( - DBT_CLOUD_VERSION = "latest" -) - var TestAccProtoV6ProviderFactories = map[string]func() (tfprotov6.ProviderServer, error){ "dbtcloud": func() (tfprotov6.ProviderServer, error) { upgradedSdkProvider, err := tf5to6server.UpgradeServer(