mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-12 17:04:57 +00:00
* fix e2e * Update notifications-component.e2e.ts * fix e2e * fix e2e * try with interval * Update version-actions.e2e.ts
25 lines
1.0 KiB
JavaScript
25 lines
1.0 KiB
JavaScript
// Protractor configuration file, see link for more information
|
|
// https://github.com/angular/protractor/blob/master/lib/config.ts
|
|
|
|
require('dotenv').config({path: process.env.ENV_FILE});
|
|
const fs = require('fs');
|
|
|
|
const configPath = './demo-shell/dist/app.config.json';
|
|
|
|
fs.readFile(configPath, (err, appConfigString) => {
|
|
if (err) throw err;
|
|
let appConfig = JSON.parse(appConfigString);
|
|
appConfig.providers = process.env.PROVIDERS || 'ALL';
|
|
appConfig.bpmHost = (process.env.PROXY_HOST_ADF || process.env.URL_HOST_BPM_ADF || process.env.URL_HOST_ADF);
|
|
appConfig.ecmHost = (process.env.PROXY_HOST_ADF || process.env.URL_HOST_ADF);
|
|
appConfig.identityHost = process.env.URL_HOST_IDENTITY;
|
|
appConfig.oauth2.host = process.env.URL_HOST_SSO_ADF;
|
|
appConfig.notificationDefaultDuration = process.env.NOTIFICATION_LAST || 8000;
|
|
appConfig.authType = process.env.AUTH_TYPE || 'BASIC';
|
|
|
|
let appConfigReplacedJson = JSON.stringify(appConfig);
|
|
|
|
|
|
fs.writeFileSync(configPath, appConfigReplacedJson);
|
|
});
|