Merge lp:~roadmr/checkbox/1302851-bad-transport-api-usage into lp:checkbox

Proposed by Daniel Manrique
Status: Merged
Approved by: Zygmunt Krynicki
Approved revision: 2890
Merged at revision: 2890
Proposed branch: lp:~roadmr/checkbox/1302851-bad-transport-api-usage
Merge into: lp:checkbox
Diff against target: 20 lines (+2/-2)
1 file modified
checkbox-ng/checkbox_ng/commands/certification.py (+2/-2)
To merge this branch: bzr merge lp:~roadmr/checkbox/1302851-bad-transport-api-usage
Reviewer Review Type Date Requested Status
Daniel Manrique (community) Approve
Zygmunt Krynicki (community) Approve
Review via email: mp+214346@code.launchpad.net

Commit message

checkbox-ng:commands:certification: fix Transport API usage

    The transport API was recently refactored, and instantiation and
    invocation of the CertificationTransport in this command wasn't updated
    to account for that. (LP: #1302851)

Description of the change

    checkbox-ng:commands:certification: fix Transport API usage

    The transport API was recently refactored, and instantiation and
    invocation of the CertificationTransport in this command wasn't updated
    to account for that. (LP: #1302851)

To post a comment you must log in.
Revision history for this message
Zygmunt Krynicki (zyga) wrote :

+1

review: Approve
Revision history for this message
Daniel Manrique (roadmr) wrote :

Thanks! BTW with this fix applied, c-c-server does correctly test, save reports in html, xml and xlsx formats, and submit results to certification, so end-to-end-run FTW, +1 on the entire stack for c-c-server usage.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'checkbox-ng/checkbox_ng/commands/certification.py'
--- checkbox-ng/checkbox_ng/commands/certification.py 2014-01-29 15:53:59 +0000
+++ checkbox-ng/checkbox_ng/commands/certification.py 2014-04-04 21:49:43 +0000
@@ -80,14 +80,14 @@
80 # Create the transport object80 # Create the transport object
81 try:81 try:
82 transport = CertificationTransport(82 transport = CertificationTransport(
83 self.config.c3_url, options_string, self.config)83 self.config.c3_url, options_string)
84 except InvalidSecureIDError as exc:84 except InvalidSecureIDError as exc:
85 print(exc)85 print(exc)
86 return False86 return False
87 with open(self.submission_file) as stream:87 with open(self.submission_file) as stream:
88 try:88 try:
89 # Send the data, reading from the fallback file89 # Send the data, reading from the fallback file
90 result = transport.send(stream)90 result = transport.send(stream, self.config)
91 if 'url' in result:91 if 'url' in result:
92 print("Successfully sent, submission status at {0}".format(92 print("Successfully sent, submission status at {0}".format(
93 result['url']))93 result['url']))

Subscribers

People subscribed via source and target branches