Skip to content

Commit

Permalink
Move more billing tests that require permissions beyond Billing User …
Browse files Browse the repository at this point in the history
…to master billing account
  • Loading branch information
roaks3 committed Feb 24, 2023
1 parent dbb7da0 commit 0f92e94
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
)

func TestAccDataSourceGoogleBillingAccount_byFullName(t *testing.T) {
billingId := getTestBillingAccountFromEnv(t)
billingId := getTestMasterBillingAccountFromEnv(t)
name := "billingAccounts/" + billingId

vcrTest(t, resource.TestCase{
Expand All @@ -29,7 +29,7 @@ func TestAccDataSourceGoogleBillingAccount_byFullName(t *testing.T) {
}

func TestAccDataSourceGoogleBillingAccount_byShortName(t *testing.T) {
billingId := getTestBillingAccountFromEnv(t)
billingId := getTestMasterBillingAccountFromEnv(t)
name := "billingAccounts/" + billingId

vcrTest(t, resource.TestCase{
Expand All @@ -49,7 +49,7 @@ func TestAccDataSourceGoogleBillingAccount_byShortName(t *testing.T) {
}

func TestAccDataSourceGoogleBillingAccount_byFullNameClosed(t *testing.T) {
billingId := getTestBillingAccountFromEnv(t)
billingId := getTestMasterBillingAccountFromEnv(t)
name := "billingAccounts/" + billingId

vcrTest(t, resource.TestCase{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ func TestAccLoggingBucketConfigBillingAccount_basic(t *testing.T) {

context := map[string]interface{}{
"random_suffix": randString(t, 10),
"billing_account_name": "billingAccounts/" + getTestBillingAccountFromEnv(t),
"billing_account_name": "billingAccounts/" + getTestMasterBillingAccountFromEnv(t),
"org_id": getTestOrgFromEnv(t),
}

Expand Down

0 comments on commit 0f92e94

Please sign in to comment.