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

Update error message for leaving org with CME (#1729)

This commit is contained in:
Thomas Rittson
2021-11-22 08:22:28 +10:00
committed by GitHub
parent 33edc8eba0
commit 7e3e87ed39
2 changed files with 2 additions and 2 deletions

View File

@ -78,7 +78,7 @@ namespace Bit.Api.Test.Controllers
var exception = await Assert.ThrowsAsync<BadRequestException>(
() => _sut.Leave(orgId.ToString()));
Assert.Contains("You cannot leave this Organization because you are using its Key Connector.",
Assert.Contains("Your organization's Single Sign-On settings prevent you from leaving.",
exception.Message);
await _organizationService.DidNotReceiveWithAnyArgs().DeleteUserAsync(default, default);