-
Notifications
You must be signed in to change notification settings - Fork 271
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add node tl feature helper * Fix typescript err * Update changelog * Bump package version * node: Format debug message * powershell: Add Get-PipelineFeature * powershell: Bump version to 0.19.0 * Reset InputFunctions encoding
- Loading branch information
1 parent
f7e477b
commit cc54289
Showing
11 changed files
with
140 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
[CmdletBinding()] | ||
param() | ||
|
||
. $PSScriptRoot\..\lib\Initialize-Test.ps1 | ||
|
||
$featureName = "TestFeature" | ||
$featureVariable = "DISTRIBUTEDTASK_TASKS_TESTFEATURE" | ||
|
||
Invoke-VstsTaskScript -ScriptBlock { | ||
$testInputs = @( | ||
@("true", $true), | ||
@("TRUE", $true), | ||
@("TruE", $true), | ||
@("false", $false), | ||
@("treu", $false), | ||
@("fasle", $false), | ||
@("On", $false), | ||
@("", $false), | ||
@($null, $false) | ||
) | ||
foreach ($testInput in $testInputs) { | ||
$inputValue = $testInput[0] | ||
$expectedValue = $testInput[1] | ||
|
||
Set-Item -Path env:$featureVariable -Value $inputValue | ||
|
||
$result = Get-VstsPipelineFeature -FeatureName $featureName | ||
|
||
try { | ||
Assert-AreEqual -Expected $expectedValue -Actual $result -Message "Suite failed. Input value: '$inputValue'" | ||
} | ||
finally { | ||
${env:$featureVariable} = "" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"version": "0.18.2", | ||
"version": "0.19.0", | ||
"private": true, | ||
"scripts": { | ||
"build": "node make.js build", | ||
|