Merge lp://staging/~pieq/checkbox/fix-1609325-longer-SID into lp://staging/checkbox

Proposed by Pierre Equoy
Status: Merged
Approved by: Maciej Kisielewski
Approved revision: 4461
Merged at revision: 4458
Proposed branch: lp://staging/~pieq/checkbox/fix-1609325-longer-SID
Merge into: lp://staging/checkbox
Diff against target: 2149 lines (+402/-404)
9 files modified
checkbox-ng/checkbox_ng/certification.py (+2/-2)
checkbox-ng/checkbox_ng/commands/newcli.py (+2/-2)
checkbox-ng/checkbox_ng/commands/submit.py (+1/-1)
checkbox-ng/checkbox_ng/test_certification.py (+5/-5)
checkbox-ng/po/checkbox-ng.pot (+69/-121)
plainbox/plainbox/impl/transport.py (+3/-3)
plainbox/po/POTFILES.in (+0/-1)
plainbox/po/plainbox.pot (+318/-267)
tools/canonical-hw-collection/canonical-hw-collection (+2/-2)
To merge this branch: bzr merge lp://staging/~pieq/checkbox/fix-1609325-longer-SID
Reviewer Review Type Date Requested Status
Maciej Kisielewski (community) Approve
Paul Larson Approve
Review via email: mp+301922@code.staging.launchpad.net

Description of the change

Allow Secure IDs of more than 18 chars to be used when submitting to Certification

HEXR now uses Secure IDs (SID) made of 22 alphanumeric characters. However,
most scripts used in Checkbox/Plainbox were expecting 15 or 18 characters.

To test, you can use different ways of submitting:

1. run a launcher pointing to certification-staging to run a test plan, then submit it to staging using an existing SID (you can create some hardware on C3 staging if needed)

The launcher looks like this:

--------------------------------
#!/usr/bin/env checkbox-cli

[launcher]
launcher_version = 1
app_id = 2016.com.ceqa:system-testing
stock_reports = text, submission_files, certification-staging

[ui]
type = interactive

[transport:c3]
secure_id = mXat4w43eMNP3Y2sSdi6oG
--------------------------------

(of course you have to adjust the secure_id to your needs)

2. run the 'checkbox submit' tool (see --help for more info)

3. use the 'canonical-hw-collection' script

To post a comment you must log in.
Revision history for this message
Paul Larson (pwlars) wrote :

regexp confirmed for 15+, looks good. +1

review: Approve
Revision history for this message
Maciej Kisielewski (kissiel) wrote :

There is a unit-test for SECURE_ID in test_certification.py that needs updating.
Update that and I'm +1 :)

review: Needs Fixing
4461. By Pierre Equoy

checkbox-ng: Adapt unit test for longer SID

Revision history for this message
Pierre Equoy (pieq) wrote :

Fixed unit test to only raise exception for SID shorter than 15 chars.

Revision history for this message
Maciej Kisielewski (kissiel) wrote :

+1, let's land it!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches