1
0
mirror of https://github.com/bitwarden/server synced 2025-12-06 00:03:34 +00:00

Improve Swagger OperationIDs for AC (#6236)

This commit is contained in:
Daniel García
2025-09-10 01:00:07 +02:00
committed by GitHub
parent 48a262ff1e
commit 5f76804f47
13 changed files with 202 additions and 35 deletions

View File

@@ -28,7 +28,7 @@ public class OrganizationDomainControllerTests
{
sutProvider.GetDependency<ICurrentContext>().ManageSso(orgId).Returns(false);
var requestAction = async () => await sutProvider.Sut.Get(orgId);
var requestAction = async () => await sutProvider.Sut.GetAll(orgId);
await Assert.ThrowsAsync<UnauthorizedAccessException>(requestAction);
}
@@ -40,7 +40,7 @@ public class OrganizationDomainControllerTests
sutProvider.GetDependency<ICurrentContext>().ManageSso(orgId).Returns(true);
sutProvider.GetDependency<IOrganizationRepository>().GetByIdAsync(orgId).ReturnsNull();
var requestAction = async () => await sutProvider.Sut.Get(orgId);
var requestAction = async () => await sutProvider.Sut.GetAll(orgId);
await Assert.ThrowsAsync<NotFoundException>(requestAction);
}
@@ -64,7 +64,7 @@ public class OrganizationDomainControllerTests
}
});
var result = await sutProvider.Sut.Get(orgId);
var result = await sutProvider.Sut.GetAll(orgId);
Assert.IsType<ListResponseModel<OrganizationDomainResponseModel>>(result);
Assert.Equal(orgId, result.Data.Select(x => x.OrganizationId).FirstOrDefault());