Remove useless properties (#6462)

This commit is contained in:
Maurizio Vitale
2021-02-24 13:38:58 +00:00
committed by GitHub
parent e8173ebb34
commit 3fd2f22fed
2 changed files with 3 additions and 7 deletions

View File

@@ -40,7 +40,6 @@ export interface ConfigArgs {
devopsPassword: string;
clientId: string;
host: string;
oauth: string;
identityHost: boolean;
}
@@ -226,11 +225,10 @@ function deploy(model: any) {
function getAlfrescoJsApiInstance(configArgs: ConfigArgs) {
const config = {
provider: 'BPM',
hostEcm: `${configArgs.host}`,
hostBpm: `${configArgs.host}`,
authType: 'OAUTH',
oauth2: {
host: `${configArgs.oauth}/auth/realms/alfresco`,
host: `${configArgs.host}/auth/realms/alfresco`,
clientId: `${configArgs.clientId}`,
scope: 'openid',
secret: '',
@@ -422,10 +420,8 @@ async function main(configArgs: ConfigArgs) {
program
.version('0.1.0')
.description('The following command is in charge of Initializing the activiti cloud env with the default apps' +
'adf-cli init-aae-env --host "gateway_env" --oauth "identity_env" --modelerUsername "modelerusername" --modelerPassword "modelerpassword" --devopsUsername "devevopsusername" --devopsPassword "devopspassword"')
'adf-cli init-aae-env --host "gateway_env" --modelerUsername "modelerusername" --modelerPassword "modelerpassword" --devopsUsername "devevopsusername" --devopsPassword "devopspassword"')
.option('-h, --host [type]', 'Host gateway')
.option('-o, --oauth [type]', 'Host sso server')
.option('-jsonAppsPath, --oauth [type]', 'Host sso server')
.option('--clientId [type]', 'sso client')
.option('--modelerUsername [type]', 'username of a user with role ACTIVIT_MODELER')
.option('--modelerPassword [type]', 'modeler password')

View File

@@ -6,4 +6,4 @@ cd $DIR/../../../
echo "====== Check PS Cloud UP ====="
./node_modules/@alfresco/adf-cli/bin/adf-cli init-aae-env --host "$E2E_HOST" --oauth "$HOST_SSO" --modelerUsername "$E2E_MODELER_USERNAME" --modelerPassword "$E2E_MODELER_PASSWORD" --devopsUsername "$E2E_DEVOPS_USERNAME" --devopsPassword "$E2E_DEVOPS_PASSWORD" --clientId 'alfresco' || exit 1
./node_modules/@alfresco/adf-cli/bin/adf-cli init-aae-env --host "$E2E_HOST" --modelerUsername "$E2E_MODELER_USERNAME" --modelerPassword "$E2E_MODELER_PASSWORD" --devopsUsername "$E2E_DEVOPS_USERNAME" --devopsPassword "$E2E_DEVOPS_PASSWORD" --clientId 'alfresco' || exit 1