Skip to content

Commit

Permalink
use serverconfig auth value for hash
Browse files Browse the repository at this point in the history
  • Loading branch information
JavonDavis committed Apr 9, 2019
1 parent 1f9b193 commit 4eb75bc
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions __device-tests__/helpers/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,11 +111,9 @@ const setupDriver = async () => {
const stopDriver = async ( driver: wd.PromiseChainWebdriver ) => {
if ( ! isLocalEnvironment() ) {
const jobID = driver.sessionID;
const username = process.env.SAUCE_USERNAME;
const accessKey = process.env.SAUCE_ACCESS_KEY;

const hash = crypto.createHmac( 'md5', jobID )
.update( `${ username }:${ accessKey }` )
.update( serverConfigs.sauce.auth )
.digest( 'hex' );
const jobURL = `https://saucelabs.com/jobs/${ jobID }?auth=${ hash }.`;
// eslint-disable-next-line no-console
Expand Down

0 comments on commit 4eb75bc

Please sign in to comment.