mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
@@ -54,14 +54,15 @@ describe('Attach Folder', () => {
|
|||||||
beforeAll(async () => {
|
beforeAll(async () => {
|
||||||
await this.alfrescoJsApi.login(adminEmail, adminPassword);
|
await this.alfrescoJsApi.login(adminEmail, adminPassword);
|
||||||
user = await users.createTenantAndUser(this.alfrescoJsApi);
|
user = await users.createTenantAndUser(this.alfrescoJsApi);
|
||||||
|
|
||||||
const acsUser = { ...user, id: user.email }; delete acsUser.type; delete acsUser.tenantId;
|
const acsUser = { ...user, id: user.email }; delete acsUser.type; delete acsUser.tenantId;
|
||||||
await this.alfrescoJsApi.core.peopleApi.addPerson(acsUser);
|
await this.alfrescoJsApi.core.peopleApi.addPerson(acsUser);
|
||||||
await integrationService.addCSIntegration({ tenantId: user.tenantId, name: 'adf dev', host: browser.params.testConfig.adf_acs });
|
|
||||||
|
|
||||||
|
await integrationService.addCSIntegration({ tenantId: user.tenantId, name: 'adf dev', host: browser.params.testConfig.adf_acs.host });
|
||||||
await this.alfrescoJsApi.login(user.email, user.password);
|
await this.alfrescoJsApi.login(user.email, user.password);
|
||||||
await applicationService.importPublishDeployApp(app.file_path);
|
await applicationService.importPublishDeployApp(app.file_path);
|
||||||
await loginPage.loginToAllUsingUserModel(user);
|
await loginPage.loginToAllUsingUserModel(user);
|
||||||
});
|
});
|
||||||
|
|
||||||
afterAll(async () => {
|
afterAll(async () => {
|
||||||
await this.alfrescoJsApi.login(adminEmail, adminPassword);
|
await this.alfrescoJsApi.login(adminEmail, adminPassword);
|
||||||
|
@@ -31,8 +31,8 @@ export class IntegrationService {
|
|||||||
alfrescoTenantId: '',
|
alfrescoTenantId: '',
|
||||||
repositoryUrl: `${host}/alfresco`,
|
repositoryUrl: `${host}/alfresco`,
|
||||||
shareUrl: `${host}/share`,
|
shareUrl: `${host}/share`,
|
||||||
version: '4.2',
|
version: '6.1.1',
|
||||||
useShareConnector: false
|
authenticationType: 'basic'
|
||||||
};
|
};
|
||||||
return this.api.activiti.integrationAccountApi.apiClient.callApi('app/rest/integration/alfresco', 'POST',
|
return this.api.activiti.integrationAccountApi.apiClient.callApi('app/rest/integration/alfresco', 'POST',
|
||||||
{}, {}, {}, {}, repository, [], [], Object);
|
{}, {}, {}, {}, repository, [], [], Object);
|
||||||
|
Reference in New Issue
Block a user