Skip to content

Commit 4090abf

Browse files
committed
Merge pull request #7 from markcowl/fixrsmocks2
fixing matcher for x-ms-version issue
2 parents c3e1816 + ae7cb17 commit 4090abf

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/ResourceManager/RecoveryServices/Commands.RecoveryServices.Test/ScenarioTests/RecoveryServicesTestsBase.cs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
using Microsoft.WindowsAzure.Commands.Test.Utilities.Common;
2727
using Microsoft.Azure.Commands.Common.Authentication.Models;
2828
using System;
29+
using System.Collections.Generic;
2930
using System.Net.Http;
3031
using System.Reflection;
3132

@@ -50,6 +51,14 @@ protected void SetupManagementClients()
5051

5152
protected void RunPowerShellTest(params string[] scripts)
5253
{
54+
Dictionary<string, string> d = new Dictionary<string, string>();
55+
d.Add("Microsoft.Resources", null);
56+
d.Add("Microsoft.Features", null);
57+
d.Add("Microsoft.Authorization", null);
58+
d.Add("Microsoft.Compute", null);
59+
var providersToIgnore = new Dictionary<string, string>();
60+
providersToIgnore.Add("Microsoft.Azure.Management.Resources.ResourceManagementClient", "2016-02-01");
61+
HttpMockServer.Matcher = new PermissiveRecordMatcherWithApiExclusion(true, d, providersToIgnore);
5362
using (UndoContext context = UndoContext.Current)
5463
{
5564
context.Start(TestUtilities.GetCallingClass(2), TestUtilities.GetCurrentMethodName(2));

0 commit comments

Comments
 (0)