mirror of
https://github.com/ansible/awx.git
synced 2026-03-01 08:48:46 -03:30
use settings when setting up user data
This commit is contained in:
@@ -1,5 +1,7 @@
|
|||||||
import uuid from 'uuid';
|
import uuid from 'uuid';
|
||||||
|
|
||||||
|
import { AWX_E2E_PASSWORD } from './settings';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
all,
|
all,
|
||||||
get,
|
get,
|
||||||
@@ -231,7 +233,7 @@ const getAuditor = (namespace = session) => getOrganization(namespace)
|
|||||||
email: 'null@ansible.com',
|
email: 'null@ansible.com',
|
||||||
is_superuser: false,
|
is_superuser: false,
|
||||||
is_system_auditor: true,
|
is_system_auditor: true,
|
||||||
password: 'password'
|
password: AWX_E2E_PASSWORD
|
||||||
}));
|
}));
|
||||||
|
|
||||||
const getUser = (namespace = session) => getOrganization(namespace)
|
const getUser = (namespace = session) => getOrganization(namespace)
|
||||||
@@ -243,7 +245,7 @@ const getUser = (namespace = session) => getOrganization(namespace)
|
|||||||
email: 'null@ansible.com',
|
email: 'null@ansible.com',
|
||||||
is_superuser: false,
|
is_superuser: false,
|
||||||
is_system_auditor: false,
|
is_system_auditor: false,
|
||||||
password: 'password'
|
password: AWX_E2E_PASSWORD
|
||||||
}));
|
}));
|
||||||
|
|
||||||
const getJobTemplateAdmin = (namespace = session) => {
|
const getJobTemplateAdmin = (namespace = session) => {
|
||||||
@@ -259,7 +261,7 @@ const getJobTemplateAdmin = (namespace = session) => {
|
|||||||
email: 'null@ansible.com',
|
email: 'null@ansible.com',
|
||||||
is_superuser: false,
|
is_superuser: false,
|
||||||
is_system_auditor: false,
|
is_system_auditor: false,
|
||||||
password: 'password'
|
password: AWX_E2E_PASSWORD
|
||||||
}));
|
}));
|
||||||
|
|
||||||
const assignRolePromise = Promise.all([userPromise, rolePromise])
|
const assignRolePromise = Promise.all([userPromise, rolePromise])
|
||||||
|
|||||||
@@ -63,7 +63,7 @@ module.exports = {
|
|||||||
inventories = client.page.inventories();
|
inventories = client.page.inventories();
|
||||||
teams = client.page.teams();
|
teams = client.page.teams();
|
||||||
|
|
||||||
client.login(data.auditor.username, data.auditor.password);
|
client.login(data.auditor.username);
|
||||||
client.waitForAngular();
|
client.waitForAngular();
|
||||||
|
|
||||||
done();
|
done();
|
||||||
|
|||||||
Reference in New Issue
Block a user