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
1=== modified file 'checkbox-ng/checkbox_ng/commands/certification.py'
2--- checkbox-ng/checkbox_ng/commands/certification.py 2014-01-29 15:53:59 +0000
3+++ checkbox-ng/checkbox_ng/commands/certification.py 2014-04-04 21:49:43 +0000
4@@ -80,14 +80,14 @@
5 # Create the transport object
6 try:
7 transport = CertificationTransport(
8- self.config.c3_url, options_string, self.config)
9+ self.config.c3_url, options_string)
10 except InvalidSecureIDError as exc:
11 print(exc)
12 return False
13 with open(self.submission_file) as stream:
14 try:
15 # Send the data, reading from the fallback file
16- result = transport.send(stream)
17+ result = transport.send(stream, self.config)
18 if 'url' in result:
19 print("Successfully sent, submission status at {0}".format(
20 result['url']))

Subscribers

People subscribed via source and target branches