Merge lp:~mvo/snappy/snappy-oauth-quoting into lp:~snappy-dev/snappy/snappy-moved-to-github
| Status: | Merged | ||||
|---|---|---|---|---|---|
| Approved by: | Michael Vogt on 2015-06-09 | ||||
| Approved revision: | 490 | ||||
| Merged at revision: | 493 | ||||
| Proposed branch: | lp:~mvo/snappy/snappy-oauth-quoting | ||||
| Merge into: | lp:~snappy-dev/snappy/snappy-moved-to-github | ||||
| Diff against target: |
268 lines (+164/-22) 6 files modified
gen-coverage.sh (+2/-0) oauth/oauth.go (+80/-0) oauth/oauth_test.go (+69/-0) snappy/auth.go (+2/-19) snappy/auth_test.go (+9/-2) snappy/snapp.go (+2/-1) |
||||
| To merge this branch: | bzr merge lp:~mvo/snappy/snappy-oauth-quoting | ||||
| Related bugs: |
|
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Michael Vogt | Approve on 2015-06-09 | ||
| John Lenton | 2015-06-03 | Approve on 2015-06-08 | |
|
Review via email:
|
|||
Commit Message
Fixes the missing oauth quoting and makes the code a bit nicer.
Description of the Change
This branch fixes the missing oauth quoting and (hopefully) makes the code a bit nicer.
We might consider backporting, but it seems that our SSO always hands out tokens that are ascii only we might be ok.
| Michael Vogt (mvo) wrote : | # |
Thanks a lot for the review! Silly me, I removed the obsolete old code that moved into the oauth/ module and improved the length checking (using the byte array now as you suggested).
| Snappy Tarmac (snappydevtarmac) wrote : | # |
The attempt to merge lp:~mvo/snappy/snappy-oauth-quoting into lp:snappy failed. Below is the output from the failed tests.
Checking docs
Checking formatting
Installing godeps
Install golint
Obtaining dependencies
update code.google.
update github.
code.google.
update github.
github.
update github.
github.
update github.
github.
update gopkg.in/check.v1 failed; trying to fetch newer version
github.
update gopkg.in/yaml.v2 failed; trying to fetch newer version
gopkg.in/check.v1 now at 64131543e7896d5
gopkg.in/yaml.v2 now at 49c95bdc2184325
Building
Running tests from /home/tarmac/
=== RUN Test
OK: 16 passed
--- PASS: Test (0.34 seconds)
PASS
coverage: 74.8% of statements
ok launchpad.
=== RUN Test
OK: 6 passed
--- PASS: Test (0.01 seconds)
PASS
coverage: 12.0% of statements
ok launchpad.
=== RUN Test
OK: 24 passed
--- PASS: Test (0.11 seconds)
PASS
coverage: 100.0% of statements
ok launchpad.
=== RUN Test
OK: 49 passed
--- PASS: Test (0.44 seconds)
PASS
coverage: 80.6% of statements
ok launchpad.
=== RUN Test
OK: 6 passed
--- PASS: Test (0.00 seconds)
PASS
coverage: 93.5% of statements
ok launchpad.
=== RUN Test
OK: 38 passed
--- PASS: Test (0.16 seconds)
PASS
coverage: 82.2% of statements
ok launchpad.
=== RUN Test
OK: 3 passed
--- PASS: Test (0.00 seconds)
PASS
coverage: 100.0% of statements
ok launchpad.
=== RUN Test
OK: 12 passed
--- PASS: Test (0.06 seconds)
PASS
coverage: 94.3% of statements
ok launchpad.
=== RUN Test
OK: 3 passed
--- PASS: Test (0.00 seconds)
PASS
coverage: 84.8% of statements
ok launchpad.
=== RUN Test
OK: 4 passed
--- PASS: Test (0.02 seconds)
PASS
coverage: 50.0% of statements
ok launchpad.
=== RUN Test
OK: 6 passed
--- PASS: Test (0.00 seconds)
PASS
coverage: 100.0% of statements
ok launchpad.
=== RUN Test
OK: 257 passed
--- PASS: Test (7.83 seconds)
PASS
coverage: 80.6% of statements
ok launchpad.net/sn...
- 488. By Michael Vogt on 2015-06-09
-
merged lp:snappy
- 489. By Michael Vogt on 2015-06-09
-
oauth/oauth_
test.go: oauth/oauth_ test.go- >gopkg. in/check. v1 - 490. By Michael Vogt on 2015-06-09
-
gen-coverage.sh: add oauth to coverage check


It looks like the “xxx: inefficient algorithm” quote and its associated needsEscape is duplicated.