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:
commit
8c715fc6e1
@ -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}`;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user