Skip to content

Commit

Permalink
release: get rid of pregenerated token (DevExpress#7297)
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreyBelym committed Sep 20, 2022
1 parent d1caacd commit f45a509
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/server/runner-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ const path = require('path');
const { expect } = require('chai');
const fs = require('fs');
const del = require('del');
const { sign: createJWT } = require('jsonwebtoken');
const request = require('request');
const { times, uniqBy } = require('lodash');
const consoleWrapper = require('./helpers/console-wrapper');
Expand Down Expand Up @@ -225,7 +226,8 @@ describe('Runner', () => {
};

before(() => {
process.env.TESTCAFE_DASHBOARD_AUTHENTICATION_TOKEN = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJwcm9qZWN0SWQiOiJ0ZXN0X3Byb2plY3QifQ.5OFxixtZPpIdW6Mc4Fht-9FzYZ9rS_rODLvA1xFftxY';
//TODO: add mocks to get rid of using the real dashboard reporter in unit tests
process.env.TESTCAFE_DASHBOARD_AUTHENTICATION_TOKEN = createJWT({ projectId: 'test_project' }, 'secret');
});

after(() => {
Expand Down

0 comments on commit f45a509

Please sign in to comment.