[ADF-4274] Should be able to reassign the removed user when starting a new task. (#4591)

* C305050 automated

* added the api call to delete the tasks created in afterAll() method and also creating a new user and using that in the Tests and deleting the user in the end rather than using 'Super Admin' and reduce the dependency on env configuration.

* linting fixes
This commit is contained in:
gmandakini
2019-04-12 09:25:29 +01:00
committed by Eugenio Romano
parent f258c79f7a
commit 0fe0ee9db7
2 changed files with 58 additions and 5 deletions

View File

@@ -86,6 +86,16 @@ export class TasksService {
return data;
}
async getTaskId(taskName, appName) {
const path = '/' + appName + '/query/v1/tasks';
const method = 'GET';
const queryParams = {name: taskName}, postBody = {};
const data = await this.api.performBpmOperation(path, method, queryParams, postBody);
return data.list.entries[0].entry.id;
}
async createStandaloneSubtask(parentTaskId, appName, name) {
const path = '/' + appName + '/rb/v1/tasks';
const method = 'POST';