Skip to content

Instantly share code, notes, and snippets.

@coreylight
Last active July 26, 2021 17:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save coreylight/5e7502ba2262f2a6c19446ccbd1e9f03 to your computer and use it in GitHub Desktop.
Save coreylight/5e7502ba2262f2a6c19446ccbd1e9f03 to your computer and use it in GitHub Desktop.
Mastery auth network test
#!/usr/bin/env node
const { exec } = require('child_process')
console.log('Starting Test. Total approx test time: 1 minute');
exec('npm run test', { cwd: __dirname }, (error, stdout, stderr) => {
if (error) {
console.log(`error: ${error.message}`)
return
}
if (stderr) {
console.log(`stderr: ${stderr}`)
return
}
console.log(`stdout: ${stdout}`)
console.log('Test finished.');
})
{
"name": "mastery-auth",
"version": "0.0.1",
"bin": "./index.js",
"dependencies": {
"artillery": "^1"
},
"scripts": {
"test": "artillery quick --rate 1 -n 10 https://id.clientnonprod.mastermindtms.com/auth/realms/test.sn100.mastermindtms.com/protocol/openid-connect/login-status-iframe.html"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment