-
Notifications
You must be signed in to change notification settings - Fork 86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[RHELC-1535] Test set envar through config #1440
Conversation
/packit test --labels tier1 |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1440 +/- ##
=======================================
Coverage 96.09% 96.09%
=======================================
Files 72 72
Lines 5143 5143
Branches 888 888
=======================================
Hits 4942 4942
Misses 119 119
Partials 82 82
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
config_path = "/etc/convert2rhel.ini" | ||
config = configparser.ConfigParser() | ||
config.read(config_path) | ||
config.set("host_metering", "configure_host_metering", "force") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cannot we make this as a generic helper function?, I can see that this can be used in other tests. Maybe make it as a class, that can sets different values?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have that in my backlog 😅
When we move away from the envars completely, and we'll need to set overrides through the config, I'll refactor this to a proper parameterizable helper function.
At the moment given the time constraints I see this as sufficient.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, this can be fixed later on then.
c4d5663
to
262aed0
Compare
* modify one of the tests to validate the functionality * disable flaky fail after ponr test Signed-off-by: Daniel Diblik <[email protected]>
262aed0
to
82584b3
Compare
/packit test --labels tier1 |
* modify one of the tests to validate the functionality * disable flaky fail after ponr test Signed-off-by: Daniel Diblik <[email protected]>
Jira Issues:
Checklist
[RHELC-]
or[HMS-]
is part of the PR titleRelease Pending
if relevant