Skip to content

Commit

Permalink
Set TrustServerCertificate for SQL Server tests' connection string
Browse files Browse the repository at this point in the history
  • Loading branch information
odinserj committed Nov 8, 2024
1 parent 982a1d5 commit e37610e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ image:

# environment variables
environment:
Hangfire_SqlServer_ConnectionStringTemplate: Server=.\SQL2017;Database={0};User Id=sa;Password=Password12!;Encrypt=False
Hangfire_SqlServer_ConnectionStringTemplate: Server=.\SQL2017;Database={0};User Id=sa;Password=Password12!;TrustServerCertificate=True
SIGNPATH_API_TOKEN:
secure: nvG+jv/K3utFvpHGx/N6Glpv0Wdj0wfBSl8c/tkHbn2AIwGcNe2e4VSOkod7xVpC
COVERITY_TOKEN:
Expand Down
2 changes: 1 addition & 1 deletion tests/Hangfire.SqlServer.Tests/Utils/ConnectionUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ private const string ConnectionStringTemplateVariable
private const string MasterDatabaseName = "master";
private const string DefaultDatabaseName = @"Hangfire.SqlServer.Tests";
private const string DefaultConnectionStringTemplate
= @"Server=.\;Database={0};Trusted_Connection=True;";
= @"Server=.\;Database={0};Trusted_Connection=True;TrustServerCertificate=True;";

public static string GetDatabaseName()
{
Expand Down

0 comments on commit e37610e

Please sign in to comment.