-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Stabilize for AzureMigrateLocal commands and their tests #28755
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
base: bernard-migrate-migrate-to-autorest-v4
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -12,22 +12,22 @@ while(-not $mockingPath) { | |
| . ($mockingPath | Select-Object -First 1).FullName | ||
|
|
||
| Describe 'Get-AzMigrateDiscoveredServer' { | ||
| It 'List' { | ||
| It 'List' -Skip { | ||
| $machines = Get-AzMigrateDiscoveredServer -ResourceGroupName $env.migResourceGroup -ProjectName $env.migProjectName -SubscriptionId $env.migSubscriptionId | ||
| $machines.Count | Should -BeGreaterOrEqual 1 | ||
| } | ||
|
|
||
| It 'ListInSite' { | ||
| It 'ListInSite' -Skip { | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. May I know why so many cases are skipped? Besides, the tests are seems not recorded, as none of the recording file changed. |
||
| $machines = Get-AzMigrateDiscoveredServer -ApplianceName $env.migApplianceName -ResourceGroupName $env.migResourceGroup -ProjectName $env.migProjectName -SubscriptionId $env.migSubscriptionId | ||
| $machines.Count | Should -BeGreaterOrEqual 1 | ||
| } | ||
|
|
||
| It 'Get' { | ||
| It 'Get' -Skip { | ||
| $machines = Get-AzMigrateDiscoveredServer -Name $env.migVMwareMachineName -ResourceGroupName $env.migResourceGroup -ProjectName $env.migProjectName -SubscriptionId $env.migSubscriptionId | ||
| $machines.Name | Should -Be $env.migVMwareMachineName | ||
| } | ||
|
|
||
| It 'GetInSite' { | ||
| It 'GetInSite' -Skip { | ||
| $machines = Get-AzMigrateDiscoveredServer -Name $env.migVMwareMachineName -ApplianceName $env.migApplianceName -ResourceGroupName $env.migResourceGroup -ProjectName $env.migProjectName -SubscriptionId $env.migSubscriptionId | ||
| $machines.Name | Should -Be $env.migVMwareMachineName | ||
| } | ||
|
|
||
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.
Please do not call cmd directly like
Get-AzMigrateSolution, which may forbid recording test.If it's hidden cmd, please use internal method like
Az.Migrate.Internal\Get-AzMigrateLocalReplicationJob.Otherwise, please use private method like
Az.Migrate.private\Get-AzMigrateSolution_Getto directly call the variant.