Skip to content

Conversation

@andr317c
Copy link
Contributor

No description provided.

Copilot AI review requested due to automatic review settings December 16, 2025 11:46
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes integration tests by adding necessary setup steps and updating test method signatures. The main issue was that LogViewer integration tests were failing because the log directory did not exist during test execution. The PR also updates a MemberType tree test to match an updated controller method signature.

  • Created a new LogViewerTestBase class that ensures the log directory exists before running tests
  • Updated five LogViewer integration test classes to inherit from the new base class
  • Updated the RootMemberTypeTreeControllerTests to include the new foldersOnly parameter in the method signature

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated no comments.

Show a summary per file
File Description
tests/Umbraco.Tests.Integration/ManagementApi/LogViewer/LogViewerTestBase.cs New base class that creates the log directory in SetUp if it doesn't exist
tests/Umbraco.Tests.Integration/ManagementApi/LogViewer/ValidateLogFileSizeLogViewerControllerTests.cs Changed base class from ManagementApiUserGroupTestBase to LogViewerTestBase and removed outdated comment
tests/Umbraco.Tests.Integration/ManagementApi/LogViewer/LogLevelCountLogViewerControllerTests.cs Changed base class from ManagementApiUserGroupTestBase to LogViewerTestBase and removed outdated comment
tests/Umbraco.Tests.Integration/ManagementApi/LogViewer/AllSinkLevelLogViewerControllerTests.cs Changed base class from ManagementApiUserGroupTestBase to LogViewerTestBase
tests/Umbraco.Tests.Integration/ManagementApi/LogViewer/AllMessageTemplateLogViewerControllerTests.cs Changed base class from ManagementApiUserGroupTestBase to LogViewerTestBase and removed outdated comment
tests/Umbraco.Tests.Integration/ManagementApi/LogViewer/AllLogViewerControllerTests.cs Changed base class from ManagementApiUserGroupTestBase to LogViewerTestBase and removed outdated comment
tests/Umbraco.Tests.Integration/ManagementApi/MemberType/Tree/RootMemberTypeTreeControllerTree.cs Added the missing foldersOnly parameter (false) to match the updated controller method signature

Copy link
Contributor

@nhudinh0309 nhudinh0309 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants