mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-06-16 17:54:59 +00:00
[AAE-11472] - added extra parameter of connectoVariables object
This commit is contained in:
parent
b112664ddf
commit
07a384acba
@ -42,6 +42,7 @@ export interface ConfigArgs {
|
|||||||
scope: string;
|
scope: string;
|
||||||
host: string;
|
host: string;
|
||||||
tag: string;
|
tag: string;
|
||||||
|
connectorVariables: any;
|
||||||
}
|
}
|
||||||
|
|
||||||
export const AAE_MICROSERVICES = [
|
export const AAE_MICROSERVICES = [
|
||||||
@ -378,17 +379,18 @@ async function checkIfAppIsReleased(missingApps: any [], tag?: string) {
|
|||||||
await checkDescriptorExist(currentAbsentApp.name);
|
await checkDescriptorExist(currentAbsentApp.name);
|
||||||
await sleep(TIME);
|
await sleep(TIME);
|
||||||
|
|
||||||
const appInfrastructure = {
|
const appVariables = {
|
||||||
restconnector: currentAbsentApp.infrastructure?.connectors(),
|
connectors: currentAbsentApp.variables.connectors(args.connectorVariables),
|
||||||
bridges: currentAbsentApp.infrastructure?.bridges
|
uis: currentAbsentApp.variables.uis,
|
||||||
};
|
bridges: currentAbsentApp.variables.bridges
|
||||||
|
}
|
||||||
|
|
||||||
const deployPayload = {
|
const deployPayload = {
|
||||||
name: currentAbsentApp.name,
|
name: currentAbsentApp.name,
|
||||||
releaseId: projectRelease.entry.id,
|
releaseId: projectRelease.entry.id,
|
||||||
security: currentAbsentApp.security,
|
security: currentAbsentApp.security,
|
||||||
infrastructure: appInfrastructure,
|
infrastructure: currentAbsentApp.infrastructure,
|
||||||
variables: currentAbsentApp.variables
|
variables: appVariables
|
||||||
};
|
};
|
||||||
await deploy(deployPayload);
|
await deploy(deployPayload);
|
||||||
}
|
}
|
||||||
@ -488,6 +490,7 @@ async function main() {
|
|||||||
.option('--devopsUsername [type]', 'username of a user with role ACTIVIT_DEVOPS')
|
.option('--devopsUsername [type]', 'username of a user with role ACTIVIT_DEVOPS')
|
||||||
.option('--devopsPassword [type]', 'devops password')
|
.option('--devopsPassword [type]', 'devops password')
|
||||||
.option('--tag [type]', 'tag name of the codebase')
|
.option('--tag [type]', 'tag name of the codebase')
|
||||||
|
.option('--connectorsVariables [type]', 'connector variables object')
|
||||||
.parse(process.argv);
|
.parse(process.argv);
|
||||||
|
|
||||||
if (process.argv.includes('-h') || process.argv.includes('--help')) {
|
if (process.argv.includes('-h') || process.argv.includes('--help')) {
|
||||||
@ -508,7 +511,8 @@ async function main() {
|
|||||||
tokenEndpoint: options.tokenEndpoint,
|
tokenEndpoint: options.tokenEndpoint,
|
||||||
scope: options.scope,
|
scope: options.scope,
|
||||||
secret: options.secret,
|
secret: options.secret,
|
||||||
tag: options.tag
|
tag: options.tag,
|
||||||
|
connectorVariables: options.connectorVariables
|
||||||
};
|
};
|
||||||
|
|
||||||
alfrescoJsApiModeler = getAlfrescoJsApiInstance(args);
|
alfrescoJsApiModeler = getAlfrescoJsApiInstance(args);
|
||||||
|
@ -215,6 +215,54 @@ export const ACTIVITI_CLOUD_APPS: any = {
|
|||||||
{ role: 'ACTIVITI_ADMIN', groups: [], users: ['processadminuser'] },
|
{ role: 'ACTIVITI_ADMIN', groups: [], users: ['processadminuser'] },
|
||||||
{ role: 'ACTIVITI_USER', groups: [], users: ['hruser', 'salesuser'] }
|
{ role: 'ACTIVITI_USER', groups: [], users: ['hruser', 'salesuser'] }
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
CONNECTOR_APP: {
|
||||||
|
name: 'connector-regression',
|
||||||
|
file_location: (TAG = 'develop') => `https://github.com/Alfresco/alfresco-ng2-components/blob/${TAG}/e2e/resources/activiti7/connector-regression.zip?raw=true`,
|
||||||
|
processes: {
|
||||||
|
},
|
||||||
|
processesData: {
|
||||||
|
},
|
||||||
|
forms: {
|
||||||
|
},
|
||||||
|
tasks: {
|
||||||
|
},
|
||||||
|
security: [
|
||||||
|
{
|
||||||
|
role: 'ACTIVITI_ADMIN',
|
||||||
|
groups: [],
|
||||||
|
users: ['superadminuser', 'processadminuser']
|
||||||
|
},
|
||||||
|
{
|
||||||
|
role: 'ACTIVITI_USER',
|
||||||
|
groups: ['hr', 'sales', 'testgroup'],
|
||||||
|
users: ['hruser']
|
||||||
|
}
|
||||||
|
],
|
||||||
|
infrastructure: {
|
||||||
|
connectors: {
|
||||||
|
aspose: {},
|
||||||
|
calendar: {},
|
||||||
|
comprehend: {},
|
||||||
|
content: {},
|
||||||
|
'docusign-connector': {},
|
||||||
|
lambda: {},
|
||||||
|
mariadb: {},
|
||||||
|
rekognition: {},
|
||||||
|
rest: {},
|
||||||
|
'salesforce-connector': {},
|
||||||
|
slack: {},
|
||||||
|
teams: {},
|
||||||
|
textract: {},
|
||||||
|
transcribe: {},
|
||||||
|
twilio: {}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
variables: {
|
||||||
|
connectors: (variables: any = {}) => variables,
|
||||||
|
uis: {},
|
||||||
|
bridges: {}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -493,5 +493,63 @@ export const ACTIVITI_CLOUD_APPS = {
|
|||||||
users: ['hruser']
|
users: ['hruser']
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
CONNECTOR_APP: {
|
||||||
|
name: 'simpleapp',
|
||||||
|
file_location:
|
||||||
|
'https://github.com/Alfresco/alfresco-ng2-components/blob/develop/e2e/resources/activiti7/connector-regression.zip?raw=true',
|
||||||
|
processes: {
|
||||||
|
},
|
||||||
|
processesData: {
|
||||||
|
},
|
||||||
|
forms: {
|
||||||
|
},
|
||||||
|
tasks: {
|
||||||
|
},
|
||||||
|
security: [
|
||||||
|
{
|
||||||
|
role: 'ACTIVITI_ADMIN',
|
||||||
|
groups: [],
|
||||||
|
users: ['superadminuser', 'processadminuser']
|
||||||
|
},
|
||||||
|
{
|
||||||
|
role: 'ACTIVITI_USER',
|
||||||
|
groups: ['hr', 'sales', 'testgroup'],
|
||||||
|
users: ['hruser']
|
||||||
|
}
|
||||||
|
],
|
||||||
|
infrastructure: {
|
||||||
|
connectors: {
|
||||||
|
aspose: {},
|
||||||
|
calendar: {},
|
||||||
|
comprehend: {},
|
||||||
|
content: {},
|
||||||
|
'docusign-connector': {},
|
||||||
|
lambda: {},
|
||||||
|
mariadb: {},
|
||||||
|
rekognition: {},
|
||||||
|
rest: {},
|
||||||
|
'salesforce-connector': {},
|
||||||
|
slack: {},
|
||||||
|
teams: {},
|
||||||
|
textract: {},
|
||||||
|
transcribe: {},
|
||||||
|
twilio: {}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
variables: {
|
||||||
|
connectors: () => {},
|
||||||
|
uis: {},
|
||||||
|
bridges: {},
|
||||||
|
'content-service': {
|
||||||
|
storageType: 'site',
|
||||||
|
storageTarget: 'connector-regression',
|
||||||
|
defaultStorageTarget: ''
|
||||||
|
},
|
||||||
|
'identity-service': {},
|
||||||
|
'process-runtime-service': {},
|
||||||
|
'query-service': {},
|
||||||
|
'process-storage-service': {}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user