mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-09-17 14:21:29 +00:00
* Cover the use cases by mocking them * Replace the mock with real stream and remove useless code * Provide new service to fetch groups * Fix group tests * Use the interface and token injection * [AAE-8870] add unit test and mock for new service * Improve roles condifion * initialize the stream as part of NgOnInit to be sure it relies on the correct FormControl instance(input) * Rollback tmp change for roles * [AAE-8641] people abstraction mock * [AAE-8641] revert angular.json changes * [AAE-8641] few conditions and code improvements * [AAE-8641] revert change input controls name * [AAE-8641] initialize the stream as part of ngOnInit * [AAE-8641] people abstraction improvements * [AAE-8870] cherry pick people abstraction * [AAE-8641] fix people-group e2es * fix lint * remove hardcoded identityHost * Use the identityhost api in case of cloud * Solve issue with returnType array string * Rebase and use GroupModel from cloud * Rebase and use GroupModel from cloud * Use the bpmHost instead of identityFor * Add identity ingress for user access service * Rename test * Fix linting issues * Fix playwright storybook e2e for people and group * Trigger travis * Fix people group e2e * improved formatting * Remove not needed travis var override * Remove unused import after rebase * Make roles in filter optional + remove comments Co-authored-by: Tomasz <tomasz.gnyp@hyland.com> Co-authored-by: arditdomi <ardit.domi@hyland.com>
132 lines
3.6 KiB
JavaScript
132 lines
3.6 KiB
JavaScript
/**
|
|
* Contains the default app deployment settings
|
|
* @class config.test.config
|
|
*/
|
|
|
|
require('dotenv').config({path: process.env.ENV_FILE});
|
|
|
|
const HOST = process.env.URL_HOST_ADF;
|
|
|
|
const LOG = process.env.LOG;
|
|
|
|
const HOST_ECM = process.env.PROXY_HOST_ECM || HOST || 'ecm';
|
|
const HOST_BPM = process.env.PROXY_HOST_BPM || HOST || 'bpm';
|
|
|
|
const PROVIDER = process.env.PROVIDER ? process.env.PROVIDER : 'ALL';
|
|
const AUTH_TYPE = process.env.AUTH_TYPE ? process.env.AUTH_TYPE : 'BASIC';
|
|
|
|
const HOST_SSO = process.env.HOST_SSO || process.env.PROXY_HOST_ADF || HOST || 'oauth';
|
|
const IDENTITY_HOST = process.env.IDENTITY_HOST || process.env.HOST_SSO + '/auth/admin/realms/alfresco';
|
|
const OAUTH_CLIENT_ID = process.env.OAUTH_CLIENDID || 'alfresco';
|
|
|
|
const IDENTITY_ADMIN_EMAIL = process.env.IDENTITY_ADMIN_EMAIL || "defaultadmin";
|
|
const IDENTITY_ADMIN_PASSWORD = process.env.IDENTITY_ADMIN_PASSWORD || "defaultadminpassword";
|
|
|
|
const HR_USER = process.env.HR_USER || "hruser";
|
|
const HR_USER_PASSWORD = process.env.HR_USER_PASSWORD || "defaulthruserpassword";
|
|
|
|
const USERNAME_ADF = process.env.USERNAME_ADF || "defaultuser";
|
|
const PASSWORD_ADF = process.env.PASSWORD_ADF || "defaultuserpassword";
|
|
|
|
const USERNAME_SUPER_ADMIN_ADF = process.env.USERNAME_SUPER_ADMIN_ADF || "defaultuser";
|
|
const PASSWORD_SUPER_ADMIN_ADF = process.env.PASSWORD_SUPER_ADMIN_ADF || "defaultuserpassword";
|
|
|
|
const REDIRECT_URI = process.env.REDIRECT_URI || "/";
|
|
const REDIRECT_URI_LOGOUT = process.env.REDIRECT_URI_LOGOUT || "#/logout";
|
|
|
|
const EXTERNAL_ACS_HOST = process.env.EXTERNAL_ACS_HOST;
|
|
const E2E_LOG_LEVEL = process.env.E2E_LOG_LEVEL || 'ERROR';
|
|
|
|
const appConfig = {
|
|
"log": E2E_LOG_LEVEL,
|
|
"ecmHost": HOST_ECM,
|
|
"bpmHost": HOST_BPM,
|
|
"identityHost": `${IDENTITY_HOST}`,
|
|
"provider": PROVIDER,
|
|
"authType": AUTH_TYPE,
|
|
"oauth2": {
|
|
"host": `${HOST_SSO}/auth/realms/alfresco`,
|
|
"clientId": OAUTH_CLIENT_ID,
|
|
"scope": "openid",
|
|
"secret": "",
|
|
"implicitFlow": true,
|
|
"silentLogin": true,
|
|
"redirectUri": REDIRECT_URI,
|
|
"redirectUriLogout": REDIRECT_URI_LOGOUT,
|
|
"redirectSilentIframeUri": `${HOST}/assets/silent-refresh.html`,
|
|
"publicUrls": [
|
|
"**/logout",
|
|
"**/preview/s/*",
|
|
"**/settings"
|
|
]
|
|
}
|
|
};
|
|
|
|
if (LOG) {
|
|
console.log('======= test.config.js hostBPM ====== ');
|
|
console.log('hostBPM : ' + HOST_ECM);
|
|
console.log('hostECM : ' + HOST_BPM);
|
|
console.log('HOST : ' + HOST);
|
|
console.log('USERNAME_ADF : ' + USERNAME_ADF + ' PASSWORD_ADF : ' + PASSWORD_ADF);
|
|
console.log('IDENTITY_ADMIN_EMAIL : ' + IDENTITY_ADMIN_EMAIL + ' IDENTITY_ADMIN_PASSWORD : ' + IDENTITY_ADMIN_PASSWORD);
|
|
}
|
|
|
|
module.exports = {
|
|
|
|
projectName: 'adf',
|
|
|
|
appConfig: appConfig,
|
|
|
|
log: LOG,
|
|
|
|
main: {
|
|
rootPath: __dirname
|
|
},
|
|
|
|
users: {
|
|
|
|
admin: {
|
|
username: USERNAME_ADF,
|
|
password: PASSWORD_ADF
|
|
},
|
|
|
|
superadmin: {
|
|
username: USERNAME_SUPER_ADMIN_ADF,
|
|
password: PASSWORD_SUPER_ADMIN_ADF
|
|
},
|
|
|
|
identityAdmin: {
|
|
username: IDENTITY_ADMIN_EMAIL,
|
|
password: IDENTITY_ADMIN_PASSWORD
|
|
},
|
|
|
|
hrUser: {
|
|
username: HR_USER,
|
|
password: HR_USER_PASSWORD
|
|
},
|
|
|
|
screenshot: {
|
|
username: USERNAME_ADF,
|
|
password: PASSWORD_ADF
|
|
},
|
|
},
|
|
|
|
screenshot: {
|
|
url: HOST_ECM,
|
|
},
|
|
|
|
adf_external_acs: {
|
|
/**
|
|
* @config main.protocol {String}
|
|
*/
|
|
host: EXTERNAL_ACS_HOST,
|
|
},
|
|
|
|
timeouts: {
|
|
visible_timeout: 10000,
|
|
no_visible_timeout: 10000,
|
|
index_search: 20000
|
|
}
|
|
|
|
};
|