forked from Alfresco/alfresco-ng2-components
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Change strategy with process cloud e2e and fixes * Change strategy with process cloud e2e and fixes * Fix path and host * improve the config and run the replace for cloud * Use the same name of other scripts * Fix lint * Run the replace in case of cloud * typo * Export variables if needed Fix the check env passing the oauth
- Loading branch information
1 parent
446efe4
commit abb76d9
Showing
26 changed files
with
301 additions
and
282 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ node_modules | |
bundles | ||
workspace.xml | ||
.idea/ | ||
.env.cloud | ||
dist/ | ||
tmp | ||
e2e-output/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// Protractor configuration file, see link for more information | ||
// https://github.com/angular/protractor/blob/master/lib/config.ts | ||
|
||
require('dotenv').config( { path: './e2e/.env.cloud' }); | ||
const fs = require('fs'); | ||
|
||
const BPM_HOST = process.env.URL_HOST_BPM_ADF || "bpm"; | ||
const OAUTH_HOST = process.env.URL_HOST_SSO_ADF || "keycloak"; | ||
const IDENTITY_HOST = process.env.URL_HOST_IDENTITY || "identity"; | ||
const OAUTH_CLIENDID = process.env.OAUTH_CLIENDID || "activiti"; | ||
const AUTH_TYPE = process.env.AUTH_TYPE || "OAUTH"; | ||
const PROVIDERS = process.env.PROVIDERS || "BPM"; | ||
|
||
fs.readFile('./demo-shell/dist/app.config.json', (err, appConfigString) => { | ||
if (err) throw err; | ||
let appConfig = JSON.parse(appConfigString); | ||
appConfig.bpmHost = BPM_HOST; | ||
appConfig.authType = AUTH_TYPE; | ||
appConfig.providers = PROVIDERS; | ||
appConfig.identityHost = IDENTITY_HOST; | ||
appConfig.oauth2.host = OAUTH_HOST; | ||
appConfig.oauth2.clientId = OAUTH_CLIENDID; | ||
|
||
let appConfigReplacedJson = JSON.stringify(appConfig); | ||
fs.writeFileSync('./demo-shell/dist/app.config.json', appConfigReplacedJson); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.