mirror of
https://github.com/bitwarden/server.git
synced 2025-07-01 16:12:49 -05:00
Update error message when adding existing org with SM to provider
This commit is contained in:
@ -357,7 +357,7 @@ public class ProviderService : IProviderService
|
||||
if (organization.UseSecretsManager)
|
||||
{
|
||||
throw new BadRequestException(
|
||||
"Organizations with a Managed Service Provider do not support Secrets Manager.");
|
||||
"The organization is subscribed to Secrets Manager. Please contact Customer Support to manage the subscription.");
|
||||
}
|
||||
|
||||
var providerOrganization = new ProviderOrganization
|
||||
|
@ -445,7 +445,7 @@ public class ProviderServiceTests
|
||||
|
||||
var exception = await Assert.ThrowsAsync<BadRequestException>(
|
||||
() => sutProvider.Sut.AddOrganization(provider.Id, organization.Id, key));
|
||||
Assert.Equal("Organizations with a Managed Service Provider do not support Secrets Manager.", exception.Message);
|
||||
Assert.Equal("The organization is subscribed to Secrets Manager. Please contact Customer Support to manage the subscription.", exception.Message);
|
||||
}
|
||||
|
||||
[Theory, BitAutoData]
|
||||
|
Reference in New Issue
Block a user