Bug 472740

Summary: [RFE] -package is uninstaled during test, which need that package
Product: [Retired] Beaker Reporter: Petr Sklenar <psklenar>
Component: beahAssignee: beaker-dev-list
Status: CLOSED EOL QA Contact: tools-bugs <tools-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 0.5CC: atodorov, azelinka, bpeck, dkutalek, mastyk, mcsontos, tools-bugs, xtian
Target Milestone: ---Keywords: FutureFeature
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard: SimpleHarness
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-02-11 12:15:30 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 577796    
Bug Blocks:    

Description Petr Sklenar 2008-11-24 10:20:00 UTC
Description of problem:
I have two tests:
one need package bind-chroot -- there is bind-chroot in Makefile Requires section.
Second doesn't need bind-chroot -- there is (minus) -bind-chroot in Makefile Requires section.

I schedule both test on one machine, then machine is without bind-chroot during both tests -- thats why first test fail :(

Version-Release number of selected component (if applicable):


How reproducible:
always

Steps to Reproduce:
1. two test, one with +package in Require , second with -dependences in Requires
2. schedule both test on one machine
  
Actual results:
bind-chroot is uninstalled during both test

Expected results:
during tests on one machine:
bind-chroot is installed in test when it is +required
bind-chroot is uninstalled, when its -required.

Additional info:

Comment 1 Bill Peck 2008-11-24 14:47:10 UTC
This is an interesting problem. 

Currently we rely on Anaconda to install the packages required for testing.  The harness could be updated to install/remove the required packages for the test about to be run.  

Ideally we would just put the test requires as rpm requires of the test rpm.  This would allow the installing the test rpm to pull in the correct rpms needed.  Problem with this approach is that some tests have Requires that span across multiple releases.  The test rpm would have to be split between releases to continue to work.

Updating the harness to deal with this is probably the best bet.  I'll add this BZ to the business requirements for the new test harness.

Comment 2 Bill Peck 2010-04-07 12:37:10 UTC
Notice:

Legacy RHTS is soon to be retired and replaced by Beaker. As part of
this migration process all RHTS bugs need to be re-verified against a
Beaker instance by the cut-off date

   5pm Monday April 12th UTC-4. 

Please confirm this bug is still relevant to Beaker by re-verifying it
against the stage deployment of Beaker https://beaker-stage.app.eng.bos.redhat.com.

To keep this bug open please comment on it

If it has not received a comment by that date the bug will be closed/wontfix.

After the cutoff date all commented bugs will be moved to the Beaker
product.


thank you

Comment 3 Marian Csontos 2010-04-13 18:22:21 UTC
this is still an issue.

Comment 4 Marian Csontos 2010-11-10 12:25:07 UTC
*** Bug 651828 has been marked as a duplicate of this bug. ***

Comment 5 Nick Coghlan 2012-10-17 04:38:38 UTC
Bulk reassignment of issues as Bill has moved to another team.

Comment 8 Martin Styk 2020-02-11 12:15:30 UTC
Beah is no longer supported by Beaker development team.
Instead of that, we are working on Restraint test harness. You can find all the features of Restraint here.

https://restraint.readthedocs.io/en/latest/

If you think your RFE should be still implemented as part of Restraint feel free to create a new BZ ticket.

https://bugzilla.redhat.com/enter_bug.cgi?product=Restraint

In case you have any question feel free to reach out to me
Thank you,
Martin Styk <martin.styk>