Skip to content

Commit

Permalink
Fix MySql.Data build.
Browse files Browse the repository at this point in the history
Signed-off-by: Bradley Grainger <bgrainger@gmail.com>
  • Loading branch information
bgrainger committed Jul 28, 2024
1 parent ec7f8e0 commit d402cdc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ jobs:
arguments: '-c Release --no-restore'
testRunTitle: ${{ format('{0}, $(Agent.OS), {1}, {2}', 'mysql:8.0', 'net472/net8.0', 'No SSL') }}
env:
DATA__UNSUPPORTEDFEATURES: 'Ed25519,QueryAttributes,Redirection,StreamingResults,Tls11,UnixDomainSocket'
DATA__UNSUPPORTEDFEATURES: 'Ed25519,QueryAttributes,Redirection,StreamingResults,Tls11,TlsValidationFingerprint,UnixDomainSocket'
DATA__CONNECTIONSTRING: 'server=localhost;port=3306;user id=mysqltest;password=test;database=mysqltest;ssl mode=none;DefaultCommandTimeout=3600;AllowPublicKeyRetrieval=True;UseCompression=True'

- job: windows_integration_tests_2
Expand Down Expand Up @@ -174,7 +174,7 @@ jobs:
arguments: '-c Release --no-restore'
testRunTitle: ${{ format('{0}, $(Agent.OS), {1}, {2}', 'mysql:8.0', 'net6.0', 'No SSL') }}
env:
DATA__UNSUPPORTEDFEATURES: 'Ed25519,QueryAttributes,Redirection,StreamingResults,Tls11,UnixDomainSocket'
DATA__UNSUPPORTEDFEATURES: 'Ed25519,QueryAttributes,Redirection,StreamingResults,Tls11,TlsValidationFingerprint,UnixDomainSocket'
DATA__CONNECTIONSTRING: 'server=localhost;port=3306;user id=mysqltest;password=test;database=mysqltest;ssl mode=none;DefaultCommandTimeout=3600;AllowPublicKeyRetrieval=True'

- job: linux_integration_tests
Expand Down
5 changes: 2 additions & 3 deletions tests/IntegrationTests/SslTests.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
using System.Runtime.InteropServices;
using System.Security.Authentication;
using System.Security.Cryptography.X509Certificates;
using MySqlConnector.Authentication.Ed25519;

namespace IntegrationTests;

Expand Down Expand Up @@ -206,7 +205,6 @@ public async Task ConnectSslRemoteCertificateValidationCallback(MySqlSslMode ssl
}
#endif

#if !MYSQL_DATA
[SkippableFact(ServerFeatures.TlsFingerprintValidation)]
public async Task ConnectZeroConfigurationSslNative()
{
Expand All @@ -222,10 +220,11 @@ public async Task ConnectZeroConfigurationSslNative()
await connection.OpenAsync();
}

#if !MYSQL_DATA
[SkippableFact(ServerFeatures.TlsFingerprintValidation | ServerFeatures.Ed25519)]
public async Task ConnectZeroConfigurationSslEd25519()
{
Ed25519AuthenticationPlugin.Install();
MySqlConnector.Authentication.Ed25519.Ed25519AuthenticationPlugin.Install();
var csb = AppConfig.CreateConnectionStringBuilder();
csb.CertificateFile = null;
csb.SslMode = MySqlSslMode.VerifyFull;
Expand Down

0 comments on commit d402cdc

Please sign in to comment.