File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/ScenarioTests Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 24
24
using System . Net . Security ;
25
25
using System . Reflection ;
26
26
using Microsoft . WindowsAzure . Commands . Test . Utilities . Common ;
27
+ using System . Collections . Generic ;
27
28
28
29
namespace Microsoft . Azure . Commands . AzureBackup . Test . ScenarioTests
29
30
{
@@ -58,6 +59,14 @@ protected void SetupManagementClients()
58
59
59
60
protected void RunPowerShellTest ( params string [ ] scripts )
60
61
{
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 ) ;
61
70
using ( UndoContext context = UndoContext . Current )
62
71
{
63
72
context . Start ( TestUtilities . GetCallingClass ( 2 ) , TestUtilities . GetCurrentMethodName ( 2 ) ) ;
You can’t perform that action at this time.
0 commit comments