Skip to content

Commit

Permalink
Migrate to node10 for AppCenterTestV1 (#16597)
Browse files Browse the repository at this point in the history
Co-authored-by: Andrey Ivanov <v-andivanov@microsoft.com>
Co-authored-by: Evgenii Utkin <evutkin@microsoft.com>
  • Loading branch information
3 people authored Jul 15, 2022
1 parent 0ee7b4d commit 1fb35c7
Show file tree
Hide file tree
Showing 14 changed files with 887 additions and 617 deletions.
2 changes: 1 addition & 1 deletion Tasks/AppCenterTestV1/Tests/L0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import * as path from 'path';
import * as assert from 'assert';
import * as ttm from 'vsts-task-lib/mock-test';
import * as ttm from 'azure-pipelines-task-lib/mock-test';

describe('AppCenterTest L0 Suite', function () {
before(function () {
Expand Down
4 changes: 2 additions & 2 deletions Tasks/AppCenterTestV1/Tests/L0AppiumPass.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

import ma = require('vsts-task-lib/mock-answer');
import tmrm = require('vsts-task-lib/mock-run');
import ma = require('azure-pipelines-task-lib/mock-answer');
import tmrm = require('azure-pipelines-task-lib/mock-run');
import path = require('path');

let taskPath = path.join(__dirname, '..', 'appcentertest.js');
Expand Down
4 changes: 2 additions & 2 deletions Tasks/AppCenterTestV1/Tests/L0CXCUITestPass.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

import ma = require('vsts-task-lib/mock-answer');
import tmrm = require('vsts-task-lib/mock-run');
import ma = require('azure-pipelines-task-lib/mock-answer');
import tmrm = require('azure-pipelines-task-lib/mock-run');
import path = require('path');

let taskPath = path.join(__dirname, '..', 'appcentertest.js');
Expand Down
4 changes: 2 additions & 2 deletions Tasks/AppCenterTestV1/Tests/L0CalabashPass.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

import ma = require('vsts-task-lib/mock-answer');
import tmrm = require('vsts-task-lib/mock-run');
import ma = require('azure-pipelines-task-lib/mock-answer');
import tmrm = require('azure-pipelines-task-lib/mock-run');
import path = require('path');

let taskPath = path.join(__dirname, '..', 'appcentertest.js');
Expand Down
4 changes: 2 additions & 2 deletions Tasks/AppCenterTestV1/Tests/L0EspressoPass.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

import ma = require('vsts-task-lib/mock-answer');
import tmrm = require('vsts-task-lib/mock-run');
import ma = require('azure-pipelines-task-lib/mock-answer');
import tmrm = require('azure-pipelines-task-lib/mock-run');
import path = require('path');

let taskPath = path.join(__dirname, '..', 'appcentertest.js');
Expand Down
4 changes: 2 additions & 2 deletions Tasks/AppCenterTestV1/Tests/L0FavorSystemToolPath.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

import ma = require('vsts-task-lib/mock-answer');
import tmrm = require('vsts-task-lib/mock-run');
import ma = require('azure-pipelines-task-lib/mock-answer');
import tmrm = require('azure-pipelines-task-lib/mock-run');
import path = require('path');

let taskPath = path.join(__dirname, '..', 'appcentertest.js');
Expand Down
4 changes: 2 additions & 2 deletions Tasks/AppCenterTestV1/Tests/L0UITestFailRun.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

import ma = require('vsts-task-lib/mock-answer');
import tmrm = require('vsts-task-lib/mock-run');
import ma = require('azure-pipelines-task-lib/mock-answer');
import tmrm = require('azure-pipelines-task-lib/mock-run');
import path = require('path');

let taskPath = path.join(__dirname, '..', 'appcentertest.js');
Expand Down
4 changes: 2 additions & 2 deletions Tasks/AppCenterTestV1/Tests/L0UITestPass.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

import ma = require('vsts-task-lib/mock-answer');
import tmrm = require('vsts-task-lib/mock-run');
import ma = require('azure-pipelines-task-lib/mock-answer');
import tmrm = require('azure-pipelines-task-lib/mock-run');
import path = require('path');

let taskPath = path.join(__dirname, '..', 'appcentertest.js');
Expand Down
10 changes: 5 additions & 5 deletions Tasks/AppCenterTestV1/appcentertest.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import path = require('path');
import tl = require('vsts-task-lib/task');
import apim = require('vso-node-api');
import * as lim from 'vso-node-api/interfaces/LocationsInterfaces';
import tl = require('azure-pipelines-task-lib/task');
import apim = require('azure-devops-node-api');
import * as lim from 'azure-devops-node-api/interfaces/LocationsInterfaces';
import os = require('os');

import { ToolRunner } from 'vsts-task-lib/toolrunner';
import { ToolRunner } from 'azure-pipelines-task-lib/toolrunner';

var utils = require('./utils.js');

Expand Down Expand Up @@ -209,7 +209,7 @@ async function setTestRunIdBuildPropertyAsync(testRunId: string) {
let auth = token.length == 52 ? apim.getPersonalAccessTokenHandler(token) : apim.getBearerHandler(token);
let vsts: apim.WebApi = new apim.WebApi(url, auth);
let conn: lim.ConnectionData = await vsts.connect();
let buildApi = vsts.getBuildApi();
let buildApi = await vsts.getBuildApi();

let patch = [
{
Expand Down
Loading

0 comments on commit 1fb35c7

Please sign in to comment.