Skip to content

Conversation

DavoudEshtehari
Copy link
Contributor

Improved error messages and failure scenarios on managed SNI.

@DavoudEshtehari DavoudEshtehari added 🐛 Bug! Area\Managed SNI Issues that are targeted to the Managed SNI codebase. labels Aug 18, 2023
@DavoudEshtehari DavoudEshtehari added this to the 5.2.0-preview4 milestone Aug 18, 2023
@DavoudEshtehari DavoudEshtehari marked this pull request as ready for review August 19, 2023 00:15
Comment on lines +161 to +164
if (IsNativeSNI())
{
Assert.Contains("The specified LocalDB instance does not exist.", ex.Message);
}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Additional information comes from the native method call in TdsParser by LocalDBAPI.GetLocalDBMessage().

@codecov
Copy link

codecov bot commented Aug 19, 2023

Codecov Report

Patch coverage: 40.62% and project coverage change: +0.23% 🎉

Comparison is base (b82b1eb) 70.76% compared to head (a8f79df) 71.00%.
Report is 14 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2129      +/-   ##
==========================================
+ Coverage   70.76%   71.00%   +0.23%     
==========================================
  Files         306      305       -1     
  Lines       62051    61854     -197     
==========================================
+ Hits        43910    43918       +8     
+ Misses      18141    17936     -205     
Flag Coverage Δ
addons 92.88% <ø> (ø)
netcore 73.44% <40.62%> (-0.13%) ⬇️
netfx 69.79% <ø> (+0.44%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Changed Coverage Δ
...core/src/Microsoft/Data/SqlClient/SNI/SNICommon.cs 56.66% <ø> (+1.53%) ⬆️
...soft.Data.SqlClient/src/Resources/StringsHelper.cs 51.42% <0.00%> (-39.05%) ⬇️
...tcore/src/Microsoft/Data/SqlClient/SNI/SNIProxy.cs 49.29% <50.00%> (-0.17%) ⬇️
...rc/Microsoft/Data/SqlClient/SNI/LocalDB.Windows.cs 51.54% <100.00%> (+2.08%) ⬆️
.../netcore/src/Microsoft/Data/SqlClient/TdsParser.cs 68.29% <100.00%> (-0.37%) ⬇️

... and 28 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area\Managed SNI Issues that are targeted to the Managed SNI codebase.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants