Skip to content

SQL audit and threat detection tests updates #1282

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Nov 12, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -535,10 +535,16 @@
<None Include="SessionRecords\Microsoft.Azure.Commands.Sql.Test.ScenarioTests.LocationCapabilitiesTests\TestLocationCapabilities.json">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Include="Templates\sql-ddm-test-env-setup.json">
<None Include="Templates\sql-audit-test-env-setup-storageV2.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Include="Templates\sql-audit-test-env-setup-classic-storage.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Include="Templates\sql-audit-test-env-setup.json">
<None Include="Templates\sql-td-test-env-setup.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Include="Templates\sql-ddm-test-env-setup.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ protected override void SetupManagementClients()
helper.SetupSomeOfManagementClients(sqlCSMClient, storageClient, storageV2Client, resourcesClient, authorizationClient);
}

[Fact(Skip = "PSGet: TODO fix by moving SM specific logic to test setup")]
[Fact]
[Trait(Category.AcceptanceType, Category.Sql)]
public void TestAuditingDatabaseUpdatePolicyWithStorage()
{
Expand All @@ -46,168 +46,168 @@ public void TestAuditingDatabaseUpdatePolicyWithStorageV2()
RunPowerShellTest("Test-AuditingDatabaseUpdatePolicyWithStorageV2");
}

[Fact(Skip = "PSGet: TODO fix by moving SM specific logic to test setup")]
[Fact]
[Trait(Category.AcceptanceType, Category.Sql)]
public void TestAuditingServerUpdatePolicyWithStorage()
{
RunPowerShellTest("Test-AuditingServerUpdatePolicyWithStorage");
}

[Fact(Skip = "PSGet: TODO fix by moving SM specific logic to test setup")]
[Fact]
[Trait(Category.AcceptanceType, Category.Sql)]
public void TestAuditingDatabaseUpdatePolicyWithEventTypes()
{
RunPowerShellTest("Test-AuditingDatabaseUpdatePolicyWithEventTypes");
}

[Fact(Skip = "PSGet: TODO fix by moving SM specific logic to test setup")]
[Fact]
[Trait(Category.AcceptanceType, Category.Sql)]
public void TestAuditingServerUpdatePolicyWithEventTypes()
{
RunPowerShellTest("Test-AuditingServerUpdatePolicyWithEventTypes");
}

[Fact(Skip = "PSGet: TODO fix by moving SM specific logic to test setup")]
[Fact]
[Trait(Category.AcceptanceType, Category.Sql)]
public void TestAuditingDisableDatabaseAuditing()
{
RunPowerShellTest("Test-AuditingDisableDatabaseAuditing");
}

[Fact(Skip = "PSGet: TODO fix by moving SM specific logic to test setup")]
[Fact]
[Trait(Category.AcceptanceType, Category.Sql)]
public void TestAuditingDisableServerAuditing()
{
RunPowerShellTest("Test-AuditingDisableServerAuditing");
}

[Fact(Skip = "PSGet: TODO fix by moving SM specific logic to test setup")]
[Fact]
[Trait(Category.AcceptanceType, Category.Sql)]
public void TestAuditingDatabaseDisableEnableKeepProperties()
{
RunPowerShellTest("Test-AuditingDatabaseDisableEnableKeepProperties");
}

[Fact(Skip = "PSGet: TODO fix by moving SM specific logic to test setup")]
[Fact]
[Trait(Category.AcceptanceType, Category.Sql)]
public void TestAuditingServerDisableEnableKeepProperties()
{
RunPowerShellTest("Test-AuditingServerDisableEnableKeepProperties");
}

[Fact(Skip = "PSGet: TODO fix by moving SM specific logic to test setup")]
[Fact]
[Trait(Category.AcceptanceType, Category.Sql)]
public void TestAuditingUseServerDefault()
{
RunPowerShellTest("Test-AuditingUseServerDefault");
}

[Fact(Skip = "PSGet: TODO fix by moving SM specific logic to test setup")]
[Fact]
[Trait(Category.AcceptanceType, Category.Sql)]
public void TestAuditingFailedDatabaseUpdatePolicyWithNoStorage()
{
RunPowerShellTest("Test-AuditingFailedDatabaseUpdatePolicyWithNoStorage");
}

[Fact(Skip = "PSGet: TODO fix by moving SM specific logic to test setup")]
[Fact]
[Trait(Category.AcceptanceType, Category.Sql)]
public void TestAuditingFailedServerUpdatePolicyWithNoStorage()
{
RunPowerShellTest("Test-AuditingFailedServerUpdatePolicyWithNoStorage");
}

[Fact(Skip = "PSGet: TODO fix by moving SM specific logic to test setup")]
[Fact]
[Trait(Category.AcceptanceType, Category.Sql)]
public void TestAuditingFailedUseServerDefault()
{
RunPowerShellTest("Test-AuditingFailedUseServerDefault");
}

[Fact(Skip = "PSGet: TODO fix by moving SM specific logic to test setup")]
[Fact]
[Trait(Category.AcceptanceType, Category.Sql)]
public void TestAuditingDatabaseUpdatePolicyWithEventTypeShortcuts()
{
RunPowerShellTest("Test-AuditingDatabaseUpdatePolicyWithEventTypeShortcuts");
}

[Fact(Skip = "PSGet: TODO fix by moving SM specific logic to test setup")]
[Fact]
[Trait(Category.AcceptanceType, Category.Sql)]
public void TestAuditingServerUpdatePolicyWithEventTypeShortcuts()
{
RunPowerShellTest("Test-AuditingServerUpdatePolicyWithEventTypeShortcuts");
}

[Fact(Skip = "PSGet: TODO fix by moving SM specific logic to test setup")]
[Fact]
[Trait(Category.AcceptanceType, Category.Sql)]
public void TestAuditingDatabaseUpdatePolicyKeepPreviousStorage()
{
RunPowerShellTest("Test-AuditingDatabaseUpdatePolicyKeepPreviousStorage");
}

[Fact(Skip = "PSGet: TODO fix by moving SM specific logic to test setup")]
[Fact]
[Trait(Category.AcceptanceType, Category.Sql)]
public void TestAuditingServerUpdatePolicyKeepPreviousStorage()
{
RunPowerShellTest("Test-AuditingServerUpdatePolicyKeepPreviousStorage");
}

[Fact(Skip = "PSGet: TODO fix by moving SM specific logic to test setup")]
[Fact]
[Trait(Category.AcceptanceType, Category.Sql)]
public void TestAuditingFailWithBadDatabaseIndentity()
{
RunPowerShellTest("Test-AuditingFailWithBadDatabaseIndentity");
}

[Fact(Skip = "PSGet: TODO fix by moving SM specific logic to test setup")]
[Fact]
[Trait(Category.AcceptanceType, Category.Sql)]
public void TestAuditingFailWithBadServerIndentity()
{
RunPowerShellTest("Test-AuditingFailWithBadServerIndentity");
}

[Fact(Skip = "PSGet: TODO fix by moving SM specific logic to test setup")]
[Fact]
[Trait(Category.AcceptanceType, Category.Sql)]
public void TestAuditingDatabaseStorageKeyRotation()
{
RunPowerShellTest("Test-AuditingDatabaseStorageKeyRotation");
}

[Fact(Skip = "PSGet: TODO fix by moving SM specific logic to test setup")]
[Fact]
[Trait(Category.AcceptanceType, Category.Sql)]
public void TestAuditingServerStorageKeyRotation()
{
RunPowerShellTest("Test-AuditingServerStorageKeyRotation");
}

[Fact(Skip = "PSGet: TODO fix by moving SM specific logic to test setup")]
[Fact]
[Trait(Category.AcceptanceType, Category.Sql)]
public void TestAuditingServerUpdatePolicyWithRetention()
{
RunPowerShellTest("Test-AuditingServerUpdatePolicyWithRetention");
}

[Fact(Skip = "PSGet: TODO fix by moving SM specific logic to test setup")]
[Fact]
[Trait(Category.AcceptanceType, Category.Sql)]
public void TestAuditingDatabaseUpdatePolicyWithRetention()
{
RunPowerShellTest("Test-AuditingDatabaseUpdatePolicyWithRetention");
}

[Fact(Skip = "PSGet: TODO fix by moving SM specific logic to test setup")]
[Fact]
[Trait(Category.AcceptanceType, Category.Sql)]
public void TestAuditingServerRetentionKeepProperties()
{
RunPowerShellTest("Test-AuditingServerRetentionKeepProperties");
}

[Fact(Skip = "PSGet: TODO fix by moving SM specific logic to test setup")]
[Fact]
[Trait(Category.AcceptanceType, Category.Sql)]
public void TestAuditingDatabaseRetentionKeepProperties()
{
RunPowerShellTest("Test-AuditingDatabaseRetentionKeepProperties");
}

[Fact(Skip = "PSGet: TODO fix by moving SM specific logic to test setup")]
[Fact]
[Trait(Category.AcceptanceType, Category.Sql)]
public void TestAuditingDatabaseUpdatePolicyWithSameNameStorageOnDifferentRegion()
{
Expand Down
Loading