File tree Expand file tree Collapse file tree 4 files changed +383
-604
lines changed
src/ResourceManager/Sql/Commands.Sql.Test
SessionRecords/Microsoft.Azure.Commands.Sql.Test.ScenarioTests.AuditingTests Expand file tree Collapse file tree 4 files changed +383
-604
lines changed Original file line number Diff line number Diff line change @@ -56,13 +56,14 @@ public void TestAuditingDatabaseUpdatePolicyWithStorageV2()
56
56
RunPowerShellTest ( "Test-AuditingDatabaseUpdatePolicyWithStorageV2" ) ;
57
57
}
58
58
59
- [ Fact ( Skip = "PSGet: TODO fix by moving SM specific logic to test setup" ) ] [ Trait ( Category . AcceptanceType , Category . Sql ) ]
59
+ [ Fact ( Skip = "PSGet: TODO fix by moving SM specific logic to test setup" ) ]
60
+ [ Trait ( Category . AcceptanceType , Category . Sql ) ]
60
61
public void TestAuditingServerUpdatePolicyWithStorage ( )
61
62
{
62
63
RunPowerShellTest ( "Test-AuditingServerUpdatePolicyWithStorage" ) ;
63
64
}
64
65
65
- [ Fact ] // (Skip = "PSGet: TODO fix by moving SM specific logic to test setup")]
66
+ [ Fact ( Skip = "PSGet: TODO fix by moving SM specific logic to test setup" ) ]
66
67
[ Trait ( Category . AcceptanceType , Category . Sql ) ]
67
68
public void TestAuditingDatabaseUpdatePolicyWithEventTypes ( )
68
69
{
Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ function Create-TestEnvironmentWithParams ($params)
63
63
{
64
64
New-AzureRmResourceGroup - Name $params.rgname - Location " West US" - Force
65
65
New-AzureRmResourceGroupDeployment - ResourceGroupName $params.rgname - TemplateFile " .\Templates\sql-audit-test-env-setup.json" - serverName $params.serverName - databaseName $params.databaseName - EnvLocation " West US" - Force
66
- Azure\ New-AzureStorageAccount - Name $params.storageAccount - Location " West US" - Type " Standard_GRS"
66
+ New-AzureRmStorageAccount - Name $params.storageAccount - Location " West US" - ResourceGroupName $params .rgname - Type " Standard_GRS
67
67
}
68
68
69
69
<#
Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ protected void RunPowerShellTest(params string[] scripts)
70
70
71
71
helper . SetupEnvironment ( ) ;
72
72
73
- helper . SetupModules ( AzureModule . AzureServiceManagement ,
73
+ helper . SetupModules ( AzureModule . AzureResourceManager ,
74
74
"ScenarioTests\\ Common.ps1" ,
75
75
"ScenarioTests\\ " + this . GetType ( ) . Name + ".ps1" ,
76
76
helper . RMProfileModule ,
@@ -79,9 +79,6 @@ protected void RunPowerShellTest(params string[] scripts)
79
79
helper . RMStorageModule ,
80
80
helper . GetRMModulePath ( @"AzureRM.Insights.psd1" ) ,
81
81
helper . GetRMModulePath ( @"AzureRM.Sql.psd1" ) ) ;
82
-
83
-
84
-
85
82
helper . RunPowerShellTest ( scripts ) ;
86
83
}
87
84
}
You can’t perform that action at this time.
0 commit comments