From be15b577b02753faaafe661c1bb070f8ba8cfee8 Mon Sep 17 00:00:00 2001 From: Lloyd Hilaiel <lloyd@hilaiel.com> Date: Mon, 16 Apr 2012 12:41:19 -0600 Subject: [PATCH] update loadgen for API changes - all apis which can authenticate a session or issue a cert now require an emphemeral argument - issue #1436 --- lib/load_gen/activities/reset_pass.js | 3 ++- lib/load_gen/activities/signup.js | 3 ++- lib/load_gen/common.js | 5 +++-- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/lib/load_gen/activities/reset_pass.js b/lib/load_gen/activities/reset_pass.js index 945d236bf..ec5d02c6d 100644 --- a/lib/load_gen/activities/reset_pass.js +++ b/lib/load_gen/activities/reset_pass.js @@ -77,7 +77,8 @@ exports.startFunc = function(cfg, cb) { // and simulate clickthrough wcli.post(cfg, '/wsapi/complete_user_creation', context, { token: r.body, - pass: user.password + pass: user.password, + ephemeral: false }, function (err, r) { if (err) { return cb(err); diff --git a/lib/load_gen/activities/signup.js b/lib/load_gen/activities/signup.js index 0b597d088..60b4edb51 100644 --- a/lib/load_gen/activities/signup.js +++ b/lib/load_gen/activities/signup.js @@ -74,7 +74,8 @@ exports.startFunc = function(cfg, cb) { // and simulate clickthrough wcli.post(cfg, '/wsapi/complete_user_creation', context, { token: r.body, - pass: user.password + pass: user.password, + ephemeral: false }, function (err, r) { try { if (err) throw err; diff --git a/lib/load_gen/common.js b/lib/load_gen/common.js index 38feaa886..1808e76f3 100644 --- a/lib/load_gen/common.js +++ b/lib/load_gen/common.js @@ -15,7 +15,7 @@ exports.auth = function(cfg, user, ctx, email, cb) { } else { wcli.post( cfg, '/wsapi/authenticate_user', ctx, - { email: email, pass: user.password }, + { email: email, pass: user.password, ephemeral: false }, function(err, r) { try { if (err) throw err; @@ -41,7 +41,8 @@ exports.authAndKey = function(cfg, user, ctx, email, cb) { // and now let's certify the pubkey wcli.post(cfg, '/wsapi/cert_key', ctx, { email: email, - pubkey: keypair.publicKey.serialize() + pubkey: keypair.publicKey.serialize(), + ephemeral: false }, function(err, resp) { try { if (err) throw err; -- GitLab