runintegrationtests.ps1
$here = Split-Path -Parent $MyInvocation.MyCommand.Path Set-StrictMode -Version Latest # Set-Location $naPath $ErrorActionPreference = "Stop" Import-Module Pester $VerbosePreference = "continue" $module = "DosInstallUtilities.Azure" Get-Module "$module" | Remove-Module -Force Import-Module "$here\$module.psm1" -Force $module = "DosInstallUtilities.Kube" Get-Module "$module" | Remove-Module -Force Import-Module "$here\..\$module\$module.psm1" -Force echo $globals | Out-String # Invoke-Pester "$here\Module.Tests.ps1" # Storage # Invoke-Pester "$here\functions\Storage\GetStorageAccountName.Tests.ps1" # Invoke-Pester "$here\functions\Storage\SetStorageAccountNameIntoSecret.Tests.ps1" -Tag 'Unit' # Invoke-Pester "$here\functions\Storage\SetStorageAccountNameIntoSecret.Tests.ps1" -Tag 'Integration' # Invoke-Pester "$here\functions\Storage\CreateAzureStorage.Tests.ps1" -Tag 'Integration' -Verbose # # Subscription # Invoke-Pester "$here\functions\Subscription\SetCurrentAzureSubscription.Tests.ps1" -Tag 'Unit' # Invoke-Pester "$here\functions\Subscription\SetCurrentAzureSubscription.Tests.ps1" -Tag 'Integration' # Network # Invoke-Pester "$here\functions\Network\SetupNetworkSecurity.Tests.ps1" -Tag 'Integration' -Verbose # Load Balancer # Invoke-Pester "$here\functions\LoadBalancer\SetupLoadBalancer.Tests.ps1" -Tag 'Unit' # Invoke-Pester "$here\functions\LoadBalancer\SetupLoadBalancer.Tests.ps1" -Tag 'Integration' -Verbose # arm # Invoke-Pester "$here\functions\arm\CreateServicePrincipal.Tests.ps1" -Tag 'Integration' -Verbose # Invoke-Pester "$here\functions\arm\AssignPermissionsToServicePrincipal.Tests.ps1" -Tag 'Integration' -Verbose # Invoke-Pester "$here\functions\arm\CleanResourceGroup.Tests.ps1" -Tag 'Cluster' -Verbose # Invoke-Pester "$here\functions\arm\DeployTemplate.Tests.ps1" -Tag 'Unit' -Verbose # Invoke-Pester "$here\functions\arm\DeployTemplate.Tests.ps1" -Tag 'Cluster' -Verbose # Invoke-Pester "$here\functions\arm\DeployTemplate.Tests.ps1" -Tag 'ACS' -Verbose # Invoke-Pester "$here\functions\arm\DeployTemplate.Tests.ps1" -Tag 'Cluster' -Verbose Invoke-Pester "$here\functions\InitKubernetes.Tests.ps1" -Tag 'Integration' -Verbose # Invoke-Pester "$here\functions\arm\DownloadCredentialsForAks.Tests.ps1" -Tag 'Integration' -Verbose # Invoke-Pester "$here\functions\arm\LaunchAksDashboard.Tests.ps1" -Tag 'Integration' -Verbose # Set-AzureRmContext -SubscriptionId "c8b1589f-9270-46ee-967a-417817e7d10d" -Verbose # Get-AzureRmAks # $resourceGroup="fabrickubernetes2" # $name="Kluster-$resourceGroup" # Import-AzureRmAksCredential -ResourceGroupName "$resourceGroup" -Name $name -Force # Start-AzureRmAksDashboard -ResourceGroupName "$resourceGroup" -Name $name -Verbose |