mirror of
https://github.com/bitwarden/server
synced 2026-02-28 10:23:24 +00:00
[PM 32766][Defect] Regression: Unable to upload Premium License to Self Hosted instances (#7090)
* Fix the license version issue * Fix the lint build error * fix the build error * Revert to return the UserLicense as json
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
using Bit.Api.Billing.Models.Requests.Storage;
|
||||
using Bit.Core.Billing.Commands;
|
||||
using Bit.Core.Billing.Licenses.Queries;
|
||||
using Bit.Core.Billing.Models.Business;
|
||||
using Bit.Core.Billing.Premium.Commands;
|
||||
using Bit.Core.Billing.Subscriptions.Commands;
|
||||
using Bit.Core.Billing.Subscriptions.Queries;
|
||||
@@ -44,10 +45,10 @@ public class AccountBillingVNextControllerTests
|
||||
[Theory, BitAutoData]
|
||||
public async Task GetLicenseAsync_ValidUser_ReturnsLicenseResponse(
|
||||
User user,
|
||||
Core.Billing.Licenses.Models.Api.Response.LicenseResponseModel licenseResponse)
|
||||
UserLicense license)
|
||||
{
|
||||
// Arrange
|
||||
_getUserLicenseQuery.Run(user).Returns(licenseResponse);
|
||||
_getUserLicenseQuery.Run(user).Returns(license);
|
||||
// Act
|
||||
var result = await _sut.GetLicenseAsync(user);
|
||||
// Assert
|
||||
|
||||
Reference in New Issue
Block a user