Skip to content

Tests | Activate "ActiveIssue" tests #3304

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

Open
wants to merge 26 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
232fefb
Use Assert.Throws instead of home-grown
MichelZ Nov 18, 2024
2f95c8a
Activate WeakRefTestYukonSpecific, it runs fine on Linux
MichelZ Nov 18, 2024
4aa1123
Activate IntegratedAuthenticationTest, it runs fine
MichelZ Nov 18, 2024
c97b74a
Activate LocalDBTest, make sure Local DB is present. They run fine
MichelZ Nov 18, 2024
ae33c5f
Activate reliability tests, they run fine
MichelZ Nov 18, 2024
6fcd405
Activate Credential Tests, they seem to work fine
MichelZ Nov 18, 2024
68b7e1a
Activate CommandCancel tests, add Conditions to existing issue
MichelZ Nov 18, 2024
372c4bd
Activate Udt tests, they seem to work fine
MichelZ Nov 18, 2024
a46ca19
Activate PacketNumberWraparound test, it works fine
MichelZ Nov 18, 2024
aefc7f2
Improve certificate tests by checking IsAdmin outside the constructor
MichelZ Nov 18, 2024
fbcb046
- Remove AsyncTest (why would Async be faster than Sync?)
MichelZ Nov 18, 2024
801d2f3
Fix grammatical errors
MichelZ Nov 18, 2024
04bce8e
Use Close instead of Dispose, as Dispose swallows the exception
MichelZ Nov 24, 2024
910688a
Remove comment about IPv6 & Cert as this now works in NET8+
MichelZ Nov 24, 2024
e44241e
Do not run XEvent test on azure
MichelZ Nov 24, 2024
0e3ad41
The rest of the tests run fine on Azure
MichelZ Nov 24, 2024
19340e4
Fix azure check
MichelZ Nov 24, 2024
76af285
Disable more tests for Azure
MichelZ Nov 25, 2024
178c7cf
Also disable named instances
MichelZ Nov 25, 2024
6c0204e
Remove ExectueXmlReaderTest on ARM
MichelZ Nov 25, 2024
0b106c5
Disable tests with proxy for azure
MichelZ Nov 25, 2024
7e2dc88
Add data ordering to queries
MichelZ Nov 27, 2024
d1a2347
Enable test on ARM
MichelZ Nov 27, 2024
2c7320d
Remove whitespace
MichelZ Nov 27, 2024
b5005bc
Restore newline
MichelZ Dec 3, 2024
1cca601
Removing duplicated method
benrr101 Apr 28, 2025
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 @@ -17,4 +17,5 @@
<PackageReference Include="System.Runtime.InteropServices.RuntimeInformation" Version="$(SystemRuntimeInteropServicesRuntimeInformationVersion)" />
<PackageReference Include="System.Security.Cryptography.Pkcs" Version="$(SystemSecurityCryptographyPkcsVersion)" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ namespace Microsoft.Data.SqlClient.ManualTesting.Tests.AlwaysEncrypted
[PlatformSpecific(TestPlatforms.Windows)]
public class CspProviderExt
{
[ConditionalTheory(typeof(DataTestUtility), nameof(DataTestUtility.AreConnStringSetupForAE))]
[ConditionalTheory(typeof(DataTestUtility), nameof(DataTestUtility.AreConnStringSetupForAE), nameof(DataTestUtility.IsAdmin))]
[ClassData(typeof(AEConnectionStringProvider))]
public void TestKeysFromCertificatesCreatedWithMultipleCryptoProviders(string connectionString)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public static class DataTestUtility
//SQL Server EngineEdition
private static string s_sqlServerEngineEdition;

// JSON Coloumn type
// JSON Column type
public static readonly bool IsJsonSupported = false;

// Azure Synapse EngineEditionId == 6
Expand All @@ -107,8 +107,8 @@ public static bool IsAzureSynapse
{
s_sqlServerEngineEdition ??= GetSqlServerProperty(TCPConnectionString, "EngineEdition");
}
_ = int.TryParse(s_sqlServerEngineEdition, out int engineEditon);
return engineEditon == 6;
_ = int.TryParse(s_sqlServerEngineEdition, out int engineEdition);
return engineEdition == 6;
}
}

Expand Down Expand Up @@ -234,6 +234,16 @@ static DataTestUtility()
}
}

public static IEnumerable<object[]> GetConnectionStringsWithEnclaveMemberData()
{
return GetConnectionStrings(true).Select(x => new object[] { x });
}

public static IEnumerable<object[]> GetConnectionStringsWithoutEnclaveMemberData()
{
return GetConnectionStrings(false).Select(x => new object[] { x });
}

public static IEnumerable<string> ConnectionStrings => GetConnectionStrings(withEnclave: true);

public static IEnumerable<string> GetConnectionStrings(bool withEnclave)
Expand Down Expand Up @@ -457,17 +467,17 @@ public static bool IsNotAzureServer()
return !AreConnStringsSetup() || !Utils.IsAzureSqlServer(new SqlConnectionStringBuilder(TCPConnectionString).DataSource);
}

public static bool IsNotNamedInstance()
{
return !AreConnStringsSetup() || !new SqlConnectionStringBuilder(TCPConnectionString).DataSource.Contains(@"\");
}

public static bool IsLocalHost()
{
SqlConnectionStringBuilder builder = new(DataTestUtility.TCPConnectionString);
return ParseDataSource(builder.DataSource, out string hostname, out _, out _) && string.Equals("localhost", hostname, StringComparison.OrdinalIgnoreCase);
}

public static bool IsNotNamedInstance()
{
return !AreConnStringsSetup() || !new SqlConnectionStringBuilder(TCPConnectionString).DataSource.Contains(@"\");
}

// Synapse: Always Encrypted is not supported with Azure Synapse.
// Ref: https://feedback.azure.com/forums/307516-azure-synapse-analytics/suggestions/17858869-support-always-encrypted-in-sql-data-warehouse
public static bool IsAKVSetupAvailable()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,31 +13,12 @@
<IsTestProject>true</IsTestProject>
</PropertyGroup>
<ItemGroup Condition="'$(TestSet)' == '' or '$(TestSet)' == 'AE'">
<Compile Include="AlwaysEncrypted\CoreCryptoTests.cs" />
<Compile Include="AlwaysEncrypted\ConversionTests.cs" />
<Compile Include="AlwaysEncrypted\ExceptionsGenericError.cs" />
<Compile Include="AlwaysEncrypted\TestFixtures\Setup\CryptoVector.cs" />
<Compile Include="AlwaysEncrypted\TestFixtures\Setup\CryptoNativeBaselineReader.cs" />
<Compile Include="AlwaysEncrypted\TestTrustedMasterKeyPaths.cs" />
<Content Include="AlwaysEncrypted\TestFixtures\Setup\TCECryptoNativeBaseline.txt">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<Link>TCECryptoNativeBaseline.txt</Link>
</Content>
<Content Include="AlwaysEncrypted\TestFixtures\Setup\TCECryptoNativeBaselineRsa.txt">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<Link>TCECryptoNativeBaselineRsa.txt</Link>
</Content>
</ItemGroup>
<ItemGroup Condition="'$(TargetsWindows)' == 'true' AND ('$(TestSet)' == '' OR '$(TestSet)' == 'AE')">
<Compile Include="AlwaysEncrypted\CspProviderExt.cs" />
<Compile Include="AlwaysEncrypted\TestFixtures\Setup\CertificateUtilityWin.cs" />
<Compile Include="AlwaysEncrypted\TestFixtures\Setup\CspProviderColumnMasterKey.cs" />
<Compile Include="AlwaysEncrypted\TestFixtures\SQLSetupStrategyCspExt.cs" />
</ItemGroup>
<ItemGroup Condition="'$(TestSet)' == '' OR '$(TestSet)' == 'AE'">
<Compile Include="AlwaysEncrypted\AKVTests.cs" />
<Compile Include="AlwaysEncrypted\AKVUnitTests.cs" />
<Compile Include="AlwaysEncrypted\CoreCryptoTests.cs" />
<Compile Include="AlwaysEncrypted\ConversionTests.cs" />
<Compile Include="AlwaysEncrypted\EnclaveAzureDatabaseTests.cs" />
<Compile Include="AlwaysEncrypted\ExceptionsGenericError.cs" />
<Compile Include="AlwaysEncrypted\ExceptionTestAKVStore.cs" />
<Compile Include="AlwaysEncrypted\TestFixtures\Setup\AKVTestTable.cs" />
<Compile Include="AlwaysEncrypted\TestFixtures\Setup\AkvColumnMasterKey.cs" />
Expand All @@ -57,6 +38,8 @@
<Compile Include="AlwaysEncrypted\TestFixtures\Setup\BulkCopyAEErrorMessageTestTable.cs" />
<Compile Include="AlwaysEncrypted\TestFixtures\Setup\BulkCopyTruncationTables.cs" />
<Compile Include="AlwaysEncrypted\TestFixtures\Setup\ColumnDecryptErrorTestTable.cs" />
<Compile Include="AlwaysEncrypted\TestFixtures\Setup\CryptoVector.cs" />
<Compile Include="AlwaysEncrypted\TestFixtures\Setup\CryptoNativeBaselineReader.cs" />
<Compile Include="AlwaysEncrypted\TestFixtures\Setup\DateOnlyTestTable.cs" />
<Compile Include="AlwaysEncrypted\TestFixtures\Setup\SqlNullValuesTable.cs" />
<Compile Include="AlwaysEncrypted\TestFixtures\Setup\SqlParameterPropertiesTable.cs" />
Expand All @@ -70,6 +53,21 @@
<Compile Include="AlwaysEncrypted\TestFixtures\Setup\DummyKeyStoreProvider.cs" />
<Compile Include="AlwaysEncrypted\TestFixtures\Setup\DummyProviderMasterKey.cs" />
<Compile Include="AlwaysEncrypted\TestFixtures\Setup\CertificateUtility.cs" />
<Content Include="AlwaysEncrypted\TestFixtures\Setup\TCECryptoNativeBaseline.txt">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<Link>TCECryptoNativeBaseline.txt</Link>
</Content>
<Content Include="AlwaysEncrypted\TestFixtures\Setup\TCECryptoNativeBaselineRsa.txt">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<Link>TCECryptoNativeBaselineRsa.txt</Link>
</Content>
<Compile Include="AlwaysEncrypted\TestTrustedMasterKeyPaths.cs" />
</ItemGroup>
<ItemGroup Condition="'$(TargetsWindows)' == 'true' AND ('$(TestSet)' == '' OR '$(TestSet)' == 'AE')">
<Compile Include="AlwaysEncrypted\CspProviderExt.cs" />
<Compile Include="AlwaysEncrypted\TestFixtures\Setup\CertificateUtilityWin.cs" />
<Compile Include="AlwaysEncrypted\TestFixtures\Setup\CspProviderColumnMasterKey.cs" />
<Compile Include="AlwaysEncrypted\TestFixtures\SQLSetupStrategyCspExt.cs" />
</ItemGroup>
<ItemGroup Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net8.0')) AND ('$(TestSet)' == '' OR '$(TestSet)' == 'AE')">
<Compile Include="AlwaysEncrypted\DateOnlyReadTests.cs" />
Expand All @@ -79,7 +77,6 @@
<Compile Include="SQL\AsyncTest\BeginExecAsyncTest.cs" />
<Compile Include="SQL\AsyncTest\BeginExecReaderAsyncTest.cs" />
<Compile Include="SQL\AsyncTest\XmlReaderAsyncTest.cs" />
<Compile Include="SQL\AsyncTest\AsyncTest.cs" />
<Compile Include="SQL\AsyncTest\AsyncCancelledConnectionsTest.cs" />
</ItemGroup>
<ItemGroup Condition="'$(TestSet)' == '' OR '$(TestSet)' == '2'">
Expand Down Expand Up @@ -174,15 +171,21 @@
<Compile Include="DDBasics\DDAsyncTest\DDAsyncTest.cs" />
<Compile Include="DDBasics\DDDataTypesTest\DDDataTypesTest.cs" />
<Compile Include="DDBasics\DDMARSTest\DDMARSTest.cs" />
<Compile Include="Json\SqlJsonTest.cs" />
<Compile Include="ProviderAgnostic\MultipleResultsTest\MultipleResultsTest.cs" />
<Compile Include="ProviderAgnostic\ReaderTest\ReaderTest.cs" />
<Compile Include="TracingTests\EventSourceTest.cs" />
<Compile Include="SQL\AADFedAuthTokenRefreshTest\AADFedAuthTokenRefreshTest.cs" />
<Compile Include="SQL\ConnectionTestWithSSLCert\CertificateTest.cs" />
<Compile Include="SQL\ConnectionTestWithSSLCert\CertificateTestWithTdsServer.cs" />
<Compile Include="SQL\ConnectionPoolTest\ConnectionPoolTest.cs" />
<Compile Include="SQL\ConnectionPoolTest\PoolBlockPeriodTest.cs" />
<Compile Include="SQL\DataSourceParserTest\DataSourceParserTest.cs" />
<Compile Include="SQL\InstanceNameTest\InstanceNameTest.cs" />
<Compile Include="SQL\IntegratedAuthenticationTest\IntegratedAuthenticationTest.cs" />
<Compile Include="SQL\JsonTest\JsonBulkCopyTest.cs" />
<Compile Include="SQL\JsonTest\JsonStreamTest.cs" />
<Compile Include="SQL\JsonTest\JsonTest.cs" />
<Compile Include="SQL\KerberosTests\KerberosTest.cs" />
<Compile Include="SQL\KerberosTests\KerberosTicketManager\KerberosTicketManager.cs" />
<Compile Include="SQL\LocalDBTest\LocalDBTest.cs" />
Expand All @@ -194,6 +197,7 @@
<Compile Include="SQL\SqlCommand\SqlCommandCompletedTest.cs" />
<Compile Include="SQL\SqlCommand\SqlCommandCancelTest.cs" />
<Compile Include="SQL\SqlCommand\SqlCommandSetTest.cs" />
<Compile Include="SQL\SqlCommand\SqlCommandStoredProcTest.cs" />
<Compile Include="SQL\SqlCredentialTest\SqlCredentialTest.cs" />
<Compile Include="SQL\SqlDependencyTest\SqlDependencyTest.cs" />
<Compile Include="SQL\SqlFileStreamTest\SqlFileStreamTest.cs" />
Expand Down Expand Up @@ -279,7 +283,6 @@
<Compile Include="DataCommon\SqlClientCustomTokenCredential.cs" />
<Compile Include="DataCommon\SystemDataResourceManager.cs" />
<Compile Include="Extensions\StreamExtensions.netfx.cs" />
<Compile Include="Json\SqlJsonTest.cs" />
<Compile Include="SQL\Common\AsyncDebugScope.cs" />
<Compile Include="SQL\Common\ConnectionPoolWrapper.cs" />
<Compile Include="SQL\Common\InternalConnectionWrapper.cs" />
Expand All @@ -291,12 +294,6 @@
<Compile Include="SQL\Common\SystemDataInternals\FedAuthTokenHelper.cs" />
<Compile Include="SQL\Common\SystemDataInternals\TdsParserHelper.cs" />
<Compile Include="SQL\Common\SystemDataInternals\TdsParserStateObjectHelper.cs" />
<Compile Include="SQL\ConnectionTestWithSSLCert\CertificateTest.cs" />
<Compile Include="SQL\ConnectionTestWithSSLCert\CertificateTestWithTdsServer.cs" />
<Compile Include="SQL\JsonTest\JsonBulkCopyTest.cs" />
<Compile Include="SQL\JsonTest\JsonStreamTest.cs" />
<Compile Include="SQL\JsonTest\JsonTest.cs" />
<Compile Include="SQL\SqlCommand\SqlCommandStoredProcTest.cs" />
<Compile Include="TracingTests\TestTdsServer.cs" />
<Compile Include="XUnitAssemblyAttributes.cs" />
</ItemGroup>
Expand Down

This file was deleted.

Loading
Loading