-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrunintegrationtests.ps1
More file actions
63 lines (40 loc) · 2.36 KB
/
Copy pathrunintegrationtests.ps1
File metadata and controls
63 lines (40 loc) · 2.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
$here = Split-Path -Parent $MyInvocation.MyCommand.Path
Set-StrictMode -Version Latest
# Set-Location $naPath
$ErrorActionPreference = "Stop"
Import-Module Pester
$VerbosePreference = "continue"
$module = "DosInstallUtilities.Menu"
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
# 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 'AKS' -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