Skip to content

Commit

Permalink
Pass useDevEndpoint parameter when importing test toolkit during run-…
Browse files Browse the repository at this point in the history
…alpipeline (#3278)

Co-authored-by: aholstrup1 <aholstrup1@microsoft.com@users.noreply.github.com>
  • Loading branch information
aholstrup1 and aholstrup1 committed Dec 21, 2023
1 parent d24fd0f commit 7da9154
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
10 changes: 10 additions & 0 deletions AppHandling/Run-AlPipeline.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -1313,12 +1313,17 @@ Measure-Command {
"includeTestRunnerOnly" = !$installTestLibraries -and !$installTestFramework -and ($installTestRunner -or $installPerformanceToolkit)
"includePerformanceToolkit" = $installPerformanceToolkit
"doNotUseRuntimePackages" = $true
"useDevEndpoint" = $useDevEndpoint
}
if ($bcAuthContext) {
$Parameters += @{
"bcAuthContext" = $bcAuthContext
"environment" = $environment
}
} elseif($useDevEndpoint) {
$Parameters += @{
"credential" = $credential
}
}
Invoke-Command -ScriptBlock $ImportTestToolkitToBcContainer -ArgumentList $Parameters
} | ForEach-Object { Write-Host -ForegroundColor Yellow "`nImporting Test Toolkit took $([int]$_.TotalSeconds) seconds" }
Expand Down Expand Up @@ -1487,12 +1492,17 @@ Measure-Command {
"includeTestRunnerOnly" = !$installTestLibraries -and !$installTestFramework -and ($installTestRunner -or $installPerformanceToolkit)
"includePerformanceToolkit" = $installPerformanceToolkit
"doNotUseRuntimePackages" = $true
"useDevEndpoint" = $useDevEndpoint
}
if ($bcAuthContext) {
$Parameters += @{
"bcAuthContext" = $bcAuthContext
"environment" = $environment
}
} elseif ($useDevEndpoint) {
$Parameters += @{
"credential" = $credential
}
}
Invoke-Command -ScriptBlock $ImportTestToolkitToBcContainer -ArgumentList $Parameters
$testToolkitInstalled = $true
Expand Down
1 change: 1 addition & 0 deletions ReleaseNotes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Add trusted NuGet feeds to settings to allow searching for NuGet packages in all
Support searching for Earliest, Latest, Exact or Any NuGet package (default is Latest)
Reset startcount when using Restart-BcContainer
Issue 3277 Run-ALCops uses wrong CodeAnalysis dll path
Add support for useDevEndpoint in Run-AlPipeline when importing test toolkit

6.0.3
Just-In-Time install dotnet 8.0.0 for Business Central version 24 or above (needed by alc.exe)
Expand Down

0 comments on commit 7da9154

Please sign in to comment.