зеркало из https://github.com/mozilla/pjs.git
Bug 744614 - Make token server client conform with spec change; r=rnewman
This commit is contained in:
Родитель
cc3b53b3db
Коммит
1afc1f104d
|
@ -25,7 +25,7 @@ add_test(function test_working_bid_exchange() {
|
|||
|
||||
let body = JSON.stringify({
|
||||
id: "id",
|
||||
secret: "key",
|
||||
key: "key",
|
||||
api_endpoint: service,
|
||||
uid: "uid",
|
||||
});
|
||||
|
@ -148,7 +148,7 @@ add_test(function test_rich_media_types() {
|
|||
|
||||
let body = JSON.stringify({
|
||||
id: "id",
|
||||
secret: "key",
|
||||
key: "key",
|
||||
api_endpoint: "foo",
|
||||
uid: "uid",
|
||||
});
|
||||
|
|
|
@ -216,7 +216,7 @@ TokenServerClient.prototype = {
|
|||
return;
|
||||
}
|
||||
|
||||
for each (let k in ["id", "secret", "api_endpoint", "uid"]) {
|
||||
for each (let k in ["id", "key", "api_endpoint", "uid"]) {
|
||||
if (!(k in result)) {
|
||||
let error = new TokenServerClientServerError("Expected key not " +
|
||||
" present in result: " +
|
||||
|
@ -230,7 +230,7 @@ TokenServerClient.prototype = {
|
|||
this._log.debug("Successful token response: " + result.id);
|
||||
cb(null, {
|
||||
id: result.id,
|
||||
key: result.secret,
|
||||
key: result.key,
|
||||
endpoint: result.api_endpoint,
|
||||
uid: result.uid,
|
||||
});
|
||||
|
|
Загрузка…
Ссылка в новой задаче