Conversation
markcowl
left a comment
There was a problem hiding this comment.
The TODOs we can either address here or file issues. For the others, we should fix here.
| Uninstall-AzureRmProfile -Profile $profile -Force -ErrorAction Stop | ||
| } | ||
| } | ||
| } |
There was a problem hiding this comment.
Need a verification at the end that profiles were actually uninstalled. Should throw if not.
| } | ||
|
|
||
| Describe "Add: A Machine with a Profile installed can install latest profile" { | ||
| Context "Profile 2016-09 already installed" { |
There was a problem hiding this comment.
TODO: Need to add a scenario for installing 2 named profiles side by side and verifying that we cna select each
| } | ||
|
|
||
| Describe "User can uninstall a profile" { | ||
| Context "Latest profile is installed" { |
There was a problem hiding this comment.
TODO need scenarios for: (1) removing a named profile when multiple profiles are installed; (2) Uninstalling all profiles
|
|
||
| # Assert | ||
| It "Profile Latest is uninstalled" { | ||
| $result.Contains('Latest') | Should Be $false |
There was a problem hiding this comment.
We should do additional verification of installed modules in this case. We can check Get-Module -ListAvailable to ensure modules are removed.
(I) Added a check for uninstallation of the profile (ii) Added module check after uninstalling the profile
Add Update-AzureRmProfile cmdlet automatic help
Add description for Update-AzureRmProfile cmdlet
Add 'Update-AzureRmProfile' in 'functions to export'
Functionality: Update profile to the latest versions and load modules in the current session. -RemovePreviousVersions (-r) flag will remove old versions of the modules.
Also added tests from CR: 1. Need to add a scenario for installing 2 named profiles side by side and verifying that we can select each 2. removing a named profile when multiple profiles are installed 3. Uninstalling all profiles
* NFSAAS-2898 update to R4.5 RP standard * NFSAAS-2898 update to R4.5 RP standard * NFSAAS-2898 update to R4.5 RP standard
Added tests for Priority 0 & Priority 1 scenarios.