Skip to content

Commit 79ed802

Browse files
Update dependencies to latest (#3229)
1 parent c96e4aa commit 79ed802

File tree

5 files changed

+38
-34
lines changed

5 files changed

+38
-34
lines changed

src/Microsoft.Data.SqlClient/tests/ManualTests/SQL/ConnectivityTests/AADConnectionTest.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -501,8 +501,8 @@ public static void ActiveDirectoryManagedIdentityWithInvalidUserIdMustFail(strin
501501

502502
SqlException e = Assert.Throws<SqlException>(() => ConnectAndDisconnect(connStrWithNoCred));
503503

504-
string expectedMessage = "ManagedIdentityCredential authentication unavailable";
505-
Assert.Contains(expectedMessage, e.GetBaseException().Message);
504+
string expectedMessage = "[Managed Identity] Authentication unavailable";
505+
Assert.Contains(expectedMessage, e.GetBaseException().Message, StringComparison.OrdinalIgnoreCase);
506506
}
507507

508508
[ConditionalFact(nameof(IsAADConnStringsSetup))]

src/Microsoft.Data.SqlClient/tests/ManualTests/SQL/TransactionTest/DistributedTransactionTest.Windows.cs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -48,15 +48,15 @@ public async Task Delegated_transaction_deadlock_in_SinglePhaseCommit()
4848
private static bool s_EnlistedTransactionPreservedWhilePooledCondition => DataTestUtility.AreConnStringsSetup() && DataTestUtility.IsNotX86Architecture;
4949

5050
[ConditionalFact(nameof(s_EnlistedTransactionPreservedWhilePooledCondition), Timeout = 10000)]
51-
public void Test_EnlistedTransactionPreservedWhilePooled()
51+
public async Task Test_EnlistedTransactionPreservedWhilePooled()
5252
{
5353
#if NET
5454
TransactionManager.ImplicitDistributedTransactions = true;
5555
#endif
56-
RunTestSet(EnlistedTransactionPreservedWhilePooled);
56+
await RunTestSet(EnlistedTransactionPreservedWhilePooled);
5757
}
5858

59-
private void EnlistedTransactionPreservedWhilePooled()
59+
private async Task EnlistedTransactionPreservedWhilePooled()
6060
{
6161
Exception commandException = null;
6262
Exception transactionException = null;
@@ -67,7 +67,7 @@ private void EnlistedTransactionPreservedWhilePooled()
6767
{
6868
// Leave first connection open so that the transaction is promoted
6969
SqlConnection rootConnection = new SqlConnection(ConnectionString);
70-
rootConnection.Open();
70+
await rootConnection.OpenAsync();
7171
using (SqlCommand command = rootConnection.CreateCommand())
7272
{
7373
command.CommandText = $"INSERT INTO {TestTableName} VALUES ({InputCol1}, '{InputCol2}')";
@@ -109,25 +109,25 @@ private void EnlistedTransactionPreservedWhilePooled()
109109
}
110110

111111
// Even if an application swallows the command exception, completing the transaction should indicate that it failed.
112-
var expectedTransactionExceptions = new[] { typeof(TransactionAbortedException), typeof(TransactionInDoubtException) };
112+
Type[] expectedTransactionExceptions = new[] { typeof(TransactionAbortedException), typeof(TransactionInDoubtException) };
113113
Assert.Contains(transactionException.GetType(), expectedTransactionExceptions);
114114

115-
var expectedCommandExceptions = new[] { typeof(SqlException), typeof(InvalidOperationException) };
115+
Type[] expectedCommandExceptions = new[] { typeof(SqlException), typeof(InvalidOperationException) };
116116
Assert.Contains(commandException.GetType(), expectedCommandExceptions);
117117

118-
if (commandException is SqlException)
118+
if (commandException is SqlException exception)
119119
{
120120
// See https://learn.microsoft.com/en-us/sql/relational-databases/errors-events/database-engine-events-and-errors-8000-to-8999?view=sql-server-ver16
121121
// The distributed transaction failed
122122
// See https://learn.microsoft.com/en-us/sql/relational-databases/errors-events/database-engine-events-and-errors-3000-to-3999?view=sql-server-ver16
123123
// Error 3971 corresponds to "The server failed to resume the transaction."
124124
var expectedExceptionCodes = new[] { 3971, 8525 };
125-
Assert.Contains(((SqlException)commandException).Number, expectedExceptionCodes);
125+
Assert.Contains(exception.Number, expectedExceptionCodes);
126126
}
127127

128128
// Verify that nothing made it into the database
129129
DataTable result = DataTestUtility.RunQuery(ConnectionString, $"select col2 from {TestTableName} where col1 = {InputCol1}");
130-
Assert.True(result.Rows.Count == 0);
130+
Assert.Equal(0, result.Rows.Count);
131131
}
132132

133133
private void KillProcess(int serverProcessId)
@@ -152,7 +152,7 @@ private void KillProcess(int serverProcessId)
152152
private const int InputCol1 = 1;
153153
private const string InputCol2 = "One";
154154

155-
private static void RunTestSet(Action TestCase)
155+
private static async Task RunTestSet(Func<Task> TestCase)
156156
{
157157
SqlConnectionStringBuilder builder = new SqlConnectionStringBuilder(DataTestUtility.TCPConnectionString);
158158

@@ -165,7 +165,7 @@ private static void RunTestSet(Action TestCase)
165165
DataTestUtility.RunNonQuery(ConnectionString, $"create table {TestTableName} (col1 int, col2 text)");
166166
try
167167
{
168-
TestCase();
168+
await TestCase();
169169
}
170170
finally
171171
{

tools/props/Versions.props

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -26,17 +26,17 @@
2626
<MicrosoftDataSqlClientSniVersion>6.0.2</MicrosoftDataSqlClientSniVersion>
2727
<SystemBuffersVersion>4.5.1</SystemBuffersVersion>
2828
<SystemMemoryVersion>4.5.5</SystemMemoryVersion>
29-
<SystemTextEncodingsWebVersion>6.0.0</SystemTextEncodingsWebVersion>
30-
<SystemTextJsonVersion>6.0.10</SystemTextJsonVersion>
29+
<SystemTextEncodingsWebVersion>8.0.0</SystemTextEncodingsWebVersion>
30+
<SystemTextJsonVersion>8.0.5</SystemTextJsonVersion>
3131
<SystemDataCommonVersion>4.3.0</SystemDataCommonVersion>
3232
</PropertyGroup>
3333
<!-- NetFx and NetCore project dependencies -->
3434
<PropertyGroup>
35-
<AzureIdentityVersion>1.11.4</AzureIdentityVersion>
35+
<AzureIdentityVersion>1.13.2</AzureIdentityVersion>
3636
<MicrosoftBclCryptographyVersion>8.0.0</MicrosoftBclCryptographyVersion>
3737
<MicrosoftExtensionsCachingMemoryVersion>8.0.1</MicrosoftExtensionsCachingMemoryVersion>
38-
<MicrosoftIdentityModelJsonWebTokensVersion>7.5.0</MicrosoftIdentityModelJsonWebTokensVersion>
39-
<MicrosoftIdentityModelProtocolsOpenIdConnectVersion>7.5.0</MicrosoftIdentityModelProtocolsOpenIdConnectVersion>
38+
<MicrosoftIdentityModelJsonWebTokensVersion>7.7.1</MicrosoftIdentityModelJsonWebTokensVersion>
39+
<MicrosoftIdentityModelProtocolsOpenIdConnectVersion>7.7.1</MicrosoftIdentityModelProtocolsOpenIdConnectVersion>
4040
<SystemRuntimeInteropServicesRuntimeInformationVersion>4.3.0</SystemRuntimeInteropServicesRuntimeInformationVersion>
4141
<SystemSecurityCryptographyPkcsVersion>8.0.1</SystemSecurityCryptographyPkcsVersion>
4242
</PropertyGroup>
@@ -48,15 +48,15 @@
4848
</PropertyGroup>
4949
<!-- AKV Provider project dependencies -->
5050
<PropertyGroup>
51-
<AzureCoreVersion>[1.38.0,2.0.0)</AzureCoreVersion>
52-
<AzureSecurityKeyVaultKeysVersion>[4.5.0,5.0.0)</AzureSecurityKeyVaultKeysVersion>
51+
<AzureCoreVersion>[1.44.1,2.0.0)</AzureCoreVersion>
52+
<AzureSecurityKeyVaultKeysVersion>[4.7.0,5.0.0)</AzureSecurityKeyVaultKeysVersion>
5353
</PropertyGroup>
5454
<!-- Test Project Dependencies -->
5555
<PropertyGroup>
5656
<BenchmarkDotNetVersion>0.14.0</BenchmarkDotNetVersion>
5757
<MicrosoftDotNetPlatformAbstractionsVersion>3.1.6</MicrosoftDotNetPlatformAbstractionsVersion>
58-
<MicrosoftDotNetRemoteExecutorVersion>10.0.0-beta.24564.1</MicrosoftDotNetRemoteExecutorVersion>
59-
<MicrosoftDotNetXUnitExtensionsVersion>8.0.0-beta.24123.1</MicrosoftDotNetXUnitExtensionsVersion>
58+
<MicrosoftDotNetRemoteExecutorVersion>10.0.0-beta.25164.6</MicrosoftDotNetRemoteExecutorVersion>
59+
<MicrosoftDotNetXUnitExtensionsVersion>10.0.0-beta.25164.6</MicrosoftDotNetXUnitExtensionsVersion>
6060
<MicrosoftExtensionsHosting>6.0.1</MicrosoftExtensionsHosting>
6161
<MicrosoftNETCoreRuntimeCoreCLRVersion>2.0.8</MicrosoftNETCoreRuntimeCoreCLRVersion>
6262
<MicrosoftNETFrameworkReferenceAssembliesVersion>1.0.3</MicrosoftNETFrameworkReferenceAssembliesVersion>
@@ -71,7 +71,7 @@
7171
<SystemSecurityPrincipalWindowsVersion>5.0.0</SystemSecurityPrincipalWindowsVersion>
7272
<SystemServiceProcessServiceControllerVersion>6.0.0</SystemServiceProcessServiceControllerVersion>
7373
<SystemTextEncodingCodePagesVersion>6.0.0</SystemTextEncodingCodePagesVersion>
74-
<XunitVersion>2.6.3</XunitVersion>
74+
<XunitVersion>2.9.2</XunitVersion>
7575
<XunitrunnervisualstudioVersion>2.5.5</XunitrunnervisualstudioVersion>
7676
</PropertyGroup>
7777
<PropertyGroup>

tools/props/VersionsNet9OrLater.props

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,8 @@
77
<SystemSecurityCryptographyPkcsVersion>9.0.4</SystemSecurityCryptographyPkcsVersion>
88
<SystemConfigurationConfigurationManagerVersion>9.0.4</SystemConfigurationConfigurationManagerVersion>
99
</PropertyGroup>
10+
<!-- Test Project dependencies-->
11+
<PropertyGroup>
12+
<MicrosoftExtensionsHosting>9.0.3</MicrosoftExtensionsHosting>
13+
</PropertyGroup>
1014
</Project>

tools/specs/Microsoft.Data.SqlClient.nuspec

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -30,34 +30,34 @@ When using NuGet 3.x this package requires at least version 3.4.</description>
3030
<dependencies>
3131
<group targetFramework="net462">
3232
<dependency id="Microsoft.Data.SqlClient.SNI" version="6.0.2" />
33-
<dependency id="Azure.Identity" version="1.11.4" />
33+
<dependency id="Azure.Identity" version="1.13.2" />
3434
<dependency id="Microsoft.Extensions.Caching.Memory" version="8.0.1" exclude="Compile" />
35-
<dependency id="Microsoft.IdentityModel.JsonWebTokens" version="7.5.0" />
36-
<dependency id="Microsoft.IdentityModel.Protocols.OpenIdConnect" version="7.5.0" />
35+
<dependency id="Microsoft.IdentityModel.JsonWebTokens" version="7.7.1" />
36+
<dependency id="Microsoft.IdentityModel.Protocols.OpenIdConnect" version="7.7.1" />
3737
<dependency id="System.Buffers" version="4.5.1" />
38-
<dependency id="System.Text.Encodings.Web" version="6.0.0" />
39-
<dependency id="System.Text.Json" version="6.0.10" />
38+
<dependency id="System.Text.Encodings.Web" version="8.0.0" />
39+
<dependency id="System.Text.Json" version="8.0.5" />
4040
<dependency id="System.Data.Common" version="4.3.0" />
4141
<dependency id="System.Security.Cryptography.Pkcs" version="8.0.1"/>
4242
<dependency id="Microsoft.Bcl.Cryptography" version="8.0.0"/>
4343
</group>
4444
<group targetFramework="net8.0">
4545
<dependency id="Microsoft.Data.SqlClient.SNI.runtime" version="6.0.2" exclude="Compile" />
46-
<dependency id="Azure.Identity" version="1.11.4" />
46+
<dependency id="Azure.Identity" version="1.13.2" />
4747
<dependency id="Microsoft.Extensions.Caching.Memory" version="8.0.1" exclude="Compile" />
48-
<dependency id="Microsoft.IdentityModel.JsonWebTokens" version="7.5.0" />
49-
<dependency id="Microsoft.IdentityModel.Protocols.OpenIdConnect" version="7.5.0" />
48+
<dependency id="Microsoft.IdentityModel.JsonWebTokens" version="7.7.1" />
49+
<dependency id="Microsoft.IdentityModel.Protocols.OpenIdConnect" version="7.7.1" />
5050
<dependency id="Microsoft.SqlServer.Server" version="1.0.0"/>
5151
<dependency id="System.Configuration.ConfigurationManager" version="8.0.1" exclude="Compile" />
5252
<dependency id="System.Security.Cryptography.Pkcs" version="8.0.1"/>
5353
<dependency id="Microsoft.Bcl.Cryptography" version="8.0.0"/>
5454
</group>
5555
<group targetFramework="net9.0">
5656
<dependency id="Microsoft.Data.SqlClient.SNI.runtime" version="6.0.2" exclude="Compile" />
57-
<dependency id="Azure.Identity" version="1.11.4" />
57+
<dependency id="Azure.Identity" version="1.13.2" />
5858
<dependency id="Microsoft.Extensions.Caching.Memory" version="9.0.4" exclude="Compile" />
59-
<dependency id="Microsoft.IdentityModel.JsonWebTokens" version="7.5.0" />
60-
<dependency id="Microsoft.IdentityModel.Protocols.OpenIdConnect" version="7.5.0" />
59+
<dependency id="Microsoft.IdentityModel.JsonWebTokens" version="7.7.1" />
60+
<dependency id="Microsoft.IdentityModel.Protocols.OpenIdConnect" version="7.7.1" />
6161
<dependency id="Microsoft.SqlServer.Server" version="1.0.0"/>
6262
<dependency id="System.Configuration.ConfigurationManager" version="9.0.4" exclude="Compile" />
6363
<dependency id="System.Security.Cryptography.Pkcs" version="9.0.4"/>

0 commit comments

Comments
 (0)