Skip to content

Commit 68fac69

Browse files
committed
Preventing unnecessary tests from failing due to server version bump
1 parent 8859dbc commit 68fac69

34 files changed

+102
-1
lines changed

src/Sql/Sql.Test/ScenarioTests/AdvancedDataSecurityTests.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ protected override void SetupManagementClients(RestTestFramework.MockContext con
3232

3333
public AdvancedDataSecurityTests(ITestOutputHelper output) : base(output)
3434
{
35+
base.resourceTypesToIgnoreApiVersion = new string[] {
36+
"Microsoft.Sql/servers"
37+
};
3538
}
3639

3740
[Fact]

src/Sql/Sql.Test/ScenarioTests/AdvisorTests.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ public class AdvisorTests : SqlTestsBase
2323
{
2424
public AdvisorTests(ITestOutputHelper output) : base(output)
2525
{
26+
base.resourceTypesToIgnoreApiVersion = new string[] {
27+
"Microsoft.Sql/servers"
28+
};
2629
}
2730

2831
#region Server Advisor Tests

src/Sql/Sql.Test/ScenarioTests/AuditTests.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ protected override void SetupManagementClients(RestTestFramework.MockContext con
3838

3939
public AuditTests(ITestOutputHelper output) : base(output)
4040
{
41+
base.resourceTypesToIgnoreApiVersion = new string[] {
42+
"Microsoft.Sql/servers"
43+
};
4144
}
4245

4346
[Fact]

src/Sql/Sql.Test/ScenarioTests/DataClassificationTests.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ public class DataClassificationTests : SqlTestsBase
2424
public DataClassificationTests(ITestOutputHelper output) : base(output)
2525
{
2626
base.resourceTypesToIgnoreApiVersion = new string[] {
27-
"Microsoft.Sql/managedInstances"
27+
"Microsoft.Sql/managedInstances",
28+
"Microsoft.Sql/servers"
2829
};
2930
}
3031

src/Sql/Sql.Test/ScenarioTests/DataMaskingTests.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ protected override void SetupManagementClients(RestTestFramework.MockContext con
3131

3232
public DataMaskingTests(ITestOutputHelper output) : base(output)
3333
{
34+
base.resourceTypesToIgnoreApiVersion = new string[] {
35+
"Microsoft.Sql/servers"
36+
};
3437
}
3538

3639
[Fact]

src/Sql/Sql.Test/ScenarioTests/DataSyncTests.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ public class DataSyncTests : SqlTestsBase
2525
public DataSyncTests(ITestOutputHelper output) : base(output)
2626
{
2727
XunitTracingInterceptor.AddToContext(new XunitTracingInterceptor(output));
28+
29+
base.resourceTypesToIgnoreApiVersion = new string[] {
30+
"Microsoft.Sql/servers"
31+
};
2832
}
2933

3034
[Fact]

src/Sql/Sql.Test/ScenarioTests/DatabaseActivationTests.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ public class DatabaseActivationTests : SqlTestsBase
2323
{
2424
public DatabaseActivationTests(ITestOutputHelper output) : base(output)
2525
{
26+
base.resourceTypesToIgnoreApiVersion = new string[] {
27+
"Microsoft.Sql/servers"
28+
};
2629
}
2730

2831
[Fact]

src/Sql/Sql.Test/ScenarioTests/DatabaseBackupStretchTests.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ public class DatabaseBackupStretchTests : SqlTestsBase
2424
{
2525
public DatabaseBackupStretchTests(ITestOutputHelper output) : base(output)
2626
{
27+
base.resourceTypesToIgnoreApiVersion = new string[] {
28+
"Microsoft.Sql/servers"
29+
};
2730
}
2831

2932
[Fact]

src/Sql/Sql.Test/ScenarioTests/DatabaseBackupTests.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ public class DatabaseBackupTests : SqlTestsBase
2424
{
2525
public DatabaseBackupTests(ITestOutputHelper output) : base(output)
2626
{
27+
base.resourceTypesToIgnoreApiVersion = new string[] {
28+
"Microsoft.Sql/servers"
29+
};
2730
}
2831

2932
[Fact]

src/Sql/Sql.Test/ScenarioTests/DatabaseCrudStretchTests.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ public class DatabaseCrudStretchTests : SqlTestsBase
2424
{
2525
public DatabaseCrudStretchTests(ITestOutputHelper output) : base(output)
2626
{
27+
base.resourceTypesToIgnoreApiVersion = new string[] {
28+
"Microsoft.Sql/servers"
29+
};
2730
}
2831

2932
[Fact]

src/Sql/Sql.Test/ScenarioTests/DatabaseCrudTests.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ public class DatabaseCrudTests : SqlTestsBase
2323
{
2424
public DatabaseCrudTests(ITestOutputHelper output) : base(output)
2525
{
26+
base.resourceTypesToIgnoreApiVersion = new string[] {
27+
"Microsoft.Sql/servers"
28+
};
2629
}
2730

2831
protected override void SetupManagementClients(Rest.ClientRuntime.Azure.TestFramework.MockContext context)

src/Sql/Sql.Test/ScenarioTests/DatabaseReplicationTests.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ public class DatabaseReplicationTests : SqlTestsBase
2323
{
2424
public DatabaseReplicationTests(ITestOutputHelper output) : base(output)
2525
{
26+
base.resourceTypesToIgnoreApiVersion = new string[] {
27+
"Microsoft.Sql/servers"
28+
};
2629
}
2730

2831
[Fact]

src/Sql/Sql.Test/ScenarioTests/ElasticJobAgentCrudTests.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ public class ElasticJobAgentCrudTests : SqlTestsBase
2323
{
2424
public ElasticJobAgentCrudTests(ITestOutputHelper output) : base(output)
2525
{
26+
base.resourceTypesToIgnoreApiVersion = new string[] {
27+
"Microsoft.Sql/servers"
28+
};
2629
}
2730

2831
#region Create Tests

src/Sql/Sql.Test/ScenarioTests/ElasticJobCredentialCrudTests.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ public class ElasticJobCredentialCrudTests : SqlTestsBase
2323
{
2424
public ElasticJobCredentialCrudTests(ITestOutputHelper output) : base(output)
2525
{
26+
base.resourceTypesToIgnoreApiVersion = new string[] {
27+
"Microsoft.Sql/servers"
28+
};
2629
}
2730

2831
#region Create Tests

src/Sql/Sql.Test/ScenarioTests/ElasticJobCrudTests.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ public class ElasticJobCrudTests : SqlTestsBase
2323
{
2424
public ElasticJobCrudTests(ITestOutputHelper output) : base(output)
2525
{
26+
base.resourceTypesToIgnoreApiVersion = new string[] {
27+
"Microsoft.Sql/servers"
28+
};
2629
}
2730

2831
#region Create Tests

src/Sql/Sql.Test/ScenarioTests/ElasticJobExecutionCrudTests.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ public class ElasticJobExecutionCrudTests : SqlTestsBase
2323
{
2424
public ElasticJobExecutionCrudTests(ITestOutputHelper output) : base(output)
2525
{
26+
base.resourceTypesToIgnoreApiVersion = new string[] {
27+
"Microsoft.Sql/servers"
28+
};
2629
}
2730

2831
#region Start Job Tests

src/Sql/Sql.Test/ScenarioTests/ElasticJobStepCrudTests.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ public class ElasticJobStepCrudTests : SqlTestsBase
2323
{
2424
public ElasticJobStepCrudTests(ITestOutputHelper output) : base(output)
2525
{
26+
base.resourceTypesToIgnoreApiVersion = new string[] {
27+
"Microsoft.Sql/servers"
28+
};
2629
}
2730

2831
#region Create Tests

src/Sql/Sql.Test/ScenarioTests/ElasticJobTargetCrudTests.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ public class ElasticJobTargetCrudTests : SqlTestsBase
2323
{
2424
public ElasticJobTargetCrudTests(ITestOutputHelper output) : base(output)
2525
{
26+
base.resourceTypesToIgnoreApiVersion = new string[] {
27+
"Microsoft.Sql/servers"
28+
};
2629
}
2730

2831
[Fact]

src/Sql/Sql.Test/ScenarioTests/ElasticJobTargetGroupCrudTests.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ public class ElasticJobTargetGroupCrudTests : SqlTestsBase
2323
{
2424
public ElasticJobTargetGroupCrudTests(ITestOutputHelper output) : base(output)
2525
{
26+
base.resourceTypesToIgnoreApiVersion = new string[] {
27+
"Microsoft.Sql/servers"
28+
};
2629
}
2730

2831
#region Create Tests

src/Sql/Sql.Test/ScenarioTests/ElasticPoolCrudTests.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ public class ElasticPoolCrudTests : SqlTestsBase
2424
{
2525
public ElasticPoolCrudTests(ITestOutputHelper output) : base(output)
2626
{
27+
base.resourceTypesToIgnoreApiVersion = new string[] {
28+
"Microsoft.Sql/servers"
29+
};
2730
}
2831

2932
// Currently the test runs too long to be marked as a check-in test.

src/Sql/Sql.Test/ScenarioTests/FailoverGroupTests.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ public class FailoverGroupTests : SqlTestsBase
2323
{
2424
public FailoverGroupTests(ITestOutputHelper output) : base(output)
2525
{
26+
base.resourceTypesToIgnoreApiVersion = new string[] {
27+
"Microsoft.Sql/servers"
28+
};
2629
}
2730

2831
[Fact]

src/Sql/Sql.Test/ScenarioTests/FailoverTests.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ public class FailoverTests : SqlTestsBase
2424
{
2525
public FailoverTests(ITestOutputHelper output) : base(output)
2626
{
27+
base.resourceTypesToIgnoreApiVersion = new string[] {
28+
"Microsoft.Sql/servers"
29+
};
2730
}
2831

2932
[Fact]

src/Sql/Sql.Test/ScenarioTests/ImportExportTests.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ public class ImportExportTests : SqlTestsBase
2323
{
2424
public ImportExportTests(ITestOutputHelper output) : base(output)
2525
{
26+
base.resourceTypesToIgnoreApiVersion = new string[] {
27+
"Microsoft.Sql/servers"
28+
};
2629
}
2730

2831

src/Sql/Sql.Test/ScenarioTests/ReadScaleCrudTests.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ public class ReadScaleCrudTests : SqlTestsBase
2323
{
2424
public ReadScaleCrudTests(ITestOutputHelper output) : base(output)
2525
{
26+
base.resourceTypesToIgnoreApiVersion = new string[] {
27+
"Microsoft.Sql/servers"
28+
};
2629
}
2730

2831
[Fact]

src/Sql/Sql.Test/ScenarioTests/ServerCommunicationLinkCrudTests.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ public class ServerCommunicationLinkCrudTests : SqlTestsBase
2323
{
2424
public ServerCommunicationLinkCrudTests(ITestOutputHelper output) : base(output)
2525
{
26+
base.resourceTypesToIgnoreApiVersion = new string[] {
27+
"Microsoft.Sql/servers"
28+
};
2629
}
2730

2831
[Fact]

src/Sql/Sql.Test/ScenarioTests/ServerDnsAliasTests.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ public class ServerDnsAliasTests : SqlTestsBase
2323
{
2424
public ServerDnsAliasTests(ITestOutputHelper output) : base(output)
2525
{
26+
base.resourceTypesToIgnoreApiVersion = new string[] {
27+
"Microsoft.Sql/servers"
28+
};
2629
}
2730

2831
[Fact]

src/Sql/Sql.Test/ScenarioTests/ServerKeyVaultKeyTests.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ protected override void SetupManagementClients(RestTestFramework.MockContext con
3636

3737
public ServerKeyVaultKeyTests(ITestOutputHelper output) : base(output)
3838
{
39+
base.resourceTypesToIgnoreApiVersion = new string[] {
40+
"Microsoft.Sql/servers"
41+
};
3942
}
4043

4144
[Fact]

src/Sql/Sql.Test/ScenarioTests/ServiceObjectiveTests.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ public class ServiceObjectiveTests : SqlTestsBase
2323
{
2424
public ServiceObjectiveTests(ITestOutputHelper output) : base(output)
2525
{
26+
base.resourceTypesToIgnoreApiVersion = new string[] {
27+
"Microsoft.Sql/servers"
28+
};
2629
}
2730

2831
[Fact]

src/Sql/Sql.Test/ScenarioTests/ServiceTierAdvisorTests.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ public class ServiceTierAdvisorTests : SqlTestsBase
2323
{
2424
public ServiceTierAdvisorTests(ITestOutputHelper output) : base(output)
2525
{
26+
base.resourceTypesToIgnoreApiVersion = new string[] {
27+
"Microsoft.Sql/servers"
28+
};
2629
}
2730

2831
[Fact]

src/Sql/Sql.Test/ScenarioTests/TDECertificateTests.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ public class TDECertificateTests : SqlTestsBase
2424
{
2525
public TDECertificateTests(ITestOutputHelper output) : base(output)
2626
{
27+
base.resourceTypesToIgnoreApiVersion = new string[] {
28+
"Microsoft.Sql/servers"
29+
};
2730
}
2831

2932
[Fact]

src/Sql/Sql.Test/ScenarioTests/ThreatDetectionTests.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ protected override void SetupManagementClients(RestTestFramework.MockContext con
3232

3333
public ThreatDetectionTests(ITestOutputHelper output) : base(output)
3434
{
35+
base.resourceTypesToIgnoreApiVersion = new string[] {
36+
"Microsoft.Sql/servers"
37+
};
3538
}
3639

3740
[Fact]

src/Sql/Sql.Test/ScenarioTests/TransparentDataEncryptionCrudTests.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ public class TransparentDataEncryptionCrudTests : SqlTestsBase
2323
{
2424
public TransparentDataEncryptionCrudTests(ITestOutputHelper output) : base(output)
2525
{
26+
base.resourceTypesToIgnoreApiVersion = new string[] {
27+
"Microsoft.Sql/servers"
28+
};
2629
}
2730

2831
[Fact]

src/Sql/Sql.Test/ScenarioTests/VirtualNetworkRuleTest.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ protected override void SetupManagementClients(RestTestFramework.MockContext con
3131
}
3232
public VirtualNetworkRuleTest(ITestOutputHelper output) : base(output)
3333
{
34+
base.resourceTypesToIgnoreApiVersion = new string[] {
35+
"Microsoft.Sql/servers"
36+
};
3437
}
3538

3639
[Fact]

src/Sql/Sql.Test/ScenarioTests/VulnerabilityAssessmentTests.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ protected override void SetupManagementClients(RestTestFramework.MockContext con
3232

3333
public VulnerabilityAssessmentTests(ITestOutputHelper output) : base(output)
3434
{
35+
base.resourceTypesToIgnoreApiVersion = new string[] {
36+
"Microsoft.Sql/servers"
37+
};
3538
}
3639

3740
#region Server Policy Tests

0 commit comments

Comments
 (0)