Skip to content

Instantly share code, notes, and snippets.

View lloyd's full-sized avatar

Lloyd Hilaiel lloyd

View GitHub Profile
#!/usr/bin/env node
var http = require('http'),
https = require('https'),
httpProxy = require('http-proxy'),
path = require('path'),
fs = require('fs'),
connect = require('connect');
const TARGET = "23.23.21.83";

How to load test persona on EC2

build your environment

Let's create two virtual machines:

$ scripts/deploy.js create loader -t c1.xlarge
... (lots of output) ...
$ scripts/deploy.js create loadee -t c1.xlarge

... (lots of output) ...

$ scripts/run-all.js -p 5 --platform "*" -e dev
adding add-primary-to-primary.js
adding change-password-test.js
ignoring public-terminals.js
adding returning-user.js
adding reset-password-test.js
ignoring remove-email.js
adding health-check-tests.js
adding add-primary-to-secondary.js
adding frontend-qunit-test.js
* In manage account, we need to re-work the logic that decides if a
user can change their password. Why not *always* allow them to
do this? Currently it tries to find out if they have a secondary
address and only displays change password if they do.
* handleState("primary_user") inside state.js - this needs updating in a couple ways.
we need to invalidate cert if issuer doesn't match.
* user.js -- passwordNeededToAddSecondaryEmail - doesn't this go away and get represented in address_info?
* user.js -- getAssertion() - we need to hit addressInfo to determine the type of
the email address.
background/ - all scripts that run in the background
browser_action/ - all crap related to browser actions
pages/ - all pages that are displayed to the user in the main content area (to include preference pages)
infobars/ - all of the infobars we'll dislay (save password, need pin to login, select which username you want to use)
lib/ - third party stuff
images/ - graphics used in various places
common/ - common resources used in multiple contexts (like pin entry)
$ bin/load_gen -s http://toobusy.personatest.org -m 1500000 -o -u 1000/2500
with 1500000 active users there will be:
3.14 signup activites per second
0.63 reset_pass activites per second
1.26 add_email activites per second
2.51 reauth activites per second
140.84 signin activites per second
545.75 include_only activites per second
0.31 change_pass activites per second
generating 5 keypairs to be (re)used during load generation: .....
$ bin/load_gen -s http://toobusy.personatest.org -m 1500000 -o -u 1000/2500
with 1500000 active users there will be:
3.14 signup activites per second
0.63 reset_pass activites per second
1.26 add_email activites per second
2.51 reauth activites per second
140.84 signin activites per second
545.75 include_only activites per second
0.31 change_pass activites per second
generating 5 keypairs to be (re)used during load generation: .....
diff --git a/automation-tests/pages/css.js b/automation-tests/pages/css.js
index ef06ebf..2042671 100644
--- a/automation-tests/pages/css.js
+++ b/automation-tests/pages/css.js
@@ -53,7 +53,7 @@ module.exports = {
createUserButton: 'button#verify_user',
resetPasswordButton: 'button#password_reset',
returningUserButton: 'button.returning',
- verifyWithPrimaryButton: 'button#verifyWithPrimary',
+ verifyWithPrimaryButton: 'body:not(.submit_disabled) button#verifyWithPrimary',
#!/usr/bin/env node
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
var webdriver = require('wd');
browser = webdriver.remote();
browser.on('status', function(info){
#!/usr/bin/env node
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
var webdriver = require('wd');
browser = webdriver.remote();
browser.on('status', function(info){