Skip to content

Commit

Permalink
Update Test Execution package (#7563)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nitin Gurram authored Jun 26, 2018
1 parent 1d75fa8 commit a893573
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
1 change: 1 addition & 0 deletions Tasks/VsTestV2/inputdatacontract.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
export interface InputDataContract {
AgentName : string;
AccessToken : string;
AccessTokenType: string;
CollectionUri : string;
RunIdentifier : string;
TeamProject : string;
Expand Down
2 changes: 2 additions & 0 deletions Tasks/VsTestV2/inputparser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ export function parseInputsForDistributedTestRun() : idc.InputDataContract {
inputDataContract.TeamProject = tl.getVariable('System.TeamProject');
inputDataContract.CollectionUri = tl.getVariable('System.TeamFoundationCollectionUri');
inputDataContract.AgentName = tl.getVariable('Agent.MachineName') + '-' + tl.getVariable('Agent.Name') + '-' + tl.getVariable('Agent.Id');
inputDataContract.AccessTokenType = 'jwt';
inputDataContract.RunIdentifier = getRunIdentifier();

logWarningForWER(tl.getBoolInput('uiTests'));
Expand All @@ -57,6 +58,7 @@ export function parseInputsForNonDistributedTestRun() : idc.InputDataContract {
inputDataContract.TeamProject = tl.getVariable('System.TeamProject');
inputDataContract.CollectionUri = tl.getVariable('System.TeamFoundationCollectionUri');
inputDataContract.AccessToken = tl.getEndpointAuthorization('SystemVssConnection', true).parameters.AccessToken;
inputDataContract.AccessTokenType = 'jwt';
inputDataContract.AgentName = tl.getVariable('Agent.MachineName') + '-' + tl.getVariable('Agent.Name') + '-' + tl.getVariable('Agent.Id');
inputDataContract.RunIdentifier = getRunIdentifier();

Expand Down
4 changes: 2 additions & 2 deletions Tasks/VsTestV2/make.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
"externals": {
"archivePackages": [
{
"url": "https://testselectorv2.blob.core.windows.net/testselector/6409782/TestSelector.zip",
"url": "https://testselectorv2.blob.core.windows.net/testselector/6508861/TestSelector.zip",
"dest": "./"
},
{
"url": "https://testexecution.blob.core.windows.net/testexecution/6409782/TestAgent.zip",
"url": "https://testexecution.blob.core.windows.net/testexecution/6508861/TestAgent.zip",
"dest": "./Modules"
},
{
Expand Down
2 changes: 1 addition & 1 deletion Tasks/VsTestV2/task.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"version": {
"Major": 2,
"Minor": 137,
"Patch": 4
"Patch": 5
},
"demands": [
"vstest"
Expand Down
4 changes: 2 additions & 2 deletions Tasks/VsTestV2/task.loc.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"version": {
"Major": 2,
"Minor": 137,
"Patch": 4
"Patch": 5
},
"demands": [
"vstest"
Expand Down Expand Up @@ -590,4 +590,4 @@
"VsTestVersionEmpty": "ms-resource:loc.messages.VsTestVersionEmpty",
"UserProvidedSourceFilter": "ms-resource:loc.messages.UserProvidedSourceFilter"
}
}
}

0 comments on commit a893573

Please sign in to comment.