alfresco-ng2-components/e2e/test.config.js
gmandakini 4376d357ac [ADF-3962] sso download directive automated (#4452)
* sso download directive automated

* temp changes

* temp changes

* moving of services under lib testing and ADF-3962 automated

* removed the browser sleep

* cspell and linting fixes.

* codacy improvements

* export public-api update

* remove circular dep

* remove circular dep

* fixes

* fix user info test

* fix datatable

* random commit

* move other string

* fix lint

* fix lint

* fix prolem type

* fix failing test

* fix tag test

* fix problems after rebase

* fix lint

* remove space

* remove visibility method duplicated
2019-03-27 09:57:26 +00:00

148 lines
3.2 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/**
* Contains the default app deployment settings
* @class config.test.config
*/
const HOST = process.env.URL_HOST_ADF;
const HOST_BPM = process.env.URL_HOST_BPM_ADF;
const HOST_SSO = process.env.URL_HOST_SSO_ADF;
const HOST_IDENTITY = process.env.URL_HOST_IDENTITY;
const USERNAME = process.env.USERNAME_ADF;
const PASSWORD = process.env.PASSWORD_ADF;
const EMAIL = process.env.EMAIL_ADF;
const TIMEOUT = parseInt(process.env.TIMEOUT, 10);
const PROXY = process.env.PROXY_HOST_ADF;
module.exports = {
main: {
timeout: TIMEOUT,
rootPath: __dirname
},
adf: {
/**
* base
*/
url: "http://" + HOST,
/**
* adf port
*/
port: "",
/**
* adf login
*/
login: "/login",
/**
* admin username
*/
adminUser: USERNAME,
/**
* main admin email
*/
adminEmail: EMAIL,
/**
* main admin password
*/
adminPassword: PASSWORD,
hostBPM: "http://" + ( HOST_BPM || PROXY || HOST),
clientIdSso: "alfresco",
hostSso: function () {
let baseUrl;
if (HOST_SSO) {
baseUrl = HOST_SSO;
} else if (PROXY) {
baseUrl = PROXY;
} else {
baseUrl = HOST;
}
return `http://${baseUrl}/auth/realms/alfresco`;
}(),
hostIdentity: function () {
let baseUrl;
if (HOST_IDENTITY) {
baseUrl = HOST_IDENTITY;
} else if (HOST_SSO) {
baseUrl = HOST_SSO;
} else if (PROXY) {
baseUrl = PROXY;
} else {
baseUrl = HOST;
}
return `http://${baseUrl}/auth/admin/realms/alfresco`;
}()
},
adf_acs: {
/**
* The protocol where the app runs.
* @config main.protocol {String}
*/
protocol: "http",
/**
* The protocol where the app runs.
* @config main.protocol {String}
*/
host: HOST,
/**
* * The port where the app runs.
* * @config main.port {String}
* */
port: "",
/**
* The ECM API context required for calls
* @config adf.ACSAPIContextRoot {String}
*/
apiContextRoot: "/alfresco/api/-default-/public",
clientIdSso: "alfresco",
},
adf_aps: {
/**
* The protocol where the app runs.
* @config main.protocol {String}
*/
protocol: "http",
/**
* The host where the app runs.
* @config main.host {String}
*/
host: HOST,
/**
* * The port where the app runs.
* * @config main.port {String}
* */
port: "",
/**
* The BPM API context required for calls
* @config adf.APSAPIContextRoot {String}
*/
apiContextRoot: "/activiti-app",
clientIdSso: "activiti",
}
};