Skip to content

Commit 0e85db2

Browse files
author
Jianghao Lu
committed
fixes #103823362 undo renaming for key vault data plane cmdlets
1 parent 29f8f3a commit 0e85db2

File tree

8 files changed

+342
-342
lines changed

8 files changed

+342
-342
lines changed

src/ResourceManager/Compute/Commands.Compute/Microsoft.Azure.Commands.Compute.dll-Help.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -724,7 +724,7 @@ PS C:\> Update-AzureRMVM -ResourceGroupName "ResourceGroup11" -Name " Virtual
724724
<dev:version />
725725
</command:details>
726726
<maml:description>
727-
<maml:para>The Add-AzureRMVMSecret cmdlet adds a secret to a virtual machine. This value lets you add a certificate to the virtual machine. The secret needs to be stored in a Key Vault. For more information about Key Vault, see <maml:navigationLink><maml:linkText>What is Azure Key Vault?</maml:linkText><maml:uri></maml:uri></maml:navigationLink> (https://azure.microsoft.com/en-us/documentation/articles/key-vault-whatis/) in the Azure library. For more information about the cmdlets, see <maml:navigationLink><maml:linkText>Azure Key Vault Cmdlets</maml:linkText><maml:uri></maml:uri></maml:navigationLink> (https://msdn.microsoft.com/library/azure/dn868052.aspx) in the Microsoft Developer Network library or type Get-Help Set-AzureRMKeyVaultSecret.</maml:para>
727+
<maml:para>The Add-AzureRMVMSecret cmdlet adds a secret to a virtual machine. This value lets you add a certificate to the virtual machine. The secret needs to be stored in a Key Vault. For more information about Key Vault, see <maml:navigationLink><maml:linkText>What is Azure Key Vault?</maml:linkText><maml:uri></maml:uri></maml:navigationLink> (https://azure.microsoft.com/en-us/documentation/articles/key-vault-whatis/) in the Azure library. For more information about the cmdlets, see <maml:navigationLink><maml:linkText>Azure Key Vault Cmdlets</maml:linkText><maml:uri></maml:uri></maml:navigationLink> (https://msdn.microsoft.com/library/azure/dn868052.aspx) in the Microsoft Developer Network library or type Get-Help Set-AzureKeyVaultSecret.</maml:para>
728728
</maml:description>
729729
<command:syntax>
730730
<command:syntaxItem>

src/ResourceManager/KeyVault/Commands.KeyVault.Test/Scripts/Common.ps1

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ function Initialize-KeyTest
152152
{
153153
$keyVault = Get-KeyVault
154154
$keyPattern = Get-KeyName '*'
155-
Get-AzureRMKeyVaultKey $keyVault | Where-Object {$_.KeyName -like $keyPattern} | Remove-AzureRMKeyVaultKey -Force -Confirm:$false
155+
Get-AzureKeyVaultKey $keyVault | Where-Object {$_.KeyName -like $keyPattern} | Remove-AzureKeyVaultKey -Force -Confirm:$false
156156
}
157157

158158
<#
@@ -163,7 +163,7 @@ function Initialize-SecretTest
163163
{
164164
$keyVault = Get-KeyVault
165165
$secretPattern = Get-SecretName '*'
166-
Get-AzureRMKeyVaultSecret $keyVault | Where-Object {$_.SecretName -like $secretPattern} | Remove-AzureRMKeyVaultSecret -Force -Confirm:$false
166+
Get-AzureKeyVaultSecret $keyVault | Where-Object {$_.SecretName -like $secretPattern} | Remove-AzureKeyVaultSecret -Force -Confirm:$false
167167
}
168168

169169

@@ -181,7 +181,7 @@ function Cleanup-SingleKeyTest
181181
{
182182
$keyVault = Get-KeyVault
183183
Write-Debug "Removing key with name $_ in vault $keyVault"
184-
$catch = Remove-AzureRMKeyVaultKey $keyVault $_ -Force -Confirm:$false
184+
$catch = Remove-AzureKeyVaultKey $keyVault $_ -Force -Confirm:$false
185185
}
186186
catch
187187
{
@@ -205,7 +205,7 @@ function Cleanup-SingleSecretTest
205205
{
206206
$keyVault = Get-KeyVault
207207
Write-Debug "Removing secret with name $_ in vault $keyVault"
208-
$catch = Remove-AzureRMKeyVaultSecret $keyVault $_ -Force -Confirm:$false
208+
$catch = Remove-AzureKeyVaultSecret $keyVault $_ -Force -Confirm:$false
209209
}
210210
catch
211211
{

src/ResourceManager/KeyVault/Commands.KeyVault.Test/Scripts/RunKeyVaultTests.ps1

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ function Run-AllControlPlaneTests
127127

128128
function Run-AllDataPlaneTests
129129
{
130-
# Add-AzureRMKeyVaultKey tests
130+
# Add-AzureKeyVaultKey tests
131131
Run-TestProtected { Run-KeyTest {Test_CreateSoftwareKeyWithDefaultAttributes} "Test_CreateSoftwareKeyWithDefaultAttributes" } "Test_CreateSoftwareKeyWithDefaultAttributes"
132132
Run-TestProtected { Run-KeyTest {Test_CreateSoftwareKeyWithCustomAttributes} "Test_CreateSoftwareKeyWithCustomAttributes" } "Test_CreateSoftwareKeyWithCustomAttributes"
133133
Run-TestProtected { Run-KeyTest {Test_CreateHsmKeyWithDefaultAttributes} "Test_CreateHsmKeyWithDefaultAttributes" } "Test_CreateHsmKeyWithDefaultAttributes"
@@ -149,7 +149,7 @@ function Run-AllDataPlaneTests
149149
Run-TestProtected { Run-KeyTest {Test_ImportByokAsSoftwareKey} "Test_ImportByokAsSoftwareKey" } "Test_ImportByokAsSoftwareKey"
150150
Run-TestProtected { Run-KeyTest {Test_CreateKeyInNoPermissionVault} "Test_CreateKeyInNoPermissionVault" } "Test_CreateKeyInNoPermissionVault"
151151

152-
# Set-AzureRMKeyVaultKeyAttribute tests
152+
# Set-AzureKeyVaultKeyAttribute tests
153153
Run-TestProtected { Run-KeyTest {Test_UpdateIndividualKeyAttributes} "Test_UpdateIndividualKeyAttributes" } "Test_UpdateIndividualKeyAttributes"
154154
Run-TestProtected { Run-KeyTest {Test_UpdateAllEditableKeyAttributes} "Test_UpdateAllEditableKeyAttributes" } "Test_UpdateAllEditableKeyAttributes"
155155
Run-TestProtected { Run-KeyTest {Test_UpdateKeyWithNoChange} "Test_UpdateKeyWithNoChange" } "Test_UpdateKeyWithNoChange"
@@ -161,7 +161,7 @@ function Run-AllDataPlaneTests
161161
Run-TestProtected { Run-KeyTest {Test_SetInvalidKeyAttributes} "Test_SetInvalidKeyAttributes" } "Test_SetInvalidKeyAttributes"
162162
Run-TestProtected { Run-KeyTest {Test_SetKeyInNoPermissionVault} "Test_SetKeyInNoPermissionVault" } "Test_SetKeyInNoPermissionVault"
163163

164-
# Get-AzureRMKeyVaultKey tests
164+
# Get-AzureKeyVaultKey tests
165165
Run-TestProtected { Run-KeyTest {Test_GetOneKey} "Test_GetOneKey" } "Test_GetOneKey"
166166
Run-TestProtected { Run-KeyTest {Test_GetPreviousVersionOfKey} "Test_GetPreviousVersionOfKey" } "Test_GetPreviousVersionOfKey"
167167
Run-TestProtected { Run-KeyTest {Test_GetKeyPositionalParameter} "Test_GetKeyPositionalParameter" } "Test_GetKeyPositionalParameter"
@@ -172,7 +172,7 @@ function Run-AllDataPlaneTests
172172
Run-TestProtected { Run-KeyTest {Test_GetAllKeys} "Test_GetAllKeys" } "Test_GetAllKeys"
173173
Run-TestProtected { Run-KeyTest {Test_GetKeyVersions} "Test_GetKeyVersions" } "Test_GetKeyVersions"
174174

175-
# Remove-AzureRMKeyVaultKey tests
175+
# Remove-AzureKeyVaultKey tests
176176
Run-TestProtected { Run-KeyTest {Test_RemoveKeyWithoutPrompt} "Test_RemoveKeyWithoutPrompt" } "Test_RemoveKeyWithoutPrompt"
177177
Run-TestProtected { Run-KeyTest {Test_RemoveKeyWhatIf} "Test_RemoveKeyWhatIf" } "Test_RemoveKeyWhatIf"
178178
Run-TestProtected { Run-KeyTest {Test_RemoveKeyPositionalParameter} "Test_RemoveKeyPositionalParameter" } "Test_RemoveKeyPositionalParameter"
@@ -181,7 +181,7 @@ function Run-AllDataPlaneTests
181181
Run-TestProtected { Run-KeyTest {Test_RemoveNonExistKey} "Test_RemoveNonExistKey" } "Test_RemoveNonExistKey"
182182
Run-TestProtected { Run-KeyTest {Test_RemoveKeyInNoPermissionVault} "Test_RemoveKeyInNoPermissionVault" } "Test_RemoveKeyInNoPermissionVault"
183183

184-
# Backup-AzureRMKeyVaultKey and Restore-AzureRMKeyVaultKey tests
184+
# Backup-AzureKeyVaultKey and Restore-AzureKeyVaultKey tests
185185
Run-TestProtected { Run-KeyTest {Test_BackupRestoreKey} "Test_BackupRestoreKey" } "Test_BackupRestoreKey"
186186
Run-TestProtected { Run-KeyTest {Test_BackupNonExisitingKey} "Test_BackupNonExisitingKey" } "Test_BackupNonExisitingKey"
187187
Run-TestProtected { Run-KeyTest {Test_BackupToANamedFile} "Test_BackupToANamedFile" } "Test_BackupToANamedFile"
@@ -194,7 +194,7 @@ function Run-AllDataPlaneTests
194194
Run-TestProtected { Run-KeyTest {Test_PipelineUpdateKeyVersions} "Test_PipelineUpdateKeyVersions" } "Test_PipelineUpdateKeyVersions"
195195

196196

197-
# Set-AzureRMKeyVaultSecret tests
197+
# Set-AzureKeyVaultSecret tests
198198
Run-TestProtected { Run-SecretTest {Test_CreateSecret} "Test_CreateSecret" } "Test_CreateSecret"
199199
Run-TestProtected { Run-SecretTest {Test_CreateSecretWithCustomAttributes} "Test_CreateSecretWithCustomAttributes" } "Test_CreateSecretWithCustomAttributes"
200200
Run-TestProtected { Run-SecretTest {Test_UpdateSecret} "Test_UpdateSecret" } "Test_UpdateSecret"
@@ -204,7 +204,7 @@ function Run-AllDataPlaneTests
204204
Run-TestProtected { Run-SecretTest {Test_SetSecretInNonExistVault} "Test_SetSecretInNonExistVault" } "Test_SetSecretInNonExistVault"
205205
Run-TestProtected { Run-SecretTest {Test_SetSecretInNoPermissionVault} "Test_SetSecretInNoPermissionVault" } "Test_SetSecretInNoPermissionVault"
206206

207-
# Set-AzureRMKeyVaultSecretAttribute tests
207+
# Set-AzureKeyVaultSecretAttribute tests
208208
Run-TestProtected { Run-SecretTest {Test_UpdateIndividualSecretAttributes} "Test_UpdateIndividualSecretAttributes" } "Test_UpdateIndividualSecretAttributes"
209209
Run-TestProtected { Run-SecretTest {Test_UpdateSecretWithNoChange} "Test_UpdateSecretWithNoChange" } "Test_UpdateSecretWithNoChange"
210210
Run-TestProtected { Run-SecretTest {Test_UpdateAllEditableSecretAttributes} "Test_UpdateAllEditableSecretAttributes" } "Test_UpdateAllEditableSecretAttributes"
@@ -216,7 +216,7 @@ function Run-AllDataPlaneTests
216216
Run-TestProtected { Run-SecretTest {Test_SetInvalidSecretAttributes} "Test_SetInvalidSecretAttributes" } "Test_SetInvalidSecretAttributes"
217217
Run-TestProtected { Run-SecretTest {Test_SetSecretAttrInNoPermissionVault} "Test_SetSecretAttrInNoPermissionVault" } "Test_SetSecretAttrInNoPermissionVault"
218218

219-
# Get-AzureRMKeyVaultSecret tests
219+
# Get-AzureKeyVaultSecret tests
220220
Run-TestProtected { Run-SecretTest {Test_GetOneSecret} "Test_GetOneSecret" } "Test_GetOneSecret"
221221
Run-TestProtected { Run-SecretTest {Test_GetAllSecrets} "Test_GetAllSecrets" } "Test_GetAllSecrets"
222222
Run-TestProtected { Run-SecretTest {Test_GetPreviousVersionOfSecret} "Test_GetPreviousVersionOfSecret" } "Test_GetPreviousVersionOfSecret"
@@ -227,7 +227,7 @@ function Run-AllDataPlaneTests
227227
Run-TestProtected { Run-SecretTest {Test_GetNonExistSecret} "Test_GetNonExistSecret" } "Test_GetNonExistSecret"
228228
Run-TestProtected { Run-SecretTest {Test_GetSecretInNoPermissionVault} "Test_GetSecretInNoPermissionVault" } "Test_GetSecretInNoPermissionVault"
229229

230-
# Remove-AzureRMKeyVaultSecret tests
230+
# Remove-AzureKeyVaultSecret tests
231231
Run-TestProtected { Run-SecretTest {Test_RemoveSecretWithoutPrompt} "Test_RemoveSecretWithoutPrompt" } "Test_RemoveSecretWithoutPrompt"
232232
Run-TestProtected { Run-SecretTest {Test_RemoveSecretWhatIf} "Test_RemoveSecretWhatIf" } "Test_RemoveSecretWhatIf"
233233
Run-TestProtected { Run-SecretTest {Test_RemoveSecretPositionalParameter} "Test_RemoveSecretPositionalParameter" } "Test_RemoveSecretPositionalParameter"

0 commit comments

Comments
 (0)