Skip to content

Commit

Permalink
Merge pull request #7 from markcowl/fixrsmocks2
Browse files Browse the repository at this point in the history
fixing matcher for x-ms-version issue
  • Loading branch information
sriramvu committed Mar 22, 2016
2 parents c3e1816 + ae7cb17 commit 4090abf
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
using Microsoft.WindowsAzure.Commands.Test.Utilities.Common;
using Microsoft.Azure.Commands.Common.Authentication.Models;
using System;
using System.Collections.Generic;
using System.Net.Http;
using System.Reflection;

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

protected void RunPowerShellTest(params string[] scripts)
{
Dictionary<string, string> d = new Dictionary<string, string>();
d.Add("Microsoft.Resources", null);
d.Add("Microsoft.Features", null);
d.Add("Microsoft.Authorization", null);
d.Add("Microsoft.Compute", null);
var providersToIgnore = new Dictionary<string, string>();
providersToIgnore.Add("Microsoft.Azure.Management.Resources.ResourceManagementClient", "2016-02-01");
HttpMockServer.Matcher = new PermissiveRecordMatcherWithApiExclusion(true, d, providersToIgnore);
using (UndoContext context = UndoContext.Current)
{
context.Start(TestUtilities.GetCallingClass(2), TestUtilities.GetCurrentMethodName(2));
Expand Down

0 comments on commit 4090abf

Please sign in to comment.