mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-4948] Move the resources config in the process cloud lib - Part 2 (#5143)
* Move the resources in the cloud lib * Use adf cli * Add missing process definitions * Add debug points * Print new class * Use the resources under the adf-testing * Use the resources from testing package * Fix adf-testing bugs * remove empty row * Remove the npm install * Remove log stuff * Remove the console log * Fix typo on process def names Improve the debug e2e command * Fix lowercase name * Check the process cloud env and content env * Add the new process definitions * Add missing process definitions * Use the latest simpleapp * Rollback the bigFile * Use relative link * Trasnpile the adf-testing before using it
This commit is contained in:
committed by
Eugenio Romano
parent
ee5c90871a
commit
941df740d5
@@ -18,6 +18,8 @@
|
||||
*/
|
||||
|
||||
import { logging } from '@angular-devkit/core';
|
||||
import { ACTIVITI_CLOUD_APPS } from '@alfresco/adf-testing';
|
||||
|
||||
/* tslint:disable */
|
||||
const alfrescoApi = require('@alfresco/js-api');
|
||||
/* tslint:enable */
|
||||
@@ -27,59 +29,12 @@ import * as fs from 'fs';
|
||||
export interface ConfigArgs {
|
||||
username: string;
|
||||
password: string;
|
||||
clientId: string;
|
||||
host: string;
|
||||
oauth: string;
|
||||
identityHost: boolean;
|
||||
}
|
||||
|
||||
const ACTIVITI_CLOUD_APPS: any = {
|
||||
CANDIDATE_BASE_APP: {
|
||||
name: 'candidatebaseapp',
|
||||
file_location: 'https://github.com/Alfresco/alfresco-ng2-components/blob/development/e2e/resources/activiti7/candidatebaseapp.zip?raw=true',
|
||||
processes: {
|
||||
candidateUserProcess: 'candidateUserProcess',
|
||||
candidateGroupProcess: 'candidateGroupProcess',
|
||||
anotherCandidateGroupProcess: 'anotherCandidateGroupProcess',
|
||||
uploadFileProcess: 'uploadFileProcess'
|
||||
},
|
||||
security: [
|
||||
{'role': 'APS_ADMIN', 'groups': [], 'users': ['superadminuser']},
|
||||
{'role': 'APS_USER', 'groups': ['hr', 'testgroup'], 'users': ['hruser']
|
||||
}]
|
||||
},
|
||||
SIMPLE_APP: {
|
||||
name: 'simpleapp',
|
||||
file_location: 'https://github.com/Alfresco/alfresco-ng2-components/blob/development/e2e/resources/activiti7/simpleapp.zip?raw=true',
|
||||
processes: {
|
||||
processwithvariables: 'processwithvariables',
|
||||
simpleProcess: 'simpleprocess',
|
||||
dropdownrestprocess: 'dropdownrestprocess'
|
||||
},
|
||||
forms: {
|
||||
tabVisibilityFields: {
|
||||
name: 'tabvisibilitywithfields',
|
||||
id: 'form-26b01063-4fb0-455f-b3ba-90172e013678'
|
||||
},
|
||||
tabVisibilityVars: {
|
||||
name: 'tabvisibilitywithvars',
|
||||
id: 'form-7bf363d2-83c9-4b00-853e-373d0d59963c'
|
||||
}
|
||||
},
|
||||
security: [
|
||||
{'role': 'APS_ADMIN', 'groups': [], 'users': ['superadminuser']},
|
||||
{'role': 'APS_USER', 'groups': ['hr', 'testgroup'], 'users': ['hruser']
|
||||
}]
|
||||
},
|
||||
SUB_PROCESS_APP: {
|
||||
name: 'subprocessapp',
|
||||
file_location: 'https://github.com/Alfresco/alfresco-ng2-components/blob/development/e2e/resources/activiti7/subprocessapp.zip?raw=true',
|
||||
security: [
|
||||
{'role': 'APS_ADMIN', 'groups': [], 'users': ['superadminuser']},
|
||||
{'role': 'APS_USER', 'groups': ['hr', 'testgroup'], 'users': ['hruser']
|
||||
}]
|
||||
}
|
||||
};
|
||||
|
||||
async function getDeployedApplicationsByStatus(args: ConfigArgs, apiService: any, status: string, logger: logging.Logger) {
|
||||
const url = `${args.host}/deployment-service/v1/applications`;
|
||||
|
||||
@@ -106,7 +61,7 @@ function getAlfrescoJsApiInstance(args: ConfigArgs) {
|
||||
authType: 'OAUTH',
|
||||
oauth2: {
|
||||
host: `${args.oauth}`,
|
||||
clientId: 'activiti',
|
||||
clientId: `${args.clientId}`,
|
||||
scope: 'openid',
|
||||
secret: '',
|
||||
implicitFlow: false,
|
||||
|
Reference in New Issue
Block a user