Skip to content

Commit f3b9e1c

Browse files
authored
Cover data plane cmdlets in Smoke test (#17114)
* update RmCoreSmokeTest.ps1 file * update * update some issue
1 parent 6505536 commit f3b9e1c

File tree

1 file changed

+16
-7
lines changed

1 file changed

+16
-7
lines changed

tools/Test/SmokeTest/RmCoreSmokeTests.ps1

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ $resourceCleanUpCommands = @(
8282
$resourceTestCommands = @(
8383
@{Name = "Az.Storage [Management]"; Command = {New-AzStorageAccount -Name $storageAccountName -SkuName Standard_LRS -Location westus -ResourceGroupName $resourceGroupName -ErrorAction Stop}},
8484
@{Name = "Az.Storage [Data]"; Command = {New-AzStorageContext -StorageAccountName $storageAccountName -StorageAccountKey 12345678 -ErrorAction Stop}},
85+
@{Name = "Az.Storage [Data 1]"; Command = {Get-Command Get-AzStorageBlob -ErrorAction Stop}},
8586
@{Name = "Az.Accounts"; Command = {Get-AzDomain -ErrorAction Stop}},
8687
@{Name = "Az.Accounts [DefaultProfile]"; Command = {Get-AzSubscription -DefaultProfile (Get-AzContext)}},
8788
@{Name = "Az.Advisor"; Command = {Get-AzAdvisorConfiguration -ErrorAction Stop}},
@@ -90,20 +91,23 @@ $resourceTestCommands = @(
9091
@{Name = "Az.ApiManagement"; Command = {Get-AzApiManagement -ErrorAction Stop}},
9192
@{Name = "Az.ApplicationInsights"; Command = {Get-AzApplicationInsights -ErrorAction Stop}},
9293
@{Name = "Az.Automation"; Command = {Get-AzAutomationAccount -ErrorAction Stop}},
93-
@{Name = "Az.Batch"; Command = {Get-AzBatchAccount -ErrorAction Stop}},
94+
@{Name = "Az.Batch [MngmPlane]"; Command = {Get-AzBatchAccount -ErrorAction Stop}},
95+
@{Name = "Az.Batch [DataPlane]"; Command = {Get-Command Get-AzBatchSupportedImage -ErrorAction Stop}},
9496
@{Name = "Az.Billing"; Command = {Get-AzBillingInvoice -ErrorAction Stop}},
9597
@{Name = "Az.Billing [Consumption]"; Command = {try {Get-AzConsumptionUsageDetail -ErrorAction Stop} catch {if ($_.ToString() -notlike "*422*" -and $_.ToString() -notlike "*UnprocessableEntity*" -and $_.ToString() -notlike "*BadRequest*") {throw $_}}}},
9698
@{Name = "Az.Cdn"; Command = {Get-AzCdnProfile -ErrorAction Stop}},
9799
@{Name = "Az.CognitiveServices"; Command = {Get-AzCognitiveServicesAccount -ErrorAction Stop}},
98100
@{Name = "Az.Compute"; Command = {Get-AzVM -ErrorAction Stop}},
99101
@{Name = "Az.ContainerInstance"; Command = {Get-AzContainerGroup -ErrorAction Stop}},
100-
@{Name = "Az.ContainerRegistry"; Command = {Get-AzContainerRegistry -ErrorAction Stop}},
102+
@{Name = "Az.ContainerRegistry [MngmPlane]"; Command = {Get-AzContainerRegistry -ErrorAction Stop}},
103+
@{Name = "Az.ContainerRegistry [DataPlane]"; Command = {Get-Command Get-AzContainerRegistryManifest -ErrorAction Stop}},
101104
@{Name = "Az.DataBoxEdge"; Command = {Get-AzDataBoxEdgeDevice -ResourceGroupName $resourceGroupName -ErrorAction Stop}},
102105
@{Name = "Az.Databricks"; Command = {Get-AzDatabricksWorkspace -ResourceGroupName $resourceGroupName -ErrorAction Stop}},
103106
@{Name = "Az.DataFactory [V1]"; Command = {Get-AzDataFactory -ResourceGroupName $resourceGroupName -ErrorAction Stop}},
104107
@{Name = "Az.DataFactoryV2 [V2]"; Command = {Get-AzDataFactoryV2 -ErrorAction Stop}},
105108
@{Name = "Az.DataLakeAnalytics"; Command = {Get-AzDataLakeAnalyticsAccount -ErrorAction Stop}},
106-
@{Name = "Az.DataLakeStore"; Command = {Get-AzDataLakeStoreAccount -ErrorAction Stop}},
109+
@{Name = "Az.DataLakeStore [MngmPlane]"; Command = {Get-AzDataLakeStoreAccount -ErrorAction Stop}},
110+
@{Name = "Az.DataLakeStore [DataPlane]"; Command = {Get-Command New-AzDataLakeStoreItem -ErrorAction Stop}},
107111
@{Name = "Az.DataShare"; Command = {Get-AzDataShareAccount -ResourceGroupName $resourceGroupName -ErrorAction Stop}},
108112
# Waiting for an issue fix: https://github.com/Azure/azure-powershell/issues/13522#issuecomment-728659457
109113
# @{Name = "Az.DeploymentManager"; Command = {try {Get-AzDeploymentManagerArtifactSource -ResourceGroupName $resourceGroupName -ErrorAction Stop}catch {if ($_.ToString() -notlike "*not found*") {throw $_}}}},
@@ -116,8 +120,10 @@ $resourceTestCommands = @(
116120
@{Name = "Az.Functions"; Command = {Get-AzFunctionApp -ErrorAction Stop}},
117121
@{Name = "Az.HDInsight "; Command = {Get-AzHDInsightCluster -ErrorAction Stop}},
118122
@{Name = "Az.HealthcareApis"; Command = {Get-AzHealthcareApisService -ErrorAction Stop}},
119-
@{Name = "Az.IotHub"; Command = {Get-AzIotHub -ErrorAction Stop}},
120-
@{Name = "Az.KeyVault"; Command = {Get-AzKeyVault -ErrorAction Stop}},
123+
@{Name = "Az.IotHub [MngmPlane]"; Command = {Get-AzIotHub -ErrorAction Stop}},
124+
@{Name = "Az.IotHub [DataPlane]"; Command = {Get-Command Get-AzIotHubModuleConnectionString -ErrorAction Stop}},
125+
@{Name = "Az.KeyVault [MngmPlane]"; Command = {Get-AzKeyVault -ErrorAction Stop}},
126+
@{Name = "Az.KeyVault [DataPlane]"; Command = {Get-Command Get-AzKeyVaultKey -ErrorAction Stop}},
121127
@{Name = "Az.Kusto"; Command = {Get-AzKustoCluster -ErrorAction Stop}},
122128
@{Name = "Az.LogicApp"; Command = {Get-AzIntegrationAccount -ErrorAction Stop}},
123129
@{Name = "Az.MachineLearning"; Command = {Get-AzMlWebService -ErrorAction Stop}},
@@ -130,7 +136,8 @@ $resourceTestCommands = @(
130136
@{Name = "Az.Monitor"; Command = {Get-AzLogProfile -ErrorAction Stop}},
131137
@{Name = "Az.Network"; Command = {Get-AzNetworkInterface -ErrorAction Stop}},
132138
@{Name = "Az.NotificationHubs"; Command = {Get-AzNotificationHubsNamespace -ErrorAction Stop}},
133-
@{Name = "Az.OperationalInsights"; Command = {Get-AzOperationalInsightsWorkspace -ErrorAction Stop}},
139+
@{Name = "Az.OperationalInsights [MngmPlane]"; Command = {Get-AzOperationalInsightsWorkspace -ErrorAction Stop}},
140+
@{Name = "Az.OperationalInsights [DataPlane]"; Command = {Get-Command Invoke-AzOperationalInsightsQuery -ErrorAction Stop}},
134141
@{Name = "Az.PolicyInsights"; Command = {Get-AzPolicyEvent -Top 10 -ErrorAction Stop}}, # without -Top service may return 400: ResponseTooLarge
135142
@{Name = "Az.PowerBIEmbedded"; Command = {Get-AzPowerBIEmbeddedCapacity -ErrorAction Stop}},
136143
@{Name = "Az.PowerBIUEmbedded"; Command = {Get-AzPowerBIWorkspaceCollection -ErrorAction Stop}},
@@ -139,14 +146,16 @@ $resourceTestCommands = @(
139146
@{Name = "Az.RedisCache"; Command = {Get-AzRedisCache -ErrorAction Stop}},
140147
@{Name = "Az.Relay"; Command = {Get-AzRelayNamespace -ErrorAction Stop}},
141148
@{Name = "Az.ServiceBus"; Command = {Get-AzServiceBusNamespace -ErrorAction Stop}},
142-
@{Name = "Az.ServiceFabric"; Command = {Get-AzServiceFabricCluster -ErrorAction Stop}},
149+
@{Name = "Az.ServiceFabric [MngmPlane]"; Command = {Get-AzServiceFabricCluster -ErrorAction Stop}},
150+
@{Name = "Az.ServiceFabric [DataPlane]"; Command = {Get-Command New-AzServiceFabricCluster -ErrorAction Stop}},
143151
@{Name = "Az.SignalR"; Command = {Get-AzSignalR -ErrorAction Stop}},
144152
@{Name = "Az.Sql"; Command = {Get-AzSqlServer -ErrorAction Stop}},
145153
@{Name = "Az.SqlVirtualMachine"; Command = {Get-AzSqlVM -ErrorAction Stop}},
146154
@{Name = "Az.StreamAnalytics"; Command = {Get-AzStreamAnalyticsJob -ErrorAction Stop}},
147155
@{Name = "Az.StorageSync"; Command = {Get-AzStorageSyncService -ErrorAction Stop}},
148156
@{Name = "Az.Support"; Command = {Get-AzSupportTicket -ErrorAction Stop}},
149157
@{Name = "Az.Resources [Tags]"; Command = {Get-AzTag -ErrorAction Stop}},
158+
@{Name = "Az.Resources [MSGraph]"; Command = {Get-AzAdGroup -First 1 -ErrorAction Stop}},
150159
@{Name = "Az.TrafficManager"; Command = {Get-AzTrafficManagerProfile -ErrorAction Stop}},
151160
@{Name = "Az.Billing [UsageAggregates]"; Command = {Get-UsageAggregates -ReportedStartTime '1/1/2018' -ReportedEndTime '1/2/2018' -ErrorAction Stop}},
152161
@{Name = "Az.Websites"; Command = {Get-AzWebApp -ErrorAction Stop}}

0 commit comments

Comments
 (0)