quipucords / camayoc

Test automation framework that facilitates functional testing of quipucords.
https://camayoc.readthedocs.io/
GNU General Public License v3.0
5 stars 4 forks source link

Add support to test the Aggregate report #539

Closed ruda closed 1 month ago

ruda commented 2 months ago

This PR adds support for testing the Aggregate report. It adds data model and settings for the API test and complements the CLI test with some data validation.

$ pytest -v -ra -k 'test_download_aggregate_report or test_aggregate_report'
camayoc/tests/qpc/api/v1/reports/test_reports.py::test_aggregate_report[testlab] PASSED [ 33%]
camayoc/tests/qpc/api/v1/reports/test_reports.py::test_aggregate_report[middleware-testlab] PASSED [ 66%]
camayoc/tests/qpc/cli/test_reports.py::test_download_aggregate_report PASSED [100%]Saved results archive to 72191de6-983f-4e4d-9702-1a2bddad044b.tar.gz

Relates to JIRA: DISCOVERY-759
https://issues.redhat.com/browse/DISCOVERY-759

codecov[bot] commented 2 months ago

Codecov Report

Attention: Patch coverage is 20.00000% with 4 lines in your changes missing coverage. Please review.

Project coverage is 77.90%. Comparing base (ae26f6b) to head (eac5a1f). Report is 7 commits behind head on main.

Files with missing lines Patch % Lines
camayoc/qpc_models.py 25.00% 3 Missing :warning:
camayoc/data_provider.py 0.00% 1 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #539 +/- ## ========================================== - Coverage 78.33% 77.90% -0.43% ========================================== Files 7 7 Lines 683 688 +5 ========================================== + Hits 535 536 +1 - Misses 148 152 +4 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.