Bug 843565
| Summary: | v7 test planning should not use a generic device dictionary | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Retired] Red Hat Hardware Certification Program | Reporter: | Greg Nichols <gnichols> | ||||
| Component: | Test Suite (harness) | Assignee: | Greg Nichols <gnichols> | ||||
| Status: | CLOSED ERRATA | QA Contact: | Red Hat Kernel QE team <kernel-qe> | ||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | 1.6.4 | CC: | czhang, qcai, rlandry | ||||
| 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: | 2013-02-01 18:20:41 UTC | Type: | Bug | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Attachments: |
|
||||||
|
Description
Greg Nichols
2012-07-26 16:05:22 UTC
Proposed Change Overview: Currently the harness uses the Planner class to do test planning. The Planner class currently loads up a list of devices (AKA the device dictionary) though several DeviceDetector classes/objects, then passes the devices to each test by calling the tests "plan" method. The plan methods typically iterate through the devices checking attribute values in order to determine if the test should be planned. The change would be to have the Planner pass itself to the tests' "plan" method. The tests' "plan" method would be able to access specific device detectors via the Planner object, supporting simpler, concrete coding for multiple device detection approaches (HAL, UDisks, udev, etc). Using the Planner object to maintain device detector objects would allow caching of parsed results from sources where this is appropriate. Created attachment 600568 [details]
patch revising test planning by removel of generic device list
This patch changes the Planner.__plan test planning implementation to pass the Planner to the Test.plan method of each test. The Test.plan method implemented by each test (subclass) uses new Planner methods to access specific device detectors (example: Planner.getHalDeviceDetector).
The Test.planWith method is changed to take a device detector object rather than a list of devices.
This patch also removes kudzu-based test planning, removing the Kudzu (DeviceDetector subclass), and KudzuDevice class.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHBA-2013-0222.html |