Remove the dependency with TestConfig (#4752)

* Remove the dependency with TestConfig

* Change protocol to https

* Trigger the cloud change

* Trigger the cloud change
This commit is contained in:
Maurizio Vitale
2019-05-20 18:11:01 +01:00
committed by Vito
parent cff9bf0930
commit 1141511a07
5 changed files with 12 additions and 11 deletions

View File

@@ -58,9 +58,9 @@ export class TasksService {
}
async claimTask(taskId, appName, assignee: string = global['TestConfig'].adf.adminEmail) {
async claimTask(taskId, appName) {
try {
const path = '/' + appName + '/rb/v1/tasks/' + taskId + `/claim?assignee=${assignee}`;
const path = '/' + appName + '/rb/v1/tasks/' + taskId + `/claim`;
const method = 'POST';
const queryParams = {}, postBody = {};
@@ -86,9 +86,9 @@ export class TasksService {
}
}
async createAndCompleteTask(taskName, appName, assignee: string = global['TestConfig'].adf.adminEmail) {
async createAndCompleteTask(taskName, appName) {
const task = await this.createStandaloneTask(taskName, appName);
await this.claimTask(task.entry.id, appName, assignee);
await this.claimTask(task.entry.id, appName);
await this.completeTask(task.entry.id, appName);
return task;
}

View File

@@ -19,7 +19,7 @@ import * as path from 'path';
import * as fs from 'fs';
import { browser } from 'protractor';
const DEFAULT_ROOT_PATH = global['TestConfig'].main.rootPath;
const DEFAULT_ROOT_PATH = global['TestConfig'] ? global['TestConfig'].main.rootPath : __dirname;
export class FileBrowserUtil {