Skip to content

markers: add additional problem-manager tests#8604

Merged
vince-fugnitto merged 1 commit intomasterfrom
vf/problems-tests
Oct 9, 2020
Merged

markers: add additional problem-manager tests#8604
vince-fugnitto merged 1 commit intomasterfrom
vf/problems-tests

Conversation

@vince-fugnitto
Copy link
Member

@vince-fugnitto vince-fugnitto commented Oct 8, 2020

What it does

The following pull-request adds additional tests for the problem-manager as well as refactorings:

  • ProblemManager.cleanAllMarkers
    Verify that the method correctly cleans all available markers.

  • ProblemManager.findMarkers
    Verify that the method correctly returns markers for different filters.

  • ProblemManager.getUris
    Verify that the method correctly returns the number of uris under different circumstances.

  • ProblemManager.getProblemStat
    Verify that the method correctly returns the total number problem stats (errors, warnings, infos) under different circumstances.

How to test

Verify the content, the CI should successfully pass (build and tests).

Review checklist

Reminder for reviewers

Signed-off-by: vince-fugnitto vincent.fugnitto@ericsson.com

@vince-fugnitto vince-fugnitto added quality issues related to code and application quality markers issues related to problem markers test issues related to unit and api tests labels Oct 8, 2020
@vince-fugnitto vince-fugnitto self-assigned this Oct 8, 2020
Copy link
Member

@paul-marechal paul-marechal left a comment

Choose a reason for hiding this comment

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

LGTM, one comment.

Copy link
Contributor

@DucNgn DucNgn left a comment

Choose a reason for hiding this comment

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

The code looks good 👍

The following commit updates the `problem-manager` tests:
- updates the existing unit tests.
- adds additional tests:
  - adds tests to find uris.
  - adds tests to verify the problem stats.
  - adds additional `findMarker` tests for different filters.

Signed-off-by: vince-fugnitto <vincent.fugnitto@ericsson.com>
@vince-fugnitto
Copy link
Member Author

@marechal-p I updated the problem-manager unit tests based on your suggestion to simplify it and avoid the confusion it may have caused before.

@vince-fugnitto vince-fugnitto merged commit 8004953 into master Oct 9, 2020
@vince-fugnitto vince-fugnitto deleted the vf/problems-tests branch October 9, 2020 18:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

markers issues related to problem markers quality issues related to code and application quality test issues related to unit and api tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants