Tests for Satellite with local Insights Advisor#17342
Merged
tpapaioa merged 1 commit intoSatelliteQE:masterfrom Mar 10, 2025
Merged
Tests for Satellite with local Insights Advisor#17342tpapaioa merged 1 commit intoSatelliteQE:masterfrom
tpapaioa merged 1 commit intoSatelliteQE:masterfrom
Conversation
11045b2 to
44b6904
Compare
192f93b to
582c5f2
Compare
2150bdf to
2e01c89
Compare
f075a5d to
3d0951f
Compare
9b5f0eb to
8787031
Compare
Collaborator
|
PRT Result |
8787031 to
5c9aa70
Compare
Collaborator
|
PRT Result |
5c9aa70 to
a830476
Compare
Member
|
@jeremylenz Mind taking a look as well? |
jeremylenz
reviewed
Feb 28, 2025
Contributor
jeremylenz
left a comment
There was a problem hiding this comment.
LGTM, just one wording suggestion below
0555ab2 to
dcfe752
Compare
jeremylenz
approved these changes
Mar 3, 2025
dcfe752 to
efd6838
Compare
github-actions bot
pushed a commit
that referenced
this pull request
Mar 10, 2025
Local Insights advisor testing (cherry picked from commit 50072cc)
vsedmik
pushed a commit
that referenced
this pull request
Mar 11, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem Statement
Need to add testing for Satellite w/ local Insights advisor engine.
Solution
module_target_sat_insights. By default, or if it is parametrized with aTruevalue, it will yieldmodule_target_sat, which is configured to use hosted Insights to upload client data to Inventory and syncs recommendations from advisor. If the fixture is parametrized with aFalsevalue, then it will deploy a new Satellite and configure it to use the local advisor engine. Note: this requires some additional steps, to add the advisor rules to the engine once it's installed. These steps can be added to the newsettings.rh_cloud.iop_setup_scriptsettings, e.g.,See SAT-30174 for further details.
pytest_fixtures/component/rh_cloud.pyto usemodule_target_sat_insights.test_rhcloud_inventory_disabled_local_insightstest to verify that the Inventory Upload page is disabled when the local advisor engine is enabled. Because the other inventory tests are relevant only for hosted Insights, I haven't modified them, and they continue to use themodule_target_satfixture.local_advisor_engine_enabledproperty method to theSatelliteclass, to read the Satellite API and return a boolean indicating whether the local advisor is enabled (True) or not (False).Related Issues
SAT-30174
PRT
See PRT result below.