Skip to content

Commit b00469e

Browse files
authored
Users/shreyas r msft/tia fixin135 for135 (#7320)
* resolved stash apply conflict * fixed tia
1 parent 8539935 commit b00469e

File tree

4 files changed

+19
-16
lines changed

4 files changed

+19
-16
lines changed

Tasks/VsTest/inputparser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ function getTestSelectionInputs(inputDataContract : idc.InputDataContract) : idc
103103

104104
function getTfsSpecificSettings(inputDataContract : idc.InputDataContract) : idc.InputDataContract {
105105
inputDataContract.TfsSpecificSettings = <idc.TfsSpecificSettings>{};
106-
inputDataContract.TfsSpecificSettings.DefinitionId = utils.Helper.isNullEmptyOrUndefined(tl.getVariable('Release.DefinitionId')) ? Number(tl.getVariable('System.DefinitionId')) : Number(tl.getVariable('Release.ReleaseId'));
106+
inputDataContract.TfsSpecificSettings.DefinitionId = utils.Helper.isNullEmptyOrUndefined(tl.getVariable('Release.DefinitionId')) ? Number(tl.getVariable('System.DefinitionId')) : Number(tl.getVariable('Release.DefinitionId'));
107107
inputDataContract.TfsSpecificSettings.BuildId = utils.Helper.isNullEmptyOrUndefined(tl.getVariable('Build.Buildid')) ? null : Number(tl.getVariable('Build.Buildid'));
108108
inputDataContract.TfsSpecificSettings.BuildUri = tl.getVariable('Build.BuildUri');
109109
inputDataContract.TfsSpecificSettings.ReleaseId = utils.Helper.isNullEmptyOrUndefined(tl.getVariable('Release.ReleaseId')) ? null : Number(tl.getVariable('Release.ReleaseId'));

Tasks/VsTest/make.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"dest": "./"
77
},
88
{
9-
"url": "https://testexecution.blob.core.windows.net/testexecution/6195043/TestAgent.zip",
9+
"url": "https://testexecution.blob.core.windows.net/testexecution/6255884/TestAgent.zip",
1010
"dest": "./Modules"
1111
},
1212
{

Tasks/VsTest/task.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"version": {
1818
"Major": 2,
1919
"Minor": 136,
20-
"Patch": 0
20+
"Patch": 1
2121
},
2222
"demands": [
2323
"vstest"

Tasks/VsTest/task.loc.json

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"version": {
1818
"Major": 2,
1919
"Minor": 136,
20-
"Patch": 0
20+
"Patch": 1
2121
},
2222
"demands": [
2323
"vstest"
@@ -462,26 +462,29 @@
462462
"visibleRule": "rerunFailedTests = true"
463463
}
464464
],
465-
"sourceDefinitions": [
465+
"dataSourceBindings": [
466466
{
467467
"target": "testPlan",
468-
"endpoint": "/$(system.teamProject)/_apis/test/plans?filterActivePlans=true&api-version=3.0-preview.2",
469-
"selector": "jsonpath:$.value[*].name",
470-
"keySelector": "jsonpath:$.value[*].id",
471-
"authKey": "tfs:teamfoundation"
468+
"endpointId": "tfs:teamfoundation",
469+
"endpointUrl": "{{endpoint.url}}/{{system.teamProject}}/_apis/test/plans?filterActivePlans=true&api-version=3.0-preview.2&$skip={{skip}}&$top=1000",
470+
"resultSelector": "jsonpath:$.value[*]",
471+
"resultTemplate": "{ \"Value\" : \"{{{id}}}\", \"DisplayValue\" : \"{{{id}}} - {{{name}}}\" }",
472+
"callbackContextTemplate": "{\"skip\": \"{{add skip 1000}}\"}",
473+
"callbackRequiredTemplate": "{{isEqualNumber result.count 1000}}",
474+
"initialContextTemplate": "{\"skip\": \"0\"}"
472475
},
473476
{
474477
"target": "testConfiguration",
475-
"endpoint": "/$(system.teamProject)/_apis/test/configurations?api-version=3.0-preview.1",
476-
"selector": "jsonpath:$.value[*].name",
477-
"keySelector": "jsonpath:$.value[*].id",
478-
"authKey": "tfs:teamfoundation"
478+
"endpointId": "tfs:teamfoundation",
479+
"endpointUrl": "{{endpoint.url}}/{{system.teamProject}}/_apis/test/configurations?api-version=3.0-preview.1",
480+
"resultSelector": "jsonpath:$.value[*]",
481+
"resultTemplate": "{ \"Value\" : \"{{{id}}}\", \"DisplayValue\" : \"{{{id}}} - {{{name}}}\" }"
479482
},
480483
{
481484
"target": "testSuite",
482-
"endpoint": "/$(system.teamProject)/_apis/test/plans/$(testPlan)/suites?$asTreeView=true&api-version=3.0-preview.2",
483-
"selector": "jsonpath:$.value[*]",
484-
"authKey": "tfs:teamfoundation"
485+
"endpointId": "tfs:teamfoundation",
486+
"endpointUrl": "{{endpoint.url}}/{{system.teamProject}}/_apis/test/plans/{{testPlan}}/suites?$asTreeView=true&api-version=3.0-preview.2",
487+
"resultSelector": "jsonpath:$.value[*]"
485488
}
486489
],
487490
"instanceNameFormat": "ms-resource:loc.instanceNameFormat",

0 commit comments

Comments
 (0)