Skip to content

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

Closed
wants to merge 12 commits into from
Closed

Conversation

viananth
Copy link
Collaborator

Added tests for Priority 0 & Priority 1 scenarios.

@viananth viananth assigned markcowl and unassigned markcowl Nov 28, 2016
Copy link
Owner

@markcowl markcowl left a 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
}
}
}
Copy link
Owner

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" {
Copy link
Owner

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" {
Copy link
Owner

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
Copy link
Owner

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
Update & install profile after uninstalling old versions. This ensures the modules are properly imported into the session.
@markcowl markcowl closed this Aug 24, 2018
@markcowl markcowl deleted the viananth branch August 24, 2018 01:44
markcowl pushed a commit that referenced this pull request Aug 21, 2019
* NFSAAS-2898 update to R4.5 RP standard

* NFSAAS-2898 update to R4.5 RP standard

* NFSAAS-2898 update to R4.5 RP standard
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants