Move audit log endpoints to their respective silos and clean up (#16170)

* Move audit log endpoints to their respective silos and clean up

* Fix failing integration tests

---------

Co-authored-by: Mads Rasmussen <madsr@hey.com>
This commit is contained in:
Kenn Jacobsen
2024-05-01 12:07:06 +02:00
committed by GitHub
parent c8180d508b
commit 374d699fd9
16 changed files with 349 additions and 558 deletions

View File

@@ -1,9 +1,7 @@
using System.Linq.Expressions;
using System.Net;
using System.Net.Http.Headers;
using NUnit.Framework;
using Umbraco.Cms.Api.Management.Controllers.AuditLog;
using Umbraco.Cms.Core;
using Umbraco.Cms.Api.Management.Controllers.Culture;
namespace Umbraco.Cms.Tests.Integration.ManagementApi.Policies;
@@ -11,10 +9,10 @@ namespace Umbraco.Cms.Tests.Integration.ManagementApi.Policies;
///
/// </summary>
[TestFixture]
public class ByKeyAuditLogControllerTests : ManagementApiTest<ByKeyAuditLogController>
public class AllCultureControllerTests : ManagementApiTest<AllCultureController>
{
protected override Expression<Func<ByKeyAuditLogController, object>> MethodSelector =>
x => x.ByKey(CancellationToken.None, Constants.Security.SuperUserKey, Direction.Ascending, null, 0, 100);
protected override Expression<Func<AllCultureController, object>> MethodSelector =>
x => x.GetAll(CancellationToken.None, 0, 100);
[Test]
public virtual async Task As_Admin_I_Have_Access()