| Summary: | [RFE] Create a simple way how to run tests or part of them as ordinary user | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Patrik Kis <pkis> |
| Component: | beakerlib | Assignee: | Ondrej Hudlicky <ohudlick> |
| Status: | ASSIGNED --- | QA Contact: | |
| Severity: | unspecified | Docs Contact: | |
| Priority: | low | ||
| Version: | rawhide | CC: | ksrot, ohudlick, qa-errata-list |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | Type: | Bug | |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
|
Description
Patrik Kis
2012-04-20 06:46:16 UTC
The 'run whole test' as user is a Beaker harness thing, maybe a tortilla wrapper. I presume some RFEs for report-result and other beaker harness API pieces would be needed to allow running them as non-root. That is definitely not a BeakerLib material. The 'run parts of the test' as different user is a different story. There is a RFE hanging somewhere around for something like a 'rlRunAsUser', which is the approach I personally like and it mimics the use-case I usually encounter when writing tests. An option is to rewrite rlRun to accept a -u 'user' arg. The proposal seems quite hard to implement to me (after all, the test is just a bash script), and I do not see a benefit over the simple rlRunAsUser approach. If there were something like 'rlRunAsUser', this RFE would not be created. I agree that it could be easier to implement something like 'rlRunAsUser', however run a block of commands as different user is more comfortable, but this is a detail. The main point for me is to have at least something that would make the life easier, if it is 'rlRunAsUser', so be but I haven't found such a RFE. |