mirror of
https://github.com/bitwarden/server.git
synced 2024-11-22 12:15:36 +01:00
Ignore expired licenses in tests to check overall validity (#3495)
This commit is contained in:
parent
a2eadfd9be
commit
88405fd0ef
@ -39,6 +39,10 @@ public class OrganizationLicenseTests
|
|||||||
public void OrganizationLicense_LoadedFromDisk_VerifyData_Passes(int licenseVersion)
|
public void OrganizationLicense_LoadedFromDisk_VerifyData_Passes(int licenseVersion)
|
||||||
{
|
{
|
||||||
var license = OrganizationLicenseFileFixtures.GetVersion(licenseVersion);
|
var license = OrganizationLicenseFileFixtures.GetVersion(licenseVersion);
|
||||||
|
|
||||||
|
// These licenses will naturally expire over time, but we still want them to be able to test
|
||||||
|
license.Expires = DateTime.MaxValue;
|
||||||
|
|
||||||
var organization = OrganizationLicenseFileFixtures.OrganizationFactory();
|
var organization = OrganizationLicenseFileFixtures.OrganizationFactory();
|
||||||
var globalSettings = Substitute.For<IGlobalSettings>();
|
var globalSettings = Substitute.For<IGlobalSettings>();
|
||||||
globalSettings.Installation.Returns(new GlobalSettings.InstallationSettings
|
globalSettings.Installation.Returns(new GlobalSettings.InstallationSettings
|
||||||
|
Loading…
Reference in New Issue
Block a user