Hide Forgot
Description of problem: v7 should save hardware information (vendor, make, model, etc.) so that it is not removed when "v7 clean" is invoked. Subsequent calls to "v7 plan" should use this saved information so the user doesn't have to re-enter it. Also, v7 should add version and certification ID to this information Note that "v7 plan --model" provides a way to edit this information, the --model option should be changed to --certification.
The implementation of this feature is needed to support bug 782191 by providing handling of certification ID to associate certification results with a hardware catalog certification-in-progress.
Created attachment 566929 [details] hardwaretest.py patch implementing certification.xml for saving hardware/cert info This patch uses a new file stored with the results file to save a copy of the hardware information. When v7 plan is called, v7 checks for the certification file /var/v7/certification.xml. If found, it uses information from there and bypasses the dmidecode checks and user prompts. If it is not found, it uses the dmidecode/prompts to get the information, and creates a new certification.xml file. The "v7 clean" command is changed to add an "all" option that removes this file. Also "v7 plan --model" is changed to "v7 plan --certification" to allow a simple interactive edit of this information. The certification.xml file is the same format as the results.xml file, but is limited to the <hardware> and <certification> elements.
Created attachment 566931 [details] environment patch adding certification file name and path
Created attachment 566932 [details] tags.py patch adding serveral string constants
Created attachment 566933 [details] certification.py patch providing new certification document wrapper This patch renames the python class for the results.xml document to ResultsDocument, and splits off some functions to a new base class named CertificationTest for certification.xml. methods are provided for copying <hardware> and <certification> elements between the two documents.
Technical note added. If any revisions are required, please edit the "Technical Notes" field accordingly. All revisions will be proofread by the Engineering Content Services team. New Contents: A new feature has been made in v7 1.5 that now `v7 clean` command preserves SUT hardware information when results are removed. To remove all results including SUT hardware information, use `v7 clean all` command instead.
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-2012-0711.html