mirror of
https://github.com/ansible/awx.git
synced 2026-01-13 02:50:02 -03:30
use settings when setting up user data
This commit is contained in:
parent
06a7c024fe
commit
dbb9ffbaf4
@ -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])
|
||||
|
||||
@ -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();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user