This commit is contained in:
Freddy Kristiansen 2019-08-18 18:04:28 +02:00
Родитель 52c698fa40
Коммит 2e87bfcc22
1 изменённых файлов: 7 добавлений и 37 удалений

Просмотреть файл

@ -167,53 +167,23 @@
$alProjectFolder = Join-Path $bcContainerPath "mybaseapp"
Create-AlProjectFolderFromBcContainer -containerName $bcContainerName `
-alProjectFolder $alProjectFolder `
-useBaseAppProperties `
-id ([Guid]::NewGuid().ToString()) `
-name MyBaseApp `
-publisher Freddy `
-version "1.0.0.0" `
-useBaseLine `
-alFileStructure $TypeFolders
(Get-ChildItem -Path (Join-Path $bcContainerPath "mybaseapp") -Recurse).Count | Should -BeGreaterThan 5000
}
It 'Compile BaseApp' {
It 'Compile/Publish-NewApplicationToBcContainer' {
$alProjectFolder = Join-Path $bcContainerPath "mybaseapp"
$appFile = Compile-AppInBCContainer -containerName $bcContainerName `
-appProjectFolder $alProjectFolder `
-appOutputFolder $alProjectFolder `
-credential $credential `
-updateSymbols
$appFile | Should -Exist
}
It 'Publish-NewApplicationToBcContainer (restore Apps=Yes)' {
$alProjectFolder = Join-Path $bcContainerPath "mybaseapp"
Publish-NewApplicationToBcContainer -containerName $bcContainerName `
-appFile $appFile `
-credential $credential `
-useCleanDatabase `
-SaveData `
-doNotUseDevEndpoint `
-restoreApps Yes
}
It 'Publish-NewApplicationToBcContainer (restore Apps=Runtime)' {
$alProjectFolder = Join-Path $bcContainerPath "mybaseapp"
Publish-NewApplicationToBcContainer -containerName $bcContainerName `
-appFile $appFile `
-credential $credential `
-useCleanDatabase `
-SaveData `
-doNotUseDevEndpoint `
-restoreApps AsRuntimePackages
}
It 'Publish-NewApplicationToBcContainer (restore Apps=No)' {
$alProjectFolder = Join-Path $bcContainerPath "mybaseapp"
Publish-NewApplicationToBcContainer -containerName $bcContainerName `
-appFile $appFile `
-credential $credential `
-useCleanDatabase `
-SaveData `
-doNotUseDevEndpoint `
-restoreApps No
}
It 'Publish-NewApplicationToBcContainer (use dev endpoint)' {
$alProjectFolder = Join-Path $bcContainerPath "mybaseapp"
Publish-NewApplicationToBcContainer -containerName $bcContainerName `
-appFile $appFile `
-credential $credential `
@ -280,4 +250,4 @@
# Recreate contaminated containers
. (Join-Path $PSScriptRoot '_CreateNavContainer.ps1')
. (Join-Path $PSScriptRoot '_CreateBcContainer.ps1')
}
}