Skip to content

Commit

Permalink
Trust activated for tests, whitespaces removed
Browse files Browse the repository at this point in the history
  • Loading branch information
FrendsSarlinS committed Aug 7, 2024
1 parent 143ba45 commit 6c5627d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public async Task TestBulkInsert_Invalid_Creds()
{
var input = new Input()
{
ConnectionString = "Server=127.0.0.1,1433;Database=Master;User Id=SA;Password=WrongPassWord",
ConnectionString = "Server=127.0.0.1,1433;Database=Master;User Id=SA;Password=WrongPassWord;TrustServerCertificate=True",
TableName = _tableName,
InputData = _json
};
Expand All @@ -52,7 +52,7 @@ public async Task TestBulkInsert_Invalid_Creds_ReturnErrorMessage()
{
var input = new Input()
{
ConnectionString = "Server=127.0.0.1,1433;Database=Master;User Id=SA;Password=WrongPassWord",
ConnectionString = "Server=127.0.0.1,1433;Database=Master;User Id=SA;Password=WrongPassWord;TrustServerCertificate=True",
TableName = _tableName,
InputData = _json
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ docker exec -it sql1 "bash"
GO
*/

private static readonly string _connString = "Server=127.0.0.1,1433;Database=Master;User Id=SA;Password=Salakala123!";
private static readonly string _connString = "Server=127.0.0.1,1433;Database=Master;User Id=SA;Password=Salakala123!;TrustServerCertificate=True";
private static readonly string _tableName = "TestTable";
private static readonly string _json = @"[
{
Expand Down Expand Up @@ -69,7 +69,7 @@ public void CleanUp()

[TestMethod]
public async Task TestBulkInsert_FireTriggers()
{
{
var transactionLevels = new List<SqlTransactionIsolationLevel>() {
SqlTransactionIsolationLevel.Unspecified,
SqlTransactionIsolationLevel.Serializable,
Expand Down Expand Up @@ -102,7 +102,7 @@ public async Task TestBulkInsert_FireTriggers()

await MicrosoftSQL.BulkInsert(_input, options, default);
Assert.AreEqual(6, GetRowCount());

CleanUp();
}
}
Expand Down

0 comments on commit 6c5627d

Please sign in to comment.