Skip to content

Commit b5ede4b

Browse files
committed
use plus feature set
1 parent 07477b9 commit b5ede4b

File tree

2 files changed

+20
-7
lines changed

2 files changed

+20
-7
lines changed

subscription_updater_test.go

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,19 @@ func (b *organizationSubscriptionUpdater) WithTrialPlan() *organizationSubscript
7272
return b
7373
}
7474

75+
func (b *organizationSubscriptionUpdater) WithPlusPlan() *organizationSubscriptionUpdater {
76+
b.planName = "Plus"
77+
78+
start := time.Now()
79+
ceiling := 1
80+
managedResourcesLimit := 1000
81+
82+
b.updateOpts.ContractStartAt = &start
83+
b.updateOpts.RunsCeiling = &ceiling
84+
b.updateOpts.ContractManagedResourcesLimit = &managedResourcesLimit
85+
return b
86+
}
87+
7588
func (b *organizationSubscriptionUpdater) WithPlusEntitlementPlan() *organizationSubscriptionUpdater {
7689
b.planName = "Plus (entitlement)"
7790

team_notification_configuration_integration_test.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ func TestTeamNotificationConfigurationList(t *testing.T) {
2020
orgTest, orgTestCleanup := createOrganization(t, client)
2121
t.Cleanup(orgTestCleanup)
2222

23-
newSubscriptionUpdater(orgTest).WithPlusEntitlementPlan().Update(t)
23+
newSubscriptionUpdater(orgTest).WithPlusPlan().Update(t)
2424

2525
tmTest, tmTestCleanup := createTeam(t, client, orgTest)
2626
t.Cleanup(tmTestCleanup)
@@ -86,7 +86,7 @@ func TestTeamNotificationConfigurationCreate(t *testing.T) {
8686
orgTest, orgTestCleanup := createOrganization(t, client)
8787
t.Cleanup(orgTestCleanup)
8888

89-
newSubscriptionUpdater(orgTest).WithPlusEntitlementPlan().Update(t)
89+
newSubscriptionUpdater(orgTest).WithPlusPlan().Update(t)
9090

9191
tmTest, tmTestCleanup := createTeam(t, client, orgTest)
9292
t.Cleanup(tmTestCleanup)
@@ -225,7 +225,7 @@ func TestTeamNotificationConfigurationsCreate_byType(t *testing.T) {
225225
orgTest, orgTestCleanup := createOrganization(t, client)
226226
t.Cleanup(orgTestCleanup)
227227

228-
newSubscriptionUpdater(orgTest).WithPlusEntitlementPlan().Update(t)
228+
newSubscriptionUpdater(orgTest).WithPlusPlan().Update(t)
229229

230230
tmTest, tmTestCleanup := createTeam(t, client, orgTest)
231231
t.Cleanup(tmTestCleanup)
@@ -263,7 +263,7 @@ func TestTeamNotificationConfigurationRead(t *testing.T) {
263263
orgTest, orgTestCleanup := createOrganization(t, client)
264264
t.Cleanup(orgTestCleanup)
265265

266-
newSubscriptionUpdater(orgTest).WithPlusEntitlementPlan().Update(t)
266+
newSubscriptionUpdater(orgTest).WithPlusPlan().Update(t)
267267

268268
tmTest, tmTestCleanup := createTeam(t, client, orgTest)
269269
t.Cleanup(tmTestCleanup)
@@ -296,7 +296,7 @@ func TestTeamNotificationConfigurationUpdate(t *testing.T) {
296296
orgTest, orgTestCleanup := createOrganization(t, client)
297297
t.Cleanup(orgTestCleanup)
298298

299-
newSubscriptionUpdater(orgTest).WithPlusEntitlementPlan().Update(t)
299+
newSubscriptionUpdater(orgTest).WithPlusPlan().Update(t)
300300

301301
tmTest, tmTestCleanup := createTeam(t, client, orgTest)
302302
t.Cleanup(tmTestCleanup)
@@ -405,7 +405,7 @@ func TestTeamNotificationConfigurationDelete(t *testing.T) {
405405
orgTest, orgTestCleanup := createOrganization(t, client)
406406
t.Cleanup(orgTestCleanup)
407407

408-
newSubscriptionUpdater(orgTest).WithPlusEntitlementPlan().Update(t)
408+
newSubscriptionUpdater(orgTest).WithPlusPlan().Update(t)
409409

410410
tmTest, tmTestCleanup := createTeam(t, client, orgTest)
411411
t.Cleanup(tmTestCleanup)
@@ -439,7 +439,7 @@ func TestTeamNotificationConfigurationVerify(t *testing.T) {
439439
orgTest, orgTestCleanup := createOrganization(t, client)
440440
t.Cleanup(orgTestCleanup)
441441

442-
newSubscriptionUpdater(orgTest).WithPlusEntitlementPlan().Update(t)
442+
newSubscriptionUpdater(orgTest).WithPlusPlan().Update(t)
443443

444444
tmTest, tmTestCleanup := createTeam(t, client, orgTest)
445445
t.Cleanup(tmTestCleanup)

0 commit comments

Comments
 (0)