Коммит
132c4b0448
|
@ -98,7 +98,7 @@ function Import-TestToolkitToNavContainer {
|
|||
if (!(Test-Path (Join-Path $serviceTierAddInsFolder "Mock Assemblies"))) {
|
||||
new-item -itemtype symboliclink -path $serviceTierAddInsFolder -name "Mock Assemblies" -value $mockAssembliesPath | Out-Null
|
||||
Set-NavServerInstance $serverInstance -restart
|
||||
while (Get-NavTenant $serverInstance -forcerefresh | Where-Object { $_.State -eq "Mounting" }) {
|
||||
while (Get-NavTenant $serverInstance | Where-Object { $_.State -eq "Mounting" }) {
|
||||
Start-Sleep -Seconds 1
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
0.6.4.20
|
||||
Better error handling in Run-Tests and Get-Tests
|
||||
Issue #755 Sort-AppFoldersByDependencies doesn't support "id" in dependencies
|
||||
Add parameter forceRefresh to Get-NavContainerTenants
|
||||
Wait for tenant ready when restarting service tier in Import-TestToolkitToNavContainer and Setup-NavContainerTestUsers
|
||||
|
||||
0.6.4.19
|
||||
|
|
|
@ -11,11 +11,10 @@
|
|||
function Get-NavContainerTenants {
|
||||
Param (
|
||||
[Parameter(Mandatory=$false)]
|
||||
[string] $containerName = "navserver",
|
||||
[switch] $forceRefresh
|
||||
[string] $containerName = "navserver"
|
||||
)
|
||||
|
||||
Invoke-ScriptInNavContainer -containerName $containerName -ScriptBlock { Param($forceRefresh)
|
||||
Invoke-ScriptInNavContainer -containerName $containerName -ScriptBlock {
|
||||
|
||||
$customConfigFile = Join-Path (Get-Item "C:\Program Files\Microsoft Dynamics NAV\*\Service").FullName "CustomSettings.config"
|
||||
[xml]$customConfig = [System.IO.File]::ReadAllText($customConfigFile)
|
||||
|
@ -23,8 +22,8 @@ function Get-NavContainerTenants {
|
|||
throw "The Container is not setup for multitenancy"
|
||||
}
|
||||
|
||||
Get-NavTenant -ServerInstance $ServerInstance -forceRefresh:$forceRefresh
|
||||
} -argumentList $forceRefresh
|
||||
Get-NavTenant -ServerInstance $ServerInstance
|
||||
}
|
||||
}
|
||||
Set-Alias -Name Get-BCContainerTenants -Value Get-NavContainerTenants
|
||||
Export-ModuleMember -Function Get-NavContainerTenants -Alias Get-BCContainerTenants
|
||||
|
|
|
@ -13,4 +13,4 @@ $credential = [PSCredential]::new("admin", (ConvertTo-SecureString -AsPlainText
|
|||
. (Join-Path $PSScriptRoot '_CreateNavContainer.ps1')
|
||||
. (Join-Path $PSScriptRoot '_CreateBcContainer.ps1')
|
||||
|
||||
. (Join-Path $PSScriptRoot "ObjectHandling.ps1")
|
||||
. (Join-Path $PSScriptRoot "bacpac.ps1")
|
||||
|
|
|
@ -74,7 +74,7 @@ function Setup-NavContainerTestUsers {
|
|||
if (!(Test-Path (Join-Path $serviceTierAddInsFolder "Mock Assemblies"))) {
|
||||
new-item -itemtype symboliclink -path $serviceTierAddInsFolder -name "Mock Assemblies" -value $mockAssembliesPath | Out-Null
|
||||
Set-NavServerInstance $serverInstance -restart
|
||||
while (Get-NavTenant $serverInstance -forcerefresh | Where-Object { $_.State -eq "Mounting" }) {
|
||||
while (Get-NavTenant $serverInstance | Where-Object { $_.State -eq "Mounting" }) {
|
||||
Start-Sleep -Seconds 1
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче