Last active
July 26, 2021 17:10
-
-
Save coreylight/5e7502ba2262f2a6c19446ccbd1e9f03 to your computer and use it in GitHub Desktop.
Mastery auth network test
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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.'); | |
}) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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