Skip to content

Commit

Permalink
Update Auditing & ThreatDetection tests. (#4127)
Browse files Browse the repository at this point in the history
Re-recorded tests with updated expecations due to minor changes in service behavior.
  • Loading branch information
jaredmoo authored and shahabhijeet committed Mar 15, 2018
1 parent 0dd407c commit 15949b8
Show file tree
Hide file tree
Showing 4 changed files with 711 additions and 354 deletions.
9 changes: 5 additions & 4 deletions src/SDKs/SqlManagement/Sql.Tests/BlobAuditingTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,10 @@ private void VerifyDatabaseAuditingPolicyInformation(DatabaseBlobAuditingPolicy
Assert.Equal(expected.RetentionDays, actual.RetentionDays);
Assert.Equal(expected.StorageEndpoint, actual.StorageEndpoint);
Assert.Equal(string.Empty, actual.StorageAccountAccessKey);
if (expected.AuditActionsAndGroups == null)
if (expected.AuditActionsAndGroups == null || actual.AuditActionsAndGroups == null)
{
Assert.Equal(null, actual.AuditActionsAndGroups);
Assert.Null(expected.AuditActionsAndGroups);
Assert.Null(actual.AuditActionsAndGroups);
}
else
{
Expand All @@ -175,8 +176,8 @@ private DatabaseBlobAuditingPolicy GetDefaultDatabaseBlobAuditingProperties()
State = BlobAuditingPolicyState.Disabled,
RetentionDays = 0,
StorageAccountAccessKey = string.Empty,
StorageEndpoint = string.Empty,
AuditActionsAndGroups = new List<string>(),
StorageEndpoint = null,
AuditActionsAndGroups = null,
StorageAccountSubscriptionId = new Guid("00000000-0000-0000-0000-000000000000"),
IsStorageSecondaryKeyInUse = false,
};
Expand Down
Loading

0 comments on commit 15949b8

Please sign in to comment.