Skip to content

Commit

Permalink
basic-auth fix
Browse files Browse the repository at this point in the history
  • Loading branch information
DrMegavolt committed Aug 15, 2017
1 parent 34d6900 commit cd6ffcd
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion test/common/cli.helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ module.exports.runCLICommand = function ({adminPort, adminUrl, configDirectoryPa
cliExecOptions.env.EG_CONFIG_DIR = configDirectoryPath;
cliExecOptions.env.EG_ADMIN_URL = adminUrl || `http://localhost:${adminPort}`;
const command = [modulePath].concat(cliArgs).join(' ');
console.log(command);
return new Promise((resolve, reject) => {
exec(command, cliExecOptions, (err, stdout, stderr) => {
if (err) {
Expand Down
4 changes: 1 addition & 3 deletions test/e2e/basic-auth.e2e.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,9 @@ describe('E2E: basic-auth Policy', () => {
configDirectoryPath});
}).then(newUser => {
return cliHelper.runCLICommand({
cliArgs: ['credentials create -t basic-auth -p "scopes=authorizedScope" -p "password=pass" -c ', newUser.id],
cliArgs: ['credentials create -t basic-auth -p "scopes=authorizedScope" -p "password=pass" -c ', username],
adminPort,
configDirectoryPath});
}).then(cred => {
console.log(cred);
});
});

Expand Down

0 comments on commit cd6ffcd

Please sign in to comment.