-
Notifications
You must be signed in to change notification settings - Fork 83
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-1339] Port update_rhsm_custom_facts to Action framework #1299
Conversation
convert2rhel/actions/post_conversion/port_update_rhsm_custom_facts.py
Outdated
Show resolved
Hide resolved
convert2rhel/unit_tests/actions/test_update_rhsm_custom_facts_.py
Outdated
Show resolved
Hide resolved
convert2rhel/unit_tests/actions/test_update_rhsm_custom_facts_.py
Outdated
Show resolved
Hide resolved
convert2rhel/unit_tests/actions/test_update_rhsm_custom_facts_.py
Outdated
Show resolved
Hide resolved
convert2rhel/actions/post_conversion/port_update_rhsm_custom_facts.py
Outdated
Show resolved
Hide resolved
convert2rhel/actions/post_conversion/port_update_rhsm_custom_facts.py
Outdated
Show resolved
Hide resolved
convert2rhel/actions/post_conversion/port_update_rhsm_custom_facts.py
Outdated
Show resolved
Hide resolved
convert2rhel/actions/post_conversion/port_update_rhsm_custom_facts.py
Outdated
Show resolved
Hide resolved
05fc0ad
to
d3156b0
Compare
convert2rhel/unit_tests/actions/test_update_rhsm_custom_facts_.py
Outdated
Show resolved
Hide resolved
convert2rhel/unit_tests/actions/post_conversion/rhsm_custom_facts_config_test.py
Fixed
Show fixed
Hide fixed
e848407
to
b5d8307
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1299 +/- ##
==========================================
- Coverage 96.53% 96.53% -0.01%
==========================================
Files 65 66 +1
Lines 4970 4986 +16
Branches 870 873 +3
==========================================
+ Hits 4798 4813 +15
Misses 97 97
- Partials 75 76 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
b5d8307
to
85a696a
Compare
cb3c0ed
to
96a5d2c
Compare
/packit test --labels sanity |
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.
Small comments but unit tests are failing atm
convert2rhel/actions/post_conversion/rhsm_custom_facts_config.py
Outdated
Show resolved
Hide resolved
convert2rhel/actions/post_conversion/rhsm_custom_facts_config.py
Outdated
Show resolved
Hide resolved
convert2rhel/unit_tests/actions/post_conversion/rhsm_custom_facts_config_test.py
Outdated
Show resolved
Hide resolved
convert2rhel/unit_tests/actions/post_conversion/rhsm_custom_facts_config_test.py
Outdated
Show resolved
Hide resolved
convert2rhel/unit_tests/actions/post_conversion/rhsm_custom_facts_config_test.py
Outdated
Show resolved
Hide resolved
convert2rhel/unit_tests/actions/post_conversion/rhsm_custom_facts_config_test.py
Outdated
Show resolved
Hide resolved
/packit build |
32699e2
to
a7d6cea
Compare
/packit test --labels sanity |
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.
Looks good, waiting on int tests
0a0e208
to
196fbdc
Compare
/packit test --labels sanity |
196fbdc
to
5de2274
Compare
* Added to the draft for port of update_rhsm_custom_facts to post_conversion directory * Added the corrisponding test for the port as well
* Removed unused imports * Updated some of the names of the function
* for the UpdateRHSMCustomFacts class added actions to the import * removed the output var from the call to update_rhsm_custom_facts() * added in the id,title,description,diagnosis
* removed the mock for toolopts * removed the diagnosis as it wasn't being used * renamed the action and test to rhas_custom_facts_config and rhsm_custom_facts_config_test
* added a log mesage for when there is no output
* this is being uploaded to check to see what is going on with pytest as its been returning a strange error even befor I made changes
* this commit changes the way the rhsm_custom_facts_config_no_output() works and now we check for no output but just asserting the actions messages with an empty string * Changed the RunSubprocessMocked() to use the exsisting one
…cts_config_test.py
5de2274
to
2a9609a
Compare
/packit test --labels sanity |
This PR is a Port for update_rhsm_custom_facts function to the action framwork
Jira Issues:
Checklist
[RHELC-]
or[HMS-]
is part of the PR titleRelease Pending
if relevant