oauth: Fix tests. Twitter API tolerates the extra ``/`` at the end of ``twitter.com``, so leave it in.
parent
03b7e67547
commit
9710013460
|
@ -1,21 +1,21 @@
|
||||||
USING: oauth oauth.private tools.test accessors kernel assocs
|
USING: oauth oauth.private tools.test accessors kernel assocs
|
||||||
strings namespaces ;
|
strings namespaces urls ;
|
||||||
IN: oauth.tests
|
IN: oauth.tests
|
||||||
|
|
||||||
[ "%26&b" ] [ "&" "b" hmac-key ] unit-test
|
[ "%26&b" ] [ "&" "b" hmac-key ] unit-test
|
||||||
[ "%26&" ] [ "&" f hmac-key ] unit-test
|
[ "%26&" ] [ "&" f hmac-key ] unit-test
|
||||||
|
|
||||||
[ "B&http%3A%2F%2Ftwitter.com&a%3Db" ] [
|
[ "B&http%3A%2F%2Ftwitter.com%2F&a%3Db" ] [
|
||||||
"http://twitter.com"
|
URL" http://twitter.com"
|
||||||
"B"
|
"B"
|
||||||
{ { "a" "b" } }
|
{ { "a" "b" } }
|
||||||
signature-base-string
|
signature-base-string
|
||||||
] unit-test
|
] unit-test
|
||||||
|
|
||||||
[ "Z5tUa83q43qiy6dGGCb92bN/4ik=" ] [
|
[ "0EieqbHx0FJ/RtFskmRj9/TDpqo=" ] [
|
||||||
"ABC" "DEF" <token> consumer-token set
|
"ABC" "DEF" <token> consumer-token set
|
||||||
|
|
||||||
"http://twitter.com"
|
URL" http://twitter.com"
|
||||||
<request-token-params>
|
<request-token-params>
|
||||||
12345 >>timestamp
|
12345 >>timestamp
|
||||||
54321 >>nonce
|
54321 >>nonce
|
||||||
|
|
Loading…
Reference in New Issue