Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 459721

Summary: FEAT: save command for saving test results
Product: [Retired] Red Hat Hardware Certification Program Reporter: Greg Nichols <gnichols>
Component: Test Suite (harness)Assignee: Greg Nichols <gnichols>
Status: CLOSED ERRATA QA Contact: Lawrence Lim <llim>
Severity: low Docs Contact:
Priority: medium    
Version: 5.2CC: rlandry, tools-bugs, tyan, ykun
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-01-27 22:57:50 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:
Attachments:
Description Flags
patch for hts/hardwardwaretest.py
none
hts/tags.py patch to add hostname keyword
none
hts/certificationtest.py patch to get first test run timestamp none

Description Greg Nichols 2008-08-21 15:33:44 UTC
Description of problem:

A new command is needed to allow test results (/var/hts/results.xml) to be saved aside so that multiple test results can be managed.

Comment 1 Greg Nichols 2008-08-21 15:47:01 UTC
Overview: 

This preliminary implementation stores the results XML content in a directory structure intended to allow for storage of multiple tests of multiple hosts and
RHEL version.  The structure is as follows:

/var/hts/store/<vendor>/<model>/<arch>/<OS name>/<OS version>/hts-results-<hosthame>-<time stamp of first run>.xml

For example:

/var/hts/store/IBM/23744WU/i686/Werewolf/8/hts-results-localhost.localdomain-20080718010346.xml


Details:

This patch adds hostname to the results XML under the "os" entity.

This patch does not simply copy the results.xml file; if loads it,
parsing from the current results.xml (typically /var/hts/results.xml)
and writes a new XML file at the intended destination using HTS's existing
code for saving test results to XML.   This implementation was chosen
because HTS needs meta-data in the results XML to be able to implement
the destination naming structure, and also insures that the "saved" results
correctly capture the intended test results.

Comment 2 Greg Nichols 2008-08-21 15:48:23 UTC
Created attachment 314718 [details]
patch for hts/hardwardwaretest.py

Comment 3 Greg Nichols 2008-08-21 15:50:08 UTC
Created attachment 314719 [details]
hts/tags.py patch to add hostname keyword

Comment 4 Greg Nichols 2008-08-21 15:52:11 UTC
Created attachment 314720 [details]
hts/certificationtest.py patch to get first test run timestamp

Comment 5 Greg Nichols 2008-08-21 15:52:44 UTC
Please review

Comment 7 Rob Landry 2008-08-26 14:14:29 UTC
looks roughly ok, though I don't think we've layed out exactly in detail what the requirements are to know this satisfies them or not, though likely this will do fine.

Comment 9 Yan Tian 2009-01-02 02:27:17 UTC
Verified "hts save" command worked in hts-5.3-12, saved hts-result-*.xml to /vat/hts/store/.

Comment 11 errata-xmlrpc 2009-01-27 22:57:50 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2009-0047.html