Bug 788757 - Support v7 call home to open a new cert
Summary: Support v7 call home to open a new cert
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Hardware Certification Program
Classification: Retired
Component: Hardware Catalog
Version: 3.2
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Wei Shen
QA Contact:
URL: http://hardware.redhat.com/
Whiteboard:
Depends On:
Blocks: 733411 782191 788761
TreeView+ depends on / blocked
 
Reported: 2012-02-08 23:13 UTC by Rob Landry
Modified: 2014-06-23 01:33 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-07-12 09:10:24 UTC


Attachments (Terms of Use)

Description Rob Landry 2012-02-08 23:13:05 UTC
Description of problem:

v7-1.5 needs to able to open a new cert from the command line of the SUT.


Steps to Reproduce:
1. v7 {proper commandline with password}  

Expected results:

A new cert/bug is created in parallel with the capabilities of enter.cgi without attachment.

Comment 2 Wei Shen 2012-02-14 06:56:57 UTC
Created attachment 561776 [details]
the patch for xmlrpc

Comment 19 Wei Shen 2012-04-25 10:22:57 UTC
verified on web2

Comment 20 Wei Shen 2012-04-26 07:23:09 UTC
Created attachment 580384 [details]
the new patch addressing make id

Comment 21 Wei Shen 2012-04-26 07:50:11 UTC
Created attachment 580393 [details]
new Patch for make id

Comment 22 Rob Landry 2012-04-30 13:28:02 UTC
Is the user notified after the cert is opened with unknown vendor/make that they should go to the web UI to make the corrections?  Some simple messaging between v7 and catalog is needed here likely.

Greg, do you have any feedback for how this does or should happen?

Comment 23 Wei Shen 2012-05-02 03:24:50 UTC
(In reply to comment #22)
> Is the user notified after the cert is opened with unknown vendor/make that
> they should go to the web UI to make the corrections?  Some simple messaging
> between v7 and catalog is needed here likely.
This is not included in the code, I have no idea how to implement this, maybe we can do this later.

Comment 24 Wei Shen 2012-05-02 09:55:42 UTC
I have adopted tfu's  suggestion, change the return value of create method to a hash(dictionary in python), the structure will be { id => id-value, warning => warning-value}, if  warning-value is not an empty string, v7 would print that warning value. e.g.
    data = s.Cert.create(params)
    data['id']  is the newly created cert's id
    if data['warning']:
        print data['warning']

What do you think, Rob, Greg?

Comment 25 Wei Shen 2012-05-02 10:11:31 UTC
Created attachment 581564 [details]
new patch for adding warnings

Comment 26 Wei Shen 2012-05-23 10:16:23 UTC
verified on partner


Note You need to log in before you can comment on or make changes to this bug.