AzureRM.Bootstrapper.ScenarioTests.ps1
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 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 |
Import-Module -Name AzureRM.Bootstrapper $RollupModule = 'AzureRM' InModuleScope AzureRM.Bootstrapper { $ProfileMap = (Get-AzProfile) $ProfileCachePath = Get-ProfileCachePath # Helper function to uninstall all profiles function Remove-InstalledProfile { $installedProfiles = Get-ProfilesInstalled -ProfileMap $ProfileMap if ($installedProfiles.Keys -ne $null) { foreach ($profile in $installedProfiles.Keys) { Write-Host "Removing profile $profile" Uninstall-AzureRmProfile -Profile $profile -Force -ErrorAction SilentlyContinue } $profiles = (Get-ProfilesInstalled -ProfileMap $ProfileMap) if ($profiles.Count -ne 0) { Throw "Uninstallation was not successful: Profile(s) $(@($profiles.Keys) -join ',') were not uninstalled correctly." } } } Describe "A machine with no profile installed can install profile" { # Using Install-AzureRmProfile Context "New Profile Install - Latest" { # Arrange # Uninstall previously installed profiles Remove-InstalledProfile # Launch the test in a new powershell session # Create a new PS session $session = New-PSSession # Act # Install latest version Invoke-Command -Session $session -ScriptBlock { Install-AzureRmProfile -Profile 'Latest' -Force } # Assert It "Should return Latest Profile" { $result = Invoke-Command -Session $session -ScriptBlock { Get-AzureRmProfile } $result[0].Contains('Latest') | Should Be $true } # Clean up Remove-PSSession -Session $session } # Using Use-AzureRmProfile Context "New Profile Install - 2016-04-consistent" { # Arrange # Uninstall previously installed profiles Remove-InstalledProfile # Create a new PS session $session = New-PSSession # Act # Install profile '2016-04-consistent' Invoke-Command -Session $session -ScriptBlock { Use-AzureRmProfile -Profile '2016-04-consistent' -Force } # Assert It "Should return 2016-04-consistent" { $result = Invoke-Command -Session $session -ScriptBlock { Get-AzureRmProfile } $result[0].Contains('2016-04-consistent') | Should Be $true } # Clean up Remove-PSSession -Session $session } } Describe "Add: A Machine with a Profile installed can install latest profile" { InModuleScope AzureRM.Bootstrapper { Context "Profile 2016-04-consistent already installed" { # Arrange # Create a new PS session $session = New-PSSession # Ensure 2016-09-consistent is installed $profilesInstalled = Invoke-Command -Session $session -ScriptBlock { Get-AzureRmProfile } $profilesInstalled[0].Contains('2016-04-consistent') | Should Be $true # Act # Install profile 'Latest' Invoke-Command -Session $session -ScriptBlock { Use-AzureRmProfile -Profile 'Latest' -Force } $result = Invoke-Command -Session $session -ScriptBlock { Get-AzureRmProfile } # Assert It "Should return 2016-09-consistent & Latest" { ($result -like "*latest*") -ne $null | Should Be $true ($result -like "*2016-04-consistent*") -ne $null | Should Be $true } # Clean up Remove-PSSession -Session $session } } } Describe "Attempting to use already installed profile will import the modules to the current session" { InModuleScope AzureRM.Bootstrapper { Context "Profile Latest is installed" { # Should import Latest profile to current session # Arrange # Create a new PS session $session = New-PSSession # Ensure profile Latest is installed $profilesInstalled = Invoke-Command -Session $session -ScriptBlock { Get-AzureRmProfile } ($profilesInstalled -like "*latest*") -ne $null | Should Be $true # Act Invoke-Command -Session $session -ScriptBlock { Use-AzureRmProfile -Profile 'Latest' -Force } # Get the version of the Latest profile $ProfileMap = Get-AzProfile $latestVersion = $ProfileMap.'Latest'.$RollupModule # Assert It "Should return AzureRm module Latest version" { # Get-module script block $getModule = { Param($RollupModule) Get-Module -Name $RollupModule } $modules = Invoke-Command -Session $session -ScriptBlock $getModule -ArgumentList $RollupModule $modules.Name | Should Be $RollupModule $modules.version | Should Be $latestVersion } # Cleanup Invoke-Command -Session $session -ScriptBlock { Uninstall-AzureRmProfile -Profile 'Latest' -Force -ea SilentlyContinue } Remove-PSSession -Session $session } } } Describe "User can update their machine to a latest profile" { InModuleScope AzureRM.Bootstrapper { # Using Use-AzureRmProfile Context "Profile 2016-09-consistent is installed: Use-AzureRmProfile" { # Should refresh profile map from Azure end point and update modules. # Arrange # Create a new PS session $session = New-PSSession # Check if '2016-04-consistent' is installed $profilesInstalled = Invoke-Command -Session $session -ScriptBlock { Get-AzureRmProfile } ($profilesInstalled -like "*2016-04-consistent*") -ne $null | Should Be $true # Remove latest profile map from cache for testing if it updates from online. $latestMap = Get-LatestProfileMapPath if (($latestMap -ne $null) -and (Test-Path $latestMap.FullName)) { Remove-Item -Path $latestMap.FullName -Force } # Act Invoke-Command -Session $session -ScriptBlock { Get-AzureRmProfile -Update } Invoke-Command -Session $session -ScriptBlock { Use-AzureRmProfile -Profile 'Latest' -Force } # Assert It "Should return 2016-04-consistent & Latest" { $result = Invoke-Command -Session $session -ScriptBlock { Get-AzureRmProfile } ($result -like "*latest*") -ne $null | Should Be $true ($result -like "*2016-04-consistent*") -ne $null | Should Be $true } It "Latest version of modules are imported" { # Get the version of the Latest profile $ProfileMap = Get-AzProfile $latestVersion = $ProfileMap.'Latest'.$RollupModule # Get-module script block $getModule = { Param($RollupModule) Get-Module -Name $RollupModule } $modules = Invoke-Command -Session $session -ScriptBlock $getModule -ArgumentList $RollupModule # Are latest modules imported? $modules.Name | Should Be $RollupModule $modules.version | Should Be $latestVersion } It "Last Write Time should be less than 5 minutes" { # Get LastWriteTime for ProfileMap $lastWriteTime = (Get-Item -Path (Get-LatestProfileMapPath).FullName).LastWriteTime (((Get-Date) - $lastWriteTime).TotalMinutes -lt 5) | Should Be $true } # Cleanup Remove-PSSession -Session $session } # Using Update-AzureRmProfile; Previous Versions do not exist Context "Profile 2016-04-consistent is installed: Update-AzureRmProfile" { # Arrange # Remove existing profiles Remove-InstalledProfile # Create a new PS session $session = New-PSSession # Install profile 2016-04-consistent Install-AzureRmProfile -Profile '2016-04-consistent' -Force # Ensure profile 2016-04-consistent is installed $profilesInstalled = Invoke-Command -Session $session -ScriptBlock { Get-AzureRmProfile } ($profilesInstalled -like "*2016-04-consistent*") -ne $null | Should Be $true # Act # Update to profile 'Latest' Invoke-Command -Session $session -ScriptBlock { Update-AzureRmProfile -Profile 'Latest' -Force -RemovePreviousVersions } # Assert # Returns 2016-04-consistent & Latest It "Should Return 2016-04-consistent & Latest" { $result = Invoke-Command -Session $session -ScriptBlock { Get-AzureRmProfile } ($result -like "*latest*") -ne $null | Should Be $true ($result -like "*2016-04-consistent*") -ne $null | Should Be $true } It "Latest version of modules are imported" { # Get the version of the Latest profile $ProfileMap = Get-AzProfile $latestVersion = $ProfileMap.'Latest'.$RollupModule # Get-module script block $getModule = { Param($RollupModule) Get-Module -Name $RollupModule } $modules = Invoke-Command -Session $session -ScriptBlock $getModule -ArgumentList $RollupModule # Are latest modules imported? $modules.Name | Should Be $RollupModule $modules.version | Should Be $latestVersion } Remove-PSSession -Session $session } # Using Update-AzureRmProfile; Previous Versions exist Context "Profile 2016-04-consistent is installed: Update-AzureRmProfile with PreviousVerisons" { # Arrange # Remove existing profiles Remove-InstalledProfile # Create a new PS session $session = New-PSSession # Install profile 2016-04-consistent Install-AzureRmProfile -Profile '2016-04-consistent' -Force # Ensure profile 2016-04-consistent is installed $profilesInstalled = Invoke-Command -Session $session -ScriptBlock { Get-AzureRmProfile } ($profilesInstalled -like "*2016-04-consistent*") -ne $null | Should Be $true # Remove latest profile map from cache for testing if it updates from online. $latestMap = Get-LatestProfileMapPath if (($latestMap -ne $null) -and (Test-Path $latestMap.FullName)) { Remove-Item -Path $latestMap.FullName -Force } # Add a version of old profilemap with older versions of 'latest' profile to cache $testProfileMap = "{`"Latest`": { `"AzureRM`": [`"3.3.0`"], `"Azure.Storage`": [`"2.4.0`"] }}" $testProfileMap | Out-File -FilePath "$ProfileCachePath\TestMap.json" -Force # Install the modules from that profilemap $testProfileMap = ($testProfileMap | ConvertFrom-Json) foreach ($Module in ($testProfileMap.'Latest' | Get-Member -MemberType NoteProperty).Name) { $oldVersion = $testProfileMap.'Latest'.$Module Install-Module $Module -RequiredVersion $oldVersion[0] -ErrorAction Stop -AllowClobber } # Act # Invoke Update-AzureRmProfile 'latest' with -RemovePreviousVersions Invoke-Command -Session $session -ScriptBlock { Get-AzureRmProfile -update } Invoke-Command -Session $session -ScriptBlock { Update-AzureRmProfile -Profile 'Latest' -Force -RemovePreviousVersions } # Assert # Check if new versions of 'latest' are installed $latestVersion = $ProfileMap.'Latest'.$RollupModule It "Should return latest module versions" { # Get-module script block $getModule = { Param($RollupModule) Get-AzureRmModule -Profile 'Latest' -Module $RollupModule } $version = Invoke-Command -Session $session -ScriptBlock $getModule -ArgumentList $RollupModule $version | Should Be $latestVersion } # Check if old versions of 'latest' are uninstalled It "Should return null for old versions" { # Get-module script block $getModule = { Param($RollupModule) Get-Module -Name $RollupModule -ListAvailable } $modules = Invoke-Command -Session $session -ScriptBlock $getModule -ArgumentList $RollupModule foreach ($module in $modules) { $module.Version -eq $oldVersion | Should Be $false } } # Check if the old profilemap was removed It "Should return false for old profile map in cache" { (Test-Path "$ProfileCachePath\TestMap.json") | Should Be $false } } } } Describe "User can uninstall a profile" { InModuleScope AzureRM.Bootstrapper { Context "Latest profile is installed" { # Should uninstall latest profile # Arrange # Create a new PS session $session = New-PSSession # Check if 'Latest' is installed $profilesInstalled = Invoke-Command -Session $session -ScriptBlock { Get-AzureRmProfile } ($profilesInstalled -like "*latest*") -ne $null | Should Be $true # Get the version of the Latest profile $ProfileMap = Get-AzProfile $latestVersion = $ProfileMap.'Latest'.$RollupModule # Act Invoke-Command -Session $session -ScriptBlock { Uninstall-AzureRmProfile -Profile 'Latest' -Force } # Assert It "Profile Latest is uninstalled" { $result = Invoke-Command -Session $session -ScriptBlock { Get-AzureRmProfile } if($result -ne $null) { $result.Contains('Latest') | Should Be $false } else { $true } } It "Available Modules should not contain uninstalled modules" { $getModule = { Param($RollupModule) Get-Module -Name $RollupModule -ListAvailable } $results = Invoke-Command -Session $session -ScriptBlock $getModule -ArgumentList $RollupModule # Result won't be null because profile 2016-04-consistent is installed. foreach ($result in $results) { $result.Version -eq $latestVersion | Should Be $false } } # Cleanup Remove-PSSession -Session $session } } } Describe "Install Two named profiles and selecting each" { InModuleScope AzureRM.Bootstrapper { # Get the version of the respective profile $ProfileMap = Get-AzProfile $Version1 = $ProfileMap.'Latest'.$RollupModule $Version2 = $ProfileMap.'2016-04-consistent'.$RollupModule Context "Install Two Profiles" { # Arrange # Remove all profiles Remove-InstalledProfile # Create a new PS session $session = New-PSSession # Act # Install Profile: 2016-08 Invoke-Command -Session $session -ScriptBlock { Install-AzureRmProfile -Profile 'Latest' -Force } # Install Profile: 2016-04 Invoke-Command -Session $session -ScriptBlock { Install-AzureRmProfile -Profile '2016-04-consistent' -Force } # Assert It "Should return Profiles Latest & 2016-04-consistent" { $profilesInstalled = Invoke-Command -Session $session -ScriptBlock { Get-AzureRmProfile } ($profilesInstalled -like "*2016-04-consistent*") -ne $null | Should Be $true ($profilesInstalled -like "*latest*") -ne $null | Should Be $true } # Clean up Remove-PSSession -Session $session } Context "Select diff profiles" { # Arrange # Create two new PS sessions $session1 = New-PSSession $session2 = New-PSSession # Act # Use-AzureRmProfile will import the respective versions of modules in the session Invoke-Command -Session $session1 -ScriptBlock { Use-AzureRmProfile -Profile 'Latest' -Force } Invoke-Command -Session $session2 -ScriptBlock { Use-AzureRmProfile -Profile '2016-04-consistent' -Force } $getModule = { Param($RollupModule) Get-Module -Name $RollupModule } $result = Invoke-Command -Session $session1 -ScriptBlock { Get-AzureRmProfile } $module1 = Invoke-Command -Session $session1 -ScriptBlock $getModule -ArgumentList $RollupModule $module2 = Invoke-Command -Session $session2 -ScriptBlock $getModule -ArgumentList $RollupModule # Assert It "Should return Latest & 2016-04-consistent" { ($result -like "*latest*") -ne $null | Should Be $true ($result -like "*2016-04-consistent*") -ne $null | Should Be $true } It "Respective versions of modules are imported" { # Are respective modules imported? $module1.Name | Should Be $RollupModule $module1.version | Should Be $Version1 $module2.Name | Should Be $RollupModule $module2.version | Should Be $Version2 } # "Uninstall All Profiles" Remove-InstalledProfile It "Should return null" { Get-AzureRmProfile | Should Be $null } It "Modules should return null" { $getModuleList = { Param($RollupModule) Get-Module -ListAvailable -Name $RollupModule } $result1 = Invoke-Command -Session $session1 -ScriptBlock $getModuleList -ArgumentList $RollupModule foreach ($result in $result1) { $result.Version -eq $Version1 | Should Be $false } $result2 = Invoke-Command -Session $session2 -ScriptBlock $getModuleList -ArgumentList $RollupModule foreach ($result in $result2) { $result.Version -eq $Version2 | Should Be $false } } # Cleanup Remove-PSSession -Session $session1 Remove-PSSession -Session $session2 } } } Describe "Invalid Cases" { Context "Install wrong profile name" { # Install profile 'abcTest' It "Throws Invalid argument error" { { Install-AzureRmProfile -Profile 'abcTest' } | Should Throw } } Context "Install null profile name" { # Install profile 'null' It "Throws Invalid argument error" { { Install-AzureRmProfile -Profile $null } | Should Throw } } Context "Install already installed profile" { # Arrange # Create a new PS session $session = New-PSSession # Ensure profile 2016-09 is installed Install-AzureRmProfile -Profile '2016-04-consistent' -Force $installedProfile = Invoke-Command -Session $session -ScriptBlock { Get-AzureRmProfile } ($installedProfile -like "*2016-04-consistent*") -ne $null | Should Be $true # Act # Install profile '2016-04-consistent' $result = Invoke-Command -Session $session -ScriptBlock { Install-AzureRmProfile -Profile '2016-04-consistent' -Force } # Get modules imported into the session $getModuleList = { Param($RollupModule) Get-Module -Name $RollupModule } $modules = Invoke-Command -Session $session -ScriptBlock $getModuleList -ArgumentList $RollupModule It "Doesn't install/import the profile" { $result | Should Be $null $modules | Should Be $null } # Cleanup Remove-PSSession -Session $session } Context "Uninstall not installed profile" { # Arrange # Create a new PS session $session = New-PSSession # Ensure profile latest is not installed $installedProfile = Invoke-Command -Session $session -ScriptBlock { Get-AzureRmProfile } ($installedProfile -like "*latest*") | Should Be $null # Act # Uninstall profile 'latest' $result = Invoke-Command -Session $session -ScriptBlock { Uninstall-AzureRmProfile -Profile 'latest' -Force} It "Doesn't uninstall/throw" { $result | Should Be $null } # Cleanup Remove-PSSession -Session $session } Context "Use-AzureRmProfile with wrong profile name" { # Install profile 'abcTest' It "Throws Invalid argument error" { { Use-AzureRmProfile -Profile 'abcTest' } | Should Throw } } } Describe "Failure Recovery: Attempt to install profile recovers from error" { InModuleScope AzureRM.Bootstrapper { Context "Azure ProfileMap endpoint threw exception" { # Arrange # Mock Get-ProfileMap returns error Mock Get-AzureProfileMap -Verifiable { throw [System.Net.WebException] } # Mock Install-Modules returns error Mock Install-Module -Verifiable { throw } Mock Get-AzureRmModule -Verifiable {} # Act & Assert It "Should not download/install the latest profile" { { Get-AzureRmProfile -Update } | Should Throw { Install-AzureRmProfile -Profile 'Latest' -Force } | Should Throw } It "Last Write time should not be less than 3 mins" { # Get LastWriteTime for ProfileMap $lastWriteTime = (Get-Item -Path (Get-LatestProfileMapPath).FullName).LastWriteTime (((Get-Date) - $lastWriteTime).TotalMinutes -gt 3) | Should Be $true Assert-VerifiableMock } } Context "Retry install after ProfileMap update" { # Arrange # Create a new PS session $session = New-PSSession # Remove ProfileMap.json to test if it is updated from online Remove-Item -Path (Get-LatestProfileMapPath).FullName -Force # Act # Update ProfileMap Invoke-Command -Session $session -ScriptBlock { Get-AzureRmProfile -Update } # Install profile 'Latest' Invoke-Command -Session $session -ScriptBlock { Use-AzureRmProfile -Profile 'Latest' -Force } # Assert It "Installs & Imports Latest profile to the session" { $getModuleList = { Param($RollupModule) Get-Module -Name $RollupModule } $modules = Invoke-Command -Session $session -ScriptBlock $getModuleList -ArgumentList $RollupModule # Get the version of the Latest profile $ProfileMap = Get-AzProfile $latestVersion = $ProfileMap.'Latest'.$RollupModule # Are latest modules imported? $modules.Name | Should Be $RollupModule $modules.version | Should Be $latestVersion } It "Last Write time should be less than 5 mins" { # Get LastWriteTime for ProfileMap $lastWriteTime = (Get-Item -Path (Get-LatestProfileMapPath).FullName).LastWriteTime (((Get-Date) - $lastWriteTime).TotalMinutes -lt 5) | Should Be $true } # Cleanup Remove-PSSession -Session $session } } } Describe "Install profiles using Scope" { InModuleScope AzureRM.Bootstrapper { Context "Using Install-AzureRmProfile: Scope 'CurrentUser'" { # Arrange # Create a new PS session $session = New-PSSession # Remove installed profiles Remove-InstalledProfile # Act # Install profile Latest scope as current user Invoke-Command -Session $session -ScriptBlock { Install-AzureRmProfile -Profile 'Latest' -scope 'CurrentUser' -Force } # Assert It "Installs & Imports Latest profile to the session" { # Get the version of the Latest profile $ProfileMap = Get-AzProfile $latestVersion = $ProfileMap.'Latest'.$RollupModule $getModuleList = { Param($RollupModule, $latestVersion) Get-Module -Name $RollupModule -ListAvailable | Where-Object {$_.Version -like $latestVersion} } $modules = Invoke-Command -Session $session -ScriptBlock $getModuleList -ArgumentList @($RollupModule, $latestVersion) # Are latest modules imported? $modules.Name | Should Be $RollupModule $modules.version | Should Be $latestVersion } } Context "Using Use-AzureRmProfile: Scope 'AllUsers'" { # Arrange # Create a new PS session $session = New-PSSession # Remove installed profiles Remove-InstalledProfile # Act # Install profile 2016-04-consistent scope as all users Invoke-Command -Session $session -ScriptBlock { Use-AzureRmProfile -Profile '2016-04-consistent' -scope 'AllUsers' -Force } # Assert It "Installs & Imports 2016-04-consistent profile to the session" { $getModuleList = { Param($RollupModule) Get-Module -Name $RollupModule } $modules = Invoke-Command -Session $session -ScriptBlock $getModuleList -ArgumentList $RollupModule # Get the version of the 2016-04-consistent profile $ProfileMap = Get-AzProfile $version = $ProfileMap.'2016-04-consistent'.$RollupModule # Are appropriate modules imported? $modules.Name | Should Be $RollupModule $modules.version | Should Be $version } } Context "Using Update-AzureRmProfile: Scope 'CurrentUser' " { # Arrange # Create a new PS session $session = New-PSSession # Remove installed profiles Remove-InstalledProfile # Act # Install profile 2016-04-consistent scope as current user Invoke-Command -Session $session -ScriptBlock { Update-AzureRmProfile -Profile '2016-04-consistent' -scope 'CurrentUser' -Force -r } # Assert It "Installs & Imports 2016-04-consistent profile to the session" { $getModuleList = { Param($RollupModule) Get-Module -Name $RollupModule } $modules = Invoke-Command -Session $session -ScriptBlock $getModuleList -ArgumentList $RollupModule # Get the version of the 2016-04-consistent profile $ProfileMap = Get-AzProfile $version = $ProfileMap.'2016-04-consistent'.$RollupModule # Are correct modules imported? $modules.Name | Should Be $RollupModule $modules.version | Should Be $version } } } } Describe "Load/Import AzureRmProfile modules" { InModuleScope AzureRM.Bootstrapper { Context "Using Use-AzureRmProfile: Modules are not installed" { # Arrange # Create a new PS session $session = New-PSSession # Remove installed profiles Remove-InstalledProfile # Act # Use module from Latest profile scope as current user Invoke-Command -Session $session -ScriptBlock { Use-AzureRmProfile -Profile '2016-04-consistent' -Module 'AzureRM.Storage' -Force -scope 'CurrentUser'} # Assert $RollupModule = 'AzureRM.Storage' It "Installs & Imports 2016-04-consistent profile's module to the session" { $getModuleList = { Param($RollupModule) Get-Module -Name $RollupModule } $modules = Invoke-Command -Session $session -ScriptBlock $getModuleList -ArgumentList $RollupModule # Get the version of the 2016-04-consistent profile $ProfileMap = Get-AzProfile $version = $ProfileMap.'2016-04-consistent'.$RollupModule # Are 2016-04-consistent modules imported? $modules.Name | Should Be $RollupModule $modules.version | Should Be $version } } Context "Using Update-AzureRmProfile: Previous version of modules are installed" { # Arrange # Create a new PS session $session = New-PSSession # Remove installed profiles Remove-InstalledProfile # Remove latest profile map from cache for testing if it updates from online. $latestMap = Get-LatestProfileMapPath if (($latestMap -ne $null) -and (Test-Path $latestMap.FullName)) { Remove-Item -Path $latestMap.FullName -Force } # Add a version of old profilemap with older versions of 'latest' profile to cache $testProfileMap = "{`"Latest`": {`"Azure.Storage`": [`"2.4.0`"], `"AzureRM.Storage`": [`"2.4.0`"] }}" $testProfileMap | Out-File -FilePath "$ProfileCachePath\TestMap.json" -Force # Install the modules from that profilemap $testProfileMap = ($testProfileMap | ConvertFrom-Json) foreach ($Module in ($testProfileMap.'Latest' | Get-Member -MemberType NoteProperty).Name) { $oldVersion = $testProfileMap.'Latest'.$Module Install-Module $Module -RequiredVersion $oldVersion[0] -ErrorAction Stop -AllowClobber } # Act # Update profile Latest with -RemovePreviousVersions Invoke-Command -Session $session -ScriptBlock { Get-AzureRmProfile -Update } Invoke-Command -Session $session -ScriptBlock { Update-AzureRmProfile -Profile 'Latest' -Module 'AzureRM.Storage', 'Azure.Storage' -Force -r } # Assert It "Installs & Imports latest profile's module ('AzureRM.Storage') to the session" { $getModuleList = { Param($RollupModule) Get-Module -Name $RollupModule } $module1 = Invoke-Command -Session $session -ScriptBlock $getModuleList -ArgumentList 'AzureRM.Storage' # Get the version of the latest profile $ProfileMap = Get-AzProfile $version1 = $ProfileMap.'Latest'.'AzureRM.Storage' # Are latest modules imported? $module1.Name | Should Be 'AzureRM.Storage' $module1.version | Should Be $version1 } It "Installs & Imports latest profile's module ('Azure.Storage') to the session" { $getModuleList = { Param($RollupModule) Get-Module -Name $RollupModule } $module2 = Invoke-Command -Session $session -ScriptBlock $getModuleList -ArgumentList 'Azure.Storage' # Get the version of the latest profile $ProfileMap = Get-AzProfile $version2 = $ProfileMap.'Latest'.'Azure.Storage' # Are latest modules imported? $module2.Name | Should Be 'Azure.Storage' $module2.version | Should Be $version2 } # Check if the old profilemap was removed It "Should return false for old profile map in cache" { (Test-Path "$ProfileCachePath\TestMap.json") | Should Be $false } } } } } # SIG # Begin signature block # MIIjkQYJKoZIhvcNAQcCoIIjgjCCI34CAQExDzANBglghkgBZQMEAgEFADB5Bgor # BgEEAYI3AgEEoGswaTA0BgorBgEEAYI3AgEeMCYCAwEAAAQQH8w7YFlLCE63JNLG # KX7zUQIBAAIBAAIBAAIBAAIBADAxMA0GCWCGSAFlAwQCAQUABCDNgqXRq8XBton7 # tzI2Ng/2Oe4ItNJaidYj9hkaghjgDaCCDYEwggX/MIID56ADAgECAhMzAAABh3IX # chVZQMcJAAAAAAGHMA0GCSqGSIb3DQEBCwUAMH4xCzAJBgNVBAYTAlVTMRMwEQYD # VQQIEwpXYXNoaW5ndG9uMRAwDgYDVQQHEwdSZWRtb25kMR4wHAYDVQQKExVNaWNy # b3NvZnQgQ29ycG9yYXRpb24xKDAmBgNVBAMTH01pY3Jvc29mdCBDb2RlIFNpZ25p # bmcgUENBIDIwMTEwHhcNMjAwMzA0MTgzOTQ3WhcNMjEwMzAzMTgzOTQ3WjB0MQsw # CQYDVQQGEwJVUzETMBEGA1UECBMKV2FzaGluZ3RvbjEQMA4GA1UEBxMHUmVkbW9u # ZDEeMBwGA1UEChMVTWljcm9zb2Z0IENvcnBvcmF0aW9uMR4wHAYDVQQDExVNaWNy # b3NvZnQgQ29ycG9yYXRpb24wggEiMA0GCSqGSIb3DQE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