1
0
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:
Thomas Rittson
2023-09-25 14:43:45 +10:00
parent 632522fc8c
commit f222479ec2
2 changed files with 2 additions and 2 deletions

View File

@ -357,7 +357,7 @@ public class ProviderService : IProviderService
if (organization.UseSecretsManager) if (organization.UseSecretsManager)
{ {
throw new BadRequestException( 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 var providerOrganization = new ProviderOrganization

View File

@ -445,7 +445,7 @@ public class ProviderServiceTests
var exception = await Assert.ThrowsAsync<BadRequestException>( var exception = await Assert.ThrowsAsync<BadRequestException>(
() => sutProvider.Sut.AddOrganization(provider.Id, organization.Id, key)); () => 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] [Theory, BitAutoData]