[ADF-NO-ISSUE] update e2e js-api 3 (#4124)

* update e2e js-api node

* fix protractor import

* use new client

* fix protractor conf comaptibility

* processClient fix

* new js-api

* fix new import

* fix identity call

* fix identity call

* remove aut param

* fix model

* fix model

* increase timeout CS bigFile

* Refactor task details e2e tests

* Fix e2e test

* Rebase branch
This commit is contained in:
Eugenio Romano
2019-03-15 00:06:55 +00:00
committed by GitHub
parent 8126dfc6cb
commit 88870cd4da
107 changed files with 201 additions and 250 deletions
+6 -7
View File
@@ -15,8 +15,9 @@
* limitations under the License.
*/
import AlfrescoApi = require('alfresco-js-api-node');
import { AlfrescoApiCompatibility as AlfrescoApi } from '@alfresco/js-api';
import TestConfig = require('../../test.config');
export class ApiService {
HOST_SSO = TestConfig.adf.hostSso;
@@ -49,7 +50,6 @@ export class ApiService {
async performBpmOperation(path, method, queryParams, postBody) {
const uri = this.HOST_BPM + path;
const pathParams = {}, formParams = {};
const authNames = [];
const contentTypes = ['application/json'];
const accepts = ['application/json'];
@@ -57,8 +57,8 @@ export class ApiService {
'Authorization': 'bearer ' + this.apiService.oauth2Auth.token
};
return this.apiService.bpmClient.callCustomApi(uri, method, pathParams, queryParams, headerParams, formParams, postBody,
authNames, contentTypes, accepts, {})
return this.apiService.processClient.callCustomApi(uri, method, pathParams, queryParams, headerParams, formParams, postBody,
contentTypes, accepts, Object)
.catch((error) => {
throw (error);
});
@@ -67,7 +67,6 @@ export class ApiService {
async performIdentityOperation(path, method, queryParams, postBody) {
const uri = this.HOST_IDENTITY + path;
const pathParams = {}, formParams = {};
const authNames = [];
const contentTypes = ['application/json'];
const accepts = ['application/json'];
@@ -75,8 +74,8 @@ export class ApiService {
'Authorization': 'bearer ' + this.apiService.oauth2Auth.token
};
return this.apiService.bpmClient.callCustomApi(uri, method, pathParams, queryParams, headerParams, formParams, postBody,
authNames, contentTypes, accepts, {})
return this.apiService.processClient.callCustomApi(uri, method, pathParams, queryParams, headerParams, formParams, postBody,
contentTypes, accepts, Object)
.catch((error) => {
throw (error);
});
+1 -1
View File
@@ -25,7 +25,7 @@ import { browser } from 'protractor';
export class AppsActions {
async getProcessTaskId(alfrescoJsApi, processId) {
let taskList = await alfrescoJsApi.activiti.taskApi.listTasks();
let taskList = await alfrescoJsApi.activiti.taskApi.listTasks({});
let taskId = -1;
taskList.data.forEach((task) => {