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
[6.3] Reinstall capsule on the same node after remove (BZ: 1327442) #5388
[6.3] Reinstall capsule on the same node after remove (BZ: 1327442) #5388
Conversation
Codecov Report
@@ Coverage Diff @@
## master #5388 +/- ##
=======================================
Coverage 60.67% 60.67%
=======================================
Files 34 34
Lines 3697 3697
=======================================
Hits 2243 2243
Misses 1454 1454Continue to review full report at Codecov.
|
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.
ACK
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.
looking at the bz, wouldn't it be less expensive to check if all appropriate files were deleted after remove, rather than installing the capsule again?
|
Or differently, we could assert that configs were removed after katello-remove finishes, this way if something slips, we wouldn't have to wait for failing capsule-installer to find out, does it make sense? |
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.
ACK pending @pondrejk suggestion - assert config files are absent before reinstalling the capsule. And also your test takes around 99 minutes, pls move it to tier4 instead of tier3
|
The BZ say that the install failed because of existing configs and certs. The main BZ complains is about install failure after remove. So install after remove is our goal to track @abalakh @pondrejk this is not a test coverage of katello-remove This is a test coverage of install after remove command |
|
@ldjebran you probably didn't get me right. I'm not asking about removing reinstall part of the test (actually i'm against it, that's a nice coverage which we hadn't before), but proposing to add one extra assertion. If configs were not removed then reinstall won't succeed so there's no point in proceeding with scenario. Consider it smth like our |
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, nevermind, as the test is called test_positive_reinstall_on_same_node_after_remove maybe you have a point, it's not a bad idea to test reinstall no matter what's happening on lower level, were or were not some configs removed. Basically, even if they were not removed but capsule installation succeeded - we're good to mark the test with 'PASS'.
ACK
cover https://bugzilla.redhat.com/show_bug.cgi?id=1327442