use settings when setting up user data

This commit is contained in:
Jake McDermott
2017-11-29 17:45:25 -05:00
parent 06a7c024fe
commit dbb9ffbaf4
2 changed files with 6 additions and 4 deletions

View File

@@ -1,5 +1,7 @@
import uuid from 'uuid';
import { AWX_E2E_PASSWORD } from './settings';
import {
all,
get,
@@ -231,7 +233,7 @@ const getAuditor = (namespace = session) => getOrganization(namespace)
email: 'null@ansible.com',
is_superuser: false,
is_system_auditor: true,
password: 'password'
password: AWX_E2E_PASSWORD
}));
const getUser = (namespace = session) => getOrganization(namespace)
@@ -243,7 +245,7 @@ const getUser = (namespace = session) => getOrganization(namespace)
email: 'null@ansible.com',
is_superuser: false,
is_system_auditor: false,
password: 'password'
password: AWX_E2E_PASSWORD
}));
const getJobTemplateAdmin = (namespace = session) => {
@@ -259,7 +261,7 @@ const getJobTemplateAdmin = (namespace = session) => {
email: 'null@ansible.com',
is_superuser: false,
is_system_auditor: false,
password: 'password'
password: AWX_E2E_PASSWORD
}));
const assignRolePromise = Promise.all([userPromise, rolePromise])

View File

@@ -63,7 +63,7 @@ module.exports = {
inventories = client.page.inventories();
teams = client.page.teams();
client.login(data.auditor.username, data.auditor.password);
client.login(data.auditor.username);
client.waitForAngular();
done();