Skip to content

Commit 559bf36

Browse files
committed
Revert
1 parent c984222 commit 559bf36

File tree

2 files changed

+498
-1137
lines changed

2 files changed

+498
-1137
lines changed

src/ResourceManager/Sql/Commands.Sql.Test/ScenarioTests/AuditingTests.ps1

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ Tests the flow in which re-setting the policy with storage account that has the
7878
function Test-AuditingDatabaseUpdatePolicyWithSameNameStorageOnDifferentRegion
7979
{
8080
# Setup
81-
$testSuffix = 2739
81+
$testSuffix = 1739
8282
Create-TestEnvironmentWithStorageV2 $testSuffix
8383
$params = Get-SqlAuditingTestEnvironmentParameters $testSuffix
8484

@@ -98,14 +98,13 @@ function Test-AuditingDatabaseUpdatePolicyWithSameNameStorageOnDifferentRegion
9898
New-AzureRmResourceGroup -Location "japanwest" -ResourceGroupName $newResourceGroupName
9999
New-AzureRmStorageAccount -StorageAccountName $params.storageAccount -ResourceGroupName $newResourceGroupName -Location "japanwest" -Type Standard_GRS
100100

101-
Set-AzureRmSqlDatabaseAuditingPolicy -ResourceGroupName $params.rgname -ServerName $params.serverName -DatabaseName $params.databaseName -StorageAccountName $params.storageAccount -RetentionInDays 10
101+
Set-AzureRmSqlDatabaseAuditingPolicy -ResourceGroupName $params.rgname -ServerName $params.serverName -DatabaseName $params.databaseName -StorageAccountName $params.storageAccount
102102
$policy = Get-AzureRmSqlDatabaseAuditingPolicy -ResourceGroupName $params.rgname -ServerName $params.serverName -DatabaseName $params.databaseName
103103

104104
# Assert
105105
Assert-AreEqual $policy.StorageAccountName $params.storageAccount
106106
Assert-AreEqual $policy.AuditState "Enabled"
107107
Assert-AreEqual $policy.UseServerDefault "Disabled"
108-
Assert-AreEqual $policy.RetentionInDays 10
109108
}
110109
finally
111110
{

0 commit comments

Comments
 (0)