Skip to content

Commit

Permalink
feat(NewDeviceVerification) : Updating some tests for CloudOrganizati…
Browse files Browse the repository at this point in the history
…onSignUpCommand that were failing.
  • Loading branch information
ike-kottlowski committed Dec 26, 2024
1 parent 5f379c6 commit efa46e5
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ public async Task SignUp_PM_Family_Passes(PlanType planType, OrganizationSignup
signup.PremiumAccessAddon = false;
signup.UseSecretsManager = false;
signup.IsFromSecretsManagerTrial = false;
signup.IsFromProvider = false;

var result = await sutProvider.Sut.SignUpOrganizationAsync(signup);

Expand Down Expand Up @@ -85,6 +86,7 @@ public async Task SignUp_AssignsOwnerToDefaultCollection
signup.PaymentMethodType = PaymentMethodType.Card;
signup.PremiumAccessAddon = false;
signup.UseSecretsManager = false;
signup.IsFromProvider = false;

// Extract orgUserId when created
Guid? orgUserId = null;
Expand Down Expand Up @@ -128,6 +130,8 @@ public async Task SignUp_SM_Passes(PlanType planType, OrganizationSignup signup,
signup.PaymentMethodType = PaymentMethodType.Card;
signup.PremiumAccessAddon = false;
signup.IsFromSecretsManagerTrial = false;
signup.IsFromProvider = false;


var result = await sutProvider.Sut.SignUpOrganizationAsync(signup);

Expand Down Expand Up @@ -196,6 +200,7 @@ public async Task SignUpAsync_SecretManager_AdditionalServiceAccounts_NotAllowed
signup.PremiumAccessAddon = false;
signup.AdditionalServiceAccounts = 10;
signup.AdditionalStorageGb = 0;
signup.IsFromProvider = false;

var exception = await Assert.ThrowsAsync<BadRequestException>(
() => sutProvider.Sut.SignUpOrganizationAsync(signup));
Expand All @@ -213,6 +218,7 @@ public async Task SignUpAsync_SMSeatsGreatThanPMSeat_ShouldThrowException(Organi
signup.PaymentMethodType = PaymentMethodType.Card;
signup.PremiumAccessAddon = false;
signup.AdditionalServiceAccounts = 10;
signup.IsFromProvider = false;

var exception = await Assert.ThrowsAsync<BadRequestException>(
() => sutProvider.Sut.SignUpOrganizationAsync(signup));
Expand All @@ -230,6 +236,7 @@ public async Task SignUpAsync_InvalidateServiceAccount_ShouldThrowException(Orga
signup.PaymentMethodType = PaymentMethodType.Card;
signup.PremiumAccessAddon = false;
signup.AdditionalServiceAccounts = -10;
signup.IsFromProvider = false;

var exception = await Assert.ThrowsAsync<BadRequestException>(
() => sutProvider.Sut.SignUpOrganizationAsync(signup));
Expand Down

0 comments on commit efa46e5

Please sign in to comment.