Skip to content

Commit 3444776

Browse files
author
Hovsep Mkrtchyan
committed
Fixed AzureBackup failing test.
1 parent 2d24fe6 commit 3444776

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/ScenarioTests/AzureBackupTestBase.cs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
using System.Net.Security;
2525
using System.Reflection;
2626
using Microsoft.WindowsAzure.Commands.Test.Utilities.Common;
27+
using System.Collections.Generic;
2728

2829
namespace Microsoft.Azure.Commands.AzureBackup.Test.ScenarioTests
2930
{
@@ -58,6 +59,14 @@ protected void SetupManagementClients()
5859

5960
protected void RunPowerShellTest(params string[] scripts)
6061
{
62+
Dictionary<string, string> d = new Dictionary<string, string>();
63+
d.Add("Microsoft.Resources", null);
64+
d.Add("Microsoft.Features", null);
65+
d.Add("Microsoft.Authorization", null);
66+
d.Add("Microsoft.Compute", null);
67+
var providersToIgnore = new Dictionary<string, string>();
68+
providersToIgnore.Add("Microsoft.Azure.Management.Resources.ResourceManagementClient", "2016-02-01");
69+
HttpMockServer.Matcher = new PermissiveRecordMatcherWithApiExclusion(true, d, providersToIgnore);
6170
using (UndoContext context = UndoContext.Current)
6271
{
6372
context.Start(TestUtilities.GetCallingClass(2), TestUtilities.GetCurrentMethodName(2));

0 commit comments

Comments
 (0)