Skip to content

Commit e109075

Browse files
committed
Dont skip TFE tests on org upgrade
1 parent 155ebe1 commit e109075

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

internal/provider/helper_test.go

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@ func testTfeClient(t *testing.T, options testClientOptions) *tfe.Client {
5252
// Attempts to upgrade an organization to the business plan. Requires a user token with admin access.
5353
// DEPRECATED : Please use the newSubscriptionUpdater instead.
5454
func upgradeOrganizationSubscription(t *testing.T, _ *tfe.Client, organization *tfe.Organization) {
55+
if enterpriseEnabled() {
56+
return
57+
}
58+
5559
newSubscriptionUpdater(organization).WithBusinessPlan().Update(t)
5660
}
5761

@@ -61,7 +65,9 @@ func createBusinessOrganization(t *testing.T, client *tfe.Client) (*tfe.Organiza
6165
Email: tfe.String(fmt.Sprintf("%[email protected]", randomString(t))),
6266
})
6367

64-
newSubscriptionUpdater(org).WithBusinessPlan().Update(t)
68+
if !enterpriseEnabled() {
69+
newSubscriptionUpdater(org).WithBusinessPlan().Update(t)
70+
}
6571

6672
return org, orgCleanup
6773
}

0 commit comments

Comments
 (0)