From ced186554597c1f71f16ddf455744de7e60a748d Mon Sep 17 00:00:00 2001 From: Kavipriya Adhinarayanan Date: Tue, 25 Jun 2019 16:31:46 +0530 Subject: [PATCH] RFT hard stop --- Tasks/DeployVisualStudioTestAgentV2/DeployTestAgent.ps1 | 7 +------ Tasks/DeployVisualStudioTestAgentV2/task.json | 2 +- Tasks/DeployVisualStudioTestAgentV2/task.loc.json | 2 +- Tasks/RunDistributedTestsV1/RunDistributedTests.ps1 | 7 +------ Tasks/RunDistributedTestsV1/task.json | 2 +- Tasks/RunDistributedTestsV1/task.loc.json | 2 +- 6 files changed, 6 insertions(+), 16 deletions(-) diff --git a/Tasks/DeployVisualStudioTestAgentV2/DeployTestAgent.ps1 b/Tasks/DeployVisualStudioTestAgentV2/DeployTestAgent.ps1 index cee49905c93f..823dd462704e 100644 --- a/Tasks/DeployVisualStudioTestAgentV2/DeployTestAgent.ps1 +++ b/Tasks/DeployVisualStudioTestAgentV2/DeployTestAgent.ps1 @@ -1,12 +1,7 @@ [CmdletBinding()] param() -# Error out unless there is a workaround -$supportrft = Get-VstsTaskVariable -Name 'RFTSupport' -AsBool -if(-not $supportrft) -{ - throw "This task and its companion task (Run Functional Tests) are now not supported. Use the 'Visual Studio Test' task instead. The VSTest task can run unit as well as functional tests. Run tests on one or more agents using the multi-agent phase setting. Use the 'Visual Studio Test Platform' task to run tests without needing Visual Studio on the agent. VSTest task also brings new capabilities such as automatically rerunning failed tests. Visit https://aka.ms/testingwithphases for more information." -} +throw "This task and its companion task (Run Functional Tests) are now not supported. Use the 'Visual Studio Test' task instead. The VSTest task can run unit as well as functional tests. Run tests on one or more agents using the multi-agent phase setting. Use the 'Visual Studio Test Platform' task to run tests without needing Visual Studio on the agent. VSTest task also brings new capabilities such as automatically rerunning failed tests. Visit https://aka.ms/testingwithphases for more information." Trace-VstsEnteringInvocation $MyInvocation Write-Warning "This task and it’s companion task (Run Functional Tests) are now deprecated and will stop working on 10-March-2019. Use the 'Visual Studio Test' task instead. The VSTest task can run unit as well as functional tests. Run tests on one or more agents using the multi-agent phase setting. Use the ‘Visual Studio Test Platform’ task to run tests without needing Visual Studio on the agent. VSTest task also brings new capabilities such as automatically rerunning failed tests. Visit https://aka.ms/testingwithphases for more information." diff --git a/Tasks/DeployVisualStudioTestAgentV2/task.json b/Tasks/DeployVisualStudioTestAgentV2/task.json index 8529ce1fdb68..ee7b746b0f90 100644 --- a/Tasks/DeployVisualStudioTestAgentV2/task.json +++ b/Tasks/DeployVisualStudioTestAgentV2/task.json @@ -13,7 +13,7 @@ "author": "Microsoft Corporation", "version": { "Major": 2, - "Minor": 151, + "Minor": 153, "Patch": 1 }, "deprecated": true, diff --git a/Tasks/DeployVisualStudioTestAgentV2/task.loc.json b/Tasks/DeployVisualStudioTestAgentV2/task.loc.json index 19316dae2e3d..f004a684e306 100644 --- a/Tasks/DeployVisualStudioTestAgentV2/task.loc.json +++ b/Tasks/DeployVisualStudioTestAgentV2/task.loc.json @@ -13,7 +13,7 @@ "author": "Microsoft Corporation", "version": { "Major": 2, - "Minor": 151, + "Minor": 153, "Patch": 1 }, "deprecated": true, diff --git a/Tasks/RunDistributedTestsV1/RunDistributedTests.ps1 b/Tasks/RunDistributedTestsV1/RunDistributedTests.ps1 index 7ac15d821be0..5f98fc06d1bd 100644 --- a/Tasks/RunDistributedTestsV1/RunDistributedTests.ps1 +++ b/Tasks/RunDistributedTestsV1/RunDistributedTests.ps1 @@ -183,12 +183,7 @@ $checkTestAgentCompatScriptLocationMemberExists = CmdletHasMember "CheckTestAge $checkCustomSlicingEnabledMemberExists = CmdletHasMember "CustomSlicingEnabled" $taskContextMemberExists = CmdletHasMember "TaskContext" -# Error out unless there is a workaround -$supportrft = Get-TaskVariable -Context $distributedTaskContext -Name "RFTSupport" -if ($supportrft -notlike 'true') -{ - throw "This task and its companion task (Visual Studio Test Agent Deployment) are now not supported. Use the 'Visual Studio Test' task instead. The VSTest task can run unit as well as functional tests. Run tests on one or more agents using the multi-agent phase setting. Use the 'Visual Studio Test Platform' task to run tests without needing Visual Studio on the agent. VSTest task also brings new capabilities such as automatically rerunning failed tests. Visit https://aka.ms/testingwithphases for more information." -} +throw "This task and its companion task (Visual Studio Test Agent Deployment) are now not supported. Use the 'Visual Studio Test' task instead. The VSTest task can run unit as well as functional tests. Run tests on one or more agents using the multi-agent phase setting. Use the 'Visual Studio Test Platform' task to run tests without needing Visual Studio on the agent. VSTest task also brings new capabilities such as automatically rerunning failed tests. Visit https://aka.ms/testingwithphases for more information." if($overrideRunParams -and $runSettingsFile -and (Test-Path $runSettingsFile)) { diff --git a/Tasks/RunDistributedTestsV1/task.json b/Tasks/RunDistributedTestsV1/task.json index c82c83b985f0..3d775b2eac59 100644 --- a/Tasks/RunDistributedTestsV1/task.json +++ b/Tasks/RunDistributedTestsV1/task.json @@ -13,7 +13,7 @@ "author": "Microsoft Corporation", "version": { "Major": 1, - "Minor": 151, + "Minor": 153, "Patch": 1 }, "deprecated": true, diff --git a/Tasks/RunDistributedTestsV1/task.loc.json b/Tasks/RunDistributedTestsV1/task.loc.json index 007129d98b02..7b95bb306211 100644 --- a/Tasks/RunDistributedTestsV1/task.loc.json +++ b/Tasks/RunDistributedTestsV1/task.loc.json @@ -13,7 +13,7 @@ "author": "Microsoft Corporation", "version": { "Major": 1, - "Minor": 151, + "Minor": 153, "Patch": 1 }, "deprecated": true,