dotCMS / dotCMS/core

[TASK] Fix Unit Test ignored in Content Analytics test

Open
#34,424 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

dotCMS : Analytics dotCMS : Technical Debt Priority : 4 Low stale Team : Falcon
Dominant language
Java
Stars
970
Forks
486
Avg merge
3d 33m
Merged PRs (30d)
170

Description

Description

As part of the required back-end changes made in this ticket:

  • #34357

We identified that specific tests in the dotCMS/src/test/java/com/dotcms/analytics/web/AnalyticsWebAPITest.java Unit Test needed to be moved to an Integration Test as they now involve database operations at some point along the call stack.

However, originally those specific tests return false positives as they were not accessing data from the correct dotCMS App: They must interact with the Content Analytics App, not the Experiments App.

Acceptance Criteria
  • Migrate the specific tests as Integration Tests.
  • Generate the mocked data to simulate access to the expected Content Analytics App.
Priority

Medium

Additional Context

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in dotCMS/src/test/java/com/dotcms/analytics/web/AnalyticsWebAPITest.java and identify the tests described as needing migration. Review the related back-end changes in #34357, then move the specific cases to integration tests and verify them with mocked data for the Content Analytics App rather than the Experiments App.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend, testing
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.