Skip to content

Commit 4288585

Browse files
committed
adding test for case insensitive comparison when getting vault
1 parent 6206d94 commit 4288585

File tree

3 files changed

+135
-0
lines changed

3 files changed

+135
-0
lines changed

src/ResourceManager/KeyVault/Commands.KeyVault.Test/Commands.KeyVault.Test.csproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,9 @@
236236
<None Include="SessionRecords\Microsoft.Azure.Commands.KeyVault.Test.ScenarioTests.KeyVaultManagementTests\TestGetVaultByNameAndResourceGroupPositionalParams.json">
237237
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
238238
</None>
239+
<None Include="SessionRecords\Microsoft.Azure.Commands.KeyVault.Test.ScenarioTests.KeyVaultManagementTests\TestGetVaultByNameCapitalized.json">
240+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
241+
</None>
239242
<None Include="SessionRecords\Microsoft.Azure.Commands.KeyVault.Test.ScenarioTests.KeyVaultManagementTests\TestGetVaultFromUnknownResourceGroupFails.json">
240243
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
241244
</None>

src/ResourceManager/KeyVault/Commands.KeyVault.Test/ScenarioTests/KeyVaultManagementTests.cs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,19 @@ public void TestGetVaultByName()
164164
);
165165
}
166166

167+
[Fact]
168+
[Trait(Category.AcceptanceType, Category.CheckIn)]
169+
public void TestGetVaultByNameCapitalized()
170+
{
171+
KeyVaultManagementController.NewInstance.RunPsTestWorkflow(
172+
() => new[] { string.Format("{0} {1}", "Test-GetVaultByName", _data.preCreatedVault.ToUpper()) },
173+
env => Initialize(),
174+
null,
175+
TestUtilities.GetCallingClass(),
176+
TestUtilities.GetCurrentMethodName()
177+
);
178+
}
179+
167180
[Fact]
168181
[Trait(Category.AcceptanceType, Category.CheckIn)]
169182
public void TestGetUnknownVaultFails()

src/ResourceManager/KeyVault/Commands.KeyVault.Test/SessionRecords/Microsoft.Azure.Commands.KeyVault.Test.ScenarioTests.KeyVaultManagementTests/TestGetVaultByNameCapitalized.json

Lines changed: 119 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)