-
Notifications
You must be signed in to change notification settings - Fork 0
Adding Scenario Tests. This closes #18 #26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.