@@ -55,6 +55,12 @@ public AzPredictorTelemetryTests(ModelFixture modelFixture)
55
55
[ InlineData ( @"C:\Users\MyName\exe" ) ]
56
56
[ InlineData ( @"az storage" ) ]
57
57
[ InlineData ( @"get" ) ]
58
+ [ InlineData ( @"-StorageAccountKey""xxx""NewAzStorageContainer -context xxx" ) ]
59
+ [ InlineData ( @"-StorageAccountKey\""xxx\""NewAzStorageContainer -context xxx" ) ]
60
+ [ InlineData ( @"-StorageAccountKey""xxx""New-AzStorageContainer -context xxx" ) ]
61
+ [ InlineData ( @"New-AzureStorageContext-StorageAccountName ""xxx"" -StorageAccountKey ""xxx""" ) ]
62
+ [ InlineData ( @"sig=xxxxxxxxxxx/Sensor-Azure" ) ]
63
+ [ InlineData ( @"sig=Signature/Test-Sensor-Azu" ) ]
58
64
public async Task VerifyOnCommandLineAcceptedForOneUnsupportedCommandHistory ( string inputData )
59
65
{
60
66
var expectedTelemetryCount = 2 ;
@@ -151,6 +157,7 @@ public async Task VerifyOnCommandLineAcceptedForOneSupportedCommandWithoutParame
151
157
[ InlineData ( "Get-AzRoleAssignment -ObjectId ***" , "Remove-AzRoleAssignment -RoleDefinitionId (Get-AzRoleAssignment -ObjectId xxxx)" ) ]
152
158
[ InlineData ( "Get-AzResourceGroup -Location:***" , "Get-AzResourceGroup rg1 -Location:WestUS3" ) ]
153
159
[ InlineData ( "Get-AzResourceGroup" , "Get-AzResourceGroup rg1 WestUS3" ) ]
160
+ [ InlineData ( "New-AzureStorageContext -StorageAccountKey *** -StorageAccountName ***" , @"New-AzureStorageContext -StorageAccountName ""accountName"" -StorageAccountKey ""accountKey""" ) ]
154
161
public async Task VerifyOnCommandLineAcceptedForOneSupportedCommandWithParameter ( string expectedValue , string inputData )
155
162
{
156
163
var expectedTelemetryCount = 2 ;
@@ -556,8 +563,15 @@ public async Task VerifyOnCommandLineAcceptedException()
556
563
[ InlineData ( "Set-Az" , "Set-Az" ) ]
557
564
[ InlineData ( "Get-azR" , "Get-azR" ) ]
558
565
[ InlineData ( "start_of_snippet" , "NonVerb-AzResource" ) ]
559
- [ InlineData ( "start_of_snippet" , "Get" ) ]
560
- [ InlineData ( "start_of_snippet" , "Set-" ) ]
566
+ [ InlineData ( "Get" , "Get" ) ]
567
+ [ InlineData ( "Set-" , "Set-" ) ]
568
+ [ InlineData ( "New-AzureStorageContext -StorageAccountKey *** -StorageAccountName ***" , @"New-AzureStorageContext -StorageAccountName ""accountName"" -StorageAccountKey ""accountKey""" ) ]
569
+ [ InlineData ( "start_of_snippet" , @"-StorageAccountKey""xxx""NewAzStorageContainer -context xxx" ) ]
570
+ [ InlineData ( "start_of_snippet" , @"-StorageAccountKey\""xxx\""NewAzStorageContainer -context xxx" ) ]
571
+ [ InlineData ( "start_of_snippet" , @"-StorageAccountKey""xxx""New-AzStorageContainer -context xxx" ) ]
572
+ [ InlineData ( "start_of_snippet" , @"New-AzureStorageContext-StorageAccountName ""xxx"" -StorageAccountKey ""xxx""" ) ]
573
+ [ InlineData ( "start_of_snippet" , @"sig=xxxxxxxxxxx/Sensor-Azure" ) ]
574
+ [ InlineData ( "start_of_snippet" , @"sig=Signature/Test-Sensor-Azu" ) ]
561
575
public void VerifyUserInputInGetSuggestionEvent ( string expectedUserInput , string input )
562
576
{
563
577
var expectedTelemetryCount = 1 ;
0 commit comments