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 CLI test for insights report #499

Closed mirekdlugosz closed 5 months ago

mirekdlugosz commented 5 months ago

495 was incomplete - there was one more container-based test in upstream quipucords, one that verified that Insights report can be downloaded: https://github.com/quipucords/quipucords/pull/2625/files#diff-62b520bb21a93daf2ad93085612171507ac6119d939005e405da8150f975188eL532

This PR functionally ports it to Camayoc. Instead of using API, it uses CLI to obtain the report. It also runs some basic checks of the downloaded file, to verify that output looks like a valid Insights report.

Full Insights report flow is implemented in internal iqe-foreman-rh-cloud-plugin. That test uploads archive through Yuptoo, verifies that hosts appeared in HBI, syncs subscriptions and verifies that data there is correct. However, test executing this flow is not tied to our usual pipelines and is not triggered automatically as we make changes to Quipucords.

codecov[bot] commented 5 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 76.79%. Comparing base (9b052ba) to head (8d45e0a).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #499 +/- ## ========================================== + Coverage 76.69% 76.79% +0.10% ========================================== Files 7 7 Lines 695 698 +3 ========================================== + Hits 533 536 +3 Misses 162 162 ```

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