1
0
mirror of https://github.com/ansible/awx.git synced 2024-10-30 22:21:13 +03:00

Merge pull request #3497 from dsesami/e2e_backport_3.5.0

E2E testing: compatibility edit to work with diff versions of node
This commit is contained in:
Michael Abashian 2019-04-24 10:03:53 -04:00 committed by GitHub
commit 8c715fc6e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -20,7 +20,7 @@ const store = {
lastName: `last-admin-${testID}`,
password: `admin-${testID}`,
username: `admin-${testID}`,
usernameDefault: `user-${testID}`,
usernameDefault: `admin-${testID}`,
type: 'administrator',
},
auditor: {
@ -29,7 +29,7 @@ const store = {
lastName: `last-auditor-${testID}`,
password: `auditor-${testID}`,
username: `auditor-${testID}`,
usernameDefault: `user-${testID}`,
usernameDefault: `auditor-${testID}`,
type: 'auditor',
},
user: {
@ -47,7 +47,7 @@ module.exports = {
before: (client, done) => {
// generate a unique username on each attempt.
const uniqueUser = uuid().substr(0, 8);
Object.entries(store).forEach(([key]) => {
Object.keys(store).forEach(key => {
if ('username' in store[key]) {
store[key].username = `${store[key].usernameDefault}-${uniqueUser}`;
}