1
0
mirror of https://github.com/bitwarden/server.git synced 2025-06-30 07:36:14 -05:00

Incorrect Read only connection string on development self-hosted environment (#5426)

This commit is contained in:
Maciej Zieniuk
2025-02-20 20:21:50 +01:00
committed by GitHub
parent 5bbd905401
commit 93e5f7d0fe
7 changed files with 168 additions and 18 deletions

View File

@ -24,6 +24,8 @@ using Microsoft.AspNetCore.Identity;
using NSubstitute;
using Xunit;
using GlobalSettings = Bit.Core.Settings.GlobalSettings;
namespace Bit.Core.Test.Tools.Services;
[SutProviderCustomize]
@ -309,7 +311,7 @@ public class SendServiceTests
.CanAccessPremium(user)
.Returns(true);
sutProvider.GetDependency<Settings.GlobalSettings>()
sutProvider.GetDependency<GlobalSettings>()
.SelfHosted = true;
var badRequest = await Assert.ThrowsAsync<BadRequestException>(() =>
@ -342,7 +344,7 @@ public class SendServiceTests
.CanAccessPremium(user)
.Returns(true);
sutProvider.GetDependency<Settings.GlobalSettings>()
sutProvider.GetDependency<GlobalSettings>()
.SelfHosted = false;
var badRequest = await Assert.ThrowsAsync<BadRequestException>(() =>