fhir-server/test/Microsoft.Health.Fhir.Share.../Persistence/SqlServerFhirStorageTestHel...

381 строка
19 KiB
C#
Исходник Постоянная ссылка Обычный вид История

// -------------------------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See LICENSE in the repo root for license information.
// -------------------------------------------------------------------------------------------------
2020-02-10 20:36:48 +03:00
using System;
using System.Diagnostics;
using System.Text;
2020-02-10 20:36:48 +03:00
using System.Threading;
using System.Threading.Tasks;
using EnsureThat;
using MediatR;
using Microsoft.Data.SqlClient;
Bump HealthcareSharedPackageVersion from 6.1.10 to 6.1.29 (#2584) * Bump HealthcareSharedPackageVersion from 6.1.10 to 6.1.29 Bumps `HealthcareSharedPackageVersion` from 6.1.10 to 6.1.29. Updates `Microsoft.Health.Abstractions` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Api` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Extensions.DependencyInjection` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.SqlServer` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Test.Utilities` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Core` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Extensions.BuildTimeCodeGenerator` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.SqlServer.Api` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Tools.Sql.Tasks` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Client` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) --- updated-dependencies: - dependency-name: Microsoft.Health.Abstractions dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Api dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Extensions.DependencyInjection dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.SqlServer dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Test.Utilities dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Core dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Extensions.BuildTimeCodeGenerator dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.SqlServer.Api dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Tools.Sql.Tasks dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Client dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> * Fixes build errors * Updated test files Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Richa Bansal <57157506+rbans96@users.noreply.github.com> Co-authored-by: Richa Bansal <ribans@microsoft.com> Co-authored-by: apurvabhale <apurvabhale@microsoft.com>
2022-05-10 01:20:09 +03:00
using Microsoft.Extensions.DependencyInjection;
2020-02-10 20:36:48 +03:00
using Microsoft.Extensions.Logging.Abstractions;
Bump HealthcareSharedPackageVersion from 3.0.5 to 3.0.16 (#2084) * Bump HealthcareSharedPackageVersion from 3.0.5 to 3.0.16 Bumps `HealthcareSharedPackageVersion` from 3.0.5 to 3.0.16. Updates `Microsoft.Health.Abstractions` from 3.0.5 to 3.0.16 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/3.0.5...3.0.16) Updates `Microsoft.Health.Api` from 3.0.5 to 3.0.16 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/3.0.5...3.0.16) Updates `Microsoft.Health.Extensions.DependencyInjection` from 3.0.5 to 3.0.16 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/3.0.5...3.0.16) Updates `Microsoft.Health.Test.Utilities` from 3.0.5 to 3.0.16 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/3.0.5...3.0.16) Updates `Microsoft.Health.Core` from 3.0.5 to 3.0.16 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/3.0.5...3.0.16) Updates `Microsoft.Health.Extensions.BuildTimeCodeGenerator` from 3.0.5 to 3.0.16 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/3.0.5...3.0.16) Updates `Microsoft.Health.SqlServer` from 3.0.5 to 3.0.16 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/3.0.5...3.0.16) Updates `Microsoft.Health.SqlServer.Api` from 3.0.5 to 3.0.16 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/3.0.5...3.0.16) Updates `Microsoft.Health.Client` from 3.0.5 to 3.0.16 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/3.0.5...3.0.16) --- updated-dependencies: - dependency-name: Microsoft.Health.Abstractions dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Api dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Extensions.DependencyInjection dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Test.Utilities dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Core dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Extensions.BuildTimeCodeGenerator dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.SqlServer dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.SqlServer.Api dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Client dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> * merge with master Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Ivan Matantsev <Ivanidze.kirov@gmail.com>
2021-07-15 03:39:01 +03:00
using Microsoft.Extensions.Options;
2020-02-10 20:36:48 +03:00
using Microsoft.Health.Fhir.SqlServer.Features.Schema;
using Microsoft.Health.Fhir.SqlServer.Features.Storage;
using Microsoft.Health.Fhir.SqlServer.Features.Watchdogs;
using Microsoft.Health.JobManagement.UnitTests;
using Microsoft.Health.SqlServer;
using Microsoft.Health.SqlServer.Configs;
Bump HealthcareSharedPackageVersion from 6.1.10 to 6.1.29 (#2584) * Bump HealthcareSharedPackageVersion from 6.1.10 to 6.1.29 Bumps `HealthcareSharedPackageVersion` from 6.1.10 to 6.1.29. Updates `Microsoft.Health.Abstractions` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Api` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Extensions.DependencyInjection` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.SqlServer` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Test.Utilities` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Core` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Extensions.BuildTimeCodeGenerator` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.SqlServer.Api` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Tools.Sql.Tasks` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Client` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) --- updated-dependencies: - dependency-name: Microsoft.Health.Abstractions dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Api dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Extensions.DependencyInjection dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.SqlServer dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Test.Utilities dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Core dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Extensions.BuildTimeCodeGenerator dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.SqlServer.Api dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Tools.Sql.Tasks dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Client dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> * Fixes build errors * Updated test files Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Richa Bansal <57157506+rbans96@users.noreply.github.com> Co-authored-by: Richa Bansal <ribans@microsoft.com> Co-authored-by: apurvabhale <apurvabhale@microsoft.com>
2022-05-10 01:20:09 +03:00
using Microsoft.Health.SqlServer.Features.Client;
using Microsoft.Health.SqlServer.Features.Schema;
using Microsoft.Health.SqlServer.Features.Schema.Manager;
Bump HealthcareSharedPackageVersion from 6.1.10 to 6.1.29 (#2584) * Bump HealthcareSharedPackageVersion from 6.1.10 to 6.1.29 Bumps `HealthcareSharedPackageVersion` from 6.1.10 to 6.1.29. Updates `Microsoft.Health.Abstractions` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Api` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Extensions.DependencyInjection` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.SqlServer` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Test.Utilities` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Core` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Extensions.BuildTimeCodeGenerator` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.SqlServer.Api` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Tools.Sql.Tasks` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Client` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) --- updated-dependencies: - dependency-name: Microsoft.Health.Abstractions dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Api dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Extensions.DependencyInjection dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.SqlServer dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Test.Utilities dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Core dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Extensions.BuildTimeCodeGenerator dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.SqlServer.Api dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Tools.Sql.Tasks dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Client dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> * Fixes build errors * Updated test files Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Richa Bansal <57157506+rbans96@users.noreply.github.com> Co-authored-by: Richa Bansal <ribans@microsoft.com> Co-authored-by: apurvabhale <apurvabhale@microsoft.com>
2022-05-10 01:20:09 +03:00
using Microsoft.Health.SqlServer.Features.Storage;
using NSubstitute;
2020-02-10 20:36:48 +03:00
using Polly;
using Polly.Retry;
using Xunit;
2020-02-10 20:36:48 +03:00
using Task = System.Threading.Tasks.Task;
namespace Microsoft.Health.Fhir.Tests.Integration.Persistence
{
2020-02-10 20:36:48 +03:00
public class SqlServerFhirStorageTestHelper : IFhirStorageTestHelper, ISqlServerFhirStorageTestHelper
{
private readonly string _masterDatabaseName;
2020-02-10 20:36:48 +03:00
private readonly string _initialConnectionString;
private readonly SqlServerFhirModel _sqlServerFhirModel;
private readonly ISqlConnectionBuilder _sqlConnectionBuilder;
private readonly AsyncRetryPolicy _dbSetupRetryPolicy;
private readonly TestQueueClient _queueClient;
private static readonly SemaphoreSlim DbSetupSemaphore = new(14); // max number of concurrent requests to the master database is 64 and we run 4 FHIR versions in parallel
public SqlServerFhirStorageTestHelper(
string initialConnectionString,
string masterDatabaseName,
SqlServerFhirModel sqlServerFhirModel,
ISqlConnectionBuilder sqlConnectionBuilder,
TestQueueClient queueClient)
{
EnsureArg.IsNotNull(sqlServerFhirModel, nameof(sqlServerFhirModel));
EnsureArg.IsNotNull(sqlConnectionBuilder, nameof(sqlConnectionBuilder));
_masterDatabaseName = masterDatabaseName;
2020-02-10 20:36:48 +03:00
_initialConnectionString = initialConnectionString;
_sqlServerFhirModel = sqlServerFhirModel;
_sqlConnectionBuilder = sqlConnectionBuilder;
_queueClient = queueClient;
_dbSetupRetryPolicy = Policy
.Handle<Exception>()
.WaitAndRetryAsync(
retryCount: 5,
sleepDurationProvider: retryAttempt => TimeSpan.FromSeconds(3));
2020-02-10 20:36:48 +03:00
}
public async Task CreateAndInitializeDatabase(string databaseName, int maximumSupportedSchemaVersion, bool forceIncrementalSchemaUpgrade, SchemaInitializer schemaInitializer = null, CancellationToken cancellationToken = default)
2020-02-10 20:36:48 +03:00
{
string testConnectionString = new SqlConnectionStringBuilder(_initialConnectionString) { InitialCatalog = databaseName }.ToString();
2020-02-10 20:36:48 +03:00
await _dbSetupRetryPolicy.ExecuteAsync(
async () =>
{
// Create the database.
await using SqlConnection connection = await _sqlConnectionBuilder.GetSqlConnectionAsync(_masterDatabaseName, null, cancellationToken);
await connection.OpenAsync(cancellationToken);
2020-02-10 20:36:48 +03:00
await using SqlCommand command = connection.CreateCommand();
command.CommandTimeout = 300;
command.CommandText = @$"
IF NOT EXISTS (SELECT * FROM sys.databases WHERE name = '{databaseName}')
BEGIN
CREATE DATABASE {databaseName};
END";
await DbSetupSemaphore.WaitAsync(cancellationToken);
try
{
await command.ExecuteNonQueryAsync(cancellationToken);
}
finally
{
DbSetupSemaphore.Release();
}
await connection.CloseAsync();
});
2020-02-10 20:36:48 +03:00
// Verify that we can connect to the new database. This sometimes does not work right away with Azure SQL.
await _dbSetupRetryPolicy.ExecuteAsync(
async () =>
{
await using SqlConnection connection = await _sqlConnectionBuilder.GetSqlConnectionAsync(databaseName, null, cancellationToken);
await connection.OpenAsync(cancellationToken);
await using SqlCommand sqlCommand = connection.CreateCommand();
2024-10-15 19:23:29 +03:00
sqlCommand.CommandText = "IF object_id('sp_changedbowner') IS NOT NULL EXECUTE sp_changedbowner 'sa'";
await sqlCommand.ExecuteNonQueryAsync(cancellationToken);
await connection.CloseAsync();
});
2020-02-10 20:36:48 +03:00
schemaInitializer ??= CreateSchemaInitializer(testConnectionString, maximumSupportedSchemaVersion);
await _dbSetupRetryPolicy.ExecuteAsync(async () => { await schemaInitializer.InitializeAsync(forceIncrementalSchemaUpgrade, cancellationToken); });
await InitWatchdogsParameters(databaseName);
await EnableDatabaseLogging(databaseName);
await _sqlServerFhirModel.Initialize(maximumSupportedSchemaVersion, cancellationToken);
2020-02-10 20:36:48 +03:00
}
public async Task EnableDatabaseLogging(string databaseName)
{
await _dbSetupRetryPolicy.ExecuteAsync(async () =>
{
await using SqlConnection connection = await _sqlConnectionBuilder.GetSqlConnectionAsync(databaseName, cancellationToken: CancellationToken.None);
await connection.OpenAsync(CancellationToken.None);
await using SqlCommand sqlCommand = connection.CreateCommand();
sqlCommand.CommandText = @"
INSERT INTO Parameters (Id,Char) SELECT name,'LogEvent' FROM sys.objects WHERE type = 'p'
INSERT INTO Parameters (Id,Char) SELECT 'Search','LogEvent'
";
await sqlCommand.ExecuteNonQueryAsync(CancellationToken.None);
await connection.CloseAsync();
});
}
public async Task InitWatchdogsParameters(string databaseName)
{
await using var conn = await _sqlConnectionBuilder.GetSqlConnectionAsync(databaseName, cancellationToken: CancellationToken.None);
await conn.OpenAsync(CancellationToken.None);
using var cmd = new SqlCommand(
@"
INSERT INTO dbo.Parameters (Id,Number) SELECT @IsEnabledId, 1
INSERT INTO dbo.Parameters (Id,Number) SELECT @ThreadsId, 4
INSERT INTO dbo.Parameters (Id,Number) SELECT @PeriodSecId, 5
INSERT INTO dbo.Parameters (Id,Number) SELECT @LeasePeriodSecId, 2
INSERT INTO dbo.Parameters (Id,Number) SELECT @HeartbeatPeriodSecId, 2
INSERT INTO dbo.Parameters (Id,Number) SELECT @HeartbeatTimeoutSecId, 10
INSERT INTO dbo.Parameters (Id,Number) SELECT 'Defrag.MinFragPct', 0
INSERT INTO dbo.Parameters (Id,Number) SELECT 'Defrag.MinSizeGB', 0.01
",
conn);
var defragWatchdog = new DefragWatchdog();
cmd.Parameters.AddWithValue("@IsEnabledId", defragWatchdog.IsEnabledId);
cmd.Parameters.AddWithValue("@ThreadsId", defragWatchdog.ThreadsId);
cmd.Parameters.AddWithValue("@PeriodSecId", defragWatchdog.PeriodSecId);
cmd.Parameters.AddWithValue("@LeasePeriodSecId", defragWatchdog.LeasePeriodSecId);
cmd.Parameters.AddWithValue("@HeartbeatPeriodSecId", defragWatchdog.HeartbeatPeriodSecId);
cmd.Parameters.AddWithValue("@HeartbeatTimeoutSecId", defragWatchdog.HeartbeatTimeoutSecId);
await cmd.ExecuteNonQueryAsync(CancellationToken.None);
using var cmd2 = new SqlCommand(
@"
INSERT INTO dbo.Parameters (Id,Number) SELECT @PeriodSecId, 5
INSERT INTO dbo.Parameters (Id,Number) SELECT @LeasePeriodSecId, 2
INSERT INTO dbo.Parameters (Id,Number) SELECT 'CleanupEventLog.DeleteBatchSize', 1000
INSERT INTO dbo.Parameters (Id,Number) SELECT 'CleanupEventLog.AllowedRows', 1000
INSERT INTO dbo.Parameters (Id,Number) SELECT 'CleanupEventLog.RetentionPeriodDay', 1.0/24/3600
INSERT INTO dbo.Parameters (Id,Number) SELECT 'CleanupEventLog.IsEnabled', 1
",
conn);
var cleanupWatchdog = new CleanupEventLogWatchdog();
cmd2.Parameters.AddWithValue("@PeriodSecId", cleanupWatchdog.PeriodSecId);
cmd2.Parameters.AddWithValue("@LeasePeriodSecId", cleanupWatchdog.LeasePeriodSecId);
await cmd2.ExecuteNonQueryAsync(CancellationToken.None);
using var cmd3 = new SqlCommand(
@"
INSERT INTO dbo.Parameters (Id,Number) SELECT @PeriodSecId, 2
INSERT INTO dbo.Parameters (Id,Number) SELECT @LeasePeriodSecId, 5
",
conn);
var transactionWatchdog = new TransactionWatchdog();
cmd3.Parameters.AddWithValue("@PeriodSecId", transactionWatchdog.PeriodSecId);
cmd3.Parameters.AddWithValue("@LeasePeriodSecId", transactionWatchdog.LeasePeriodSecId);
await cmd3.ExecuteNonQueryAsync(CancellationToken.None);
using var cmd4 = new SqlCommand(
@"
INSERT INTO dbo.Parameters (Id,Number) SELECT @PeriodSecId, 5
INSERT INTO dbo.Parameters (Id,Number) SELECT @LeasePeriodSecId, 10
",
conn);
var invisibleHistoryCleanupWatchdog = new InvisibleHistoryCleanupWatchdog();
cmd4.Parameters.AddWithValue("@PeriodSecId", invisibleHistoryCleanupWatchdog.PeriodSecId);
cmd4.Parameters.AddWithValue("@LeasePeriodSecId", invisibleHistoryCleanupWatchdog.LeasePeriodSecId);
await cmd4.ExecuteNonQueryAsync(CancellationToken.None);
await conn.CloseAsync();
}
public async Task ExecuteSqlCmd(string sql)
{
await using SqlConnection connection = await _sqlConnectionBuilder.GetSqlConnectionAsync(cancellationToken: CancellationToken.None);
using SqlCommand command = new SqlCommand(sql, connection);
await connection.OpenAsync(CancellationToken.None);
await command.ExecuteNonQueryAsync(CancellationToken.None);
await connection.CloseAsync();
}
2020-02-10 20:36:48 +03:00
public async Task DeleteDatabase(string databaseName, CancellationToken cancellationToken = default)
{
try
{
await DbSetupSemaphore.WaitAsync(cancellationToken);
try
{
SqlConnection.ClearAllPools();
await using SqlConnection connection = await _sqlConnectionBuilder.GetSqlConnectionAsync(_masterDatabaseName, null, cancellationToken);
await connection.OpenAsync(cancellationToken);
await using SqlCommand command = connection.CreateCommand();
command.CommandTimeout = 15;
command.CommandText = $"DROP DATABASE IF EXISTS {databaseName}";
await command.ExecuteNonQueryAsync(cancellationToken);
await connection.CloseAsync();
}
finally
{
DbSetupSemaphore.Release();
}
}
catch (Exception ex)
{
Trace.TraceError($"Failed to delete database: {ex.Message}. Stack Trace: {ex.StackTrace}. Inner Exception: {ex.InnerException?.Message}");
}
2020-02-10 20:36:48 +03:00
}
public Task DeleteAllExportJobRecordsAsync(CancellationToken cancellationToken = default)
{
_queueClient.JobInfos.Clear();
return Task.CompletedTask;
2020-02-10 20:36:48 +03:00
}
public Task DeleteExportJobRecordAsync(string id, CancellationToken cancellationToken = default)
2020-02-10 20:36:48 +03:00
{
_queueClient.JobInfos.RemoveAll((info) => info.Id == long.Parse(id));
return Task.CompletedTask;
}
public async Task DeleteSearchParameterStatusAsync(string uri, CancellationToken cancellationToken = default)
{
await using SqlConnection connection = await _sqlConnectionBuilder.GetSqlConnectionAsync(cancellationToken: cancellationToken);
var command = new SqlCommand("DELETE FROM dbo.SearchParam WHERE Uri = @uri", connection);
command.Parameters.AddWithValue("@uri", uri);
await command.Connection.OpenAsync(cancellationToken);
await command.ExecuteNonQueryAsync(cancellationToken);
await connection.CloseAsync();
_sqlServerFhirModel.RemoveSearchParamIdToUriMapping(uri);
}
public async Task DeleteAllReindexJobRecordsAsync(CancellationToken cancellationToken = default)
{
await using SqlConnection connection = await _sqlConnectionBuilder.GetSqlConnectionAsync(cancellationToken: cancellationToken);
var command = new SqlCommand("DELETE FROM dbo.ReindexJob", connection);
await command.Connection.OpenAsync(cancellationToken);
await command.ExecuteNonQueryAsync(cancellationToken);
await connection.CloseAsync();
}
public async Task DeleteReindexJobRecordAsync(string id, CancellationToken cancellationToken = default)
{
await using SqlConnection connection = await _sqlConnectionBuilder.GetSqlConnectionAsync(cancellationToken: cancellationToken);
var command = new SqlCommand("DELETE FROM dbo.ReindexJob WHERE Id = @id", connection);
var parameter = new SqlParameter { ParameterName = "@id", Value = id };
command.Parameters.Add(parameter);
await command.Connection.OpenAsync(cancellationToken);
await command.ExecuteNonQueryAsync(cancellationToken);
await connection.CloseAsync();
}
async Task<object> IFhirStorageTestHelper.GetSnapshotToken()
{
await using SqlConnection connection = await _sqlConnectionBuilder.GetSqlConnectionAsync();
await connection.OpenAsync();
SqlCommand command = connection.CreateCommand();
command.CommandText = "SELECT MAX(ResourceSurrogateId) FROM dbo.Resource";
return await command.ExecuteScalarAsync();
}
async Task IFhirStorageTestHelper.ValidateSnapshotTokenIsCurrent(object snapshotToken)
{
await using SqlConnection connection = await _sqlConnectionBuilder.GetSqlConnectionAsync();
await connection.OpenAsync();
var sb = new StringBuilder();
await using (SqlCommand outerCommand = connection.CreateCommand())
{
outerCommand.CommandText = @"
SELECT t.name
FROM sys.tables t
INNER JOIN sys.columns c ON c.object_id = t.object_id
WHERE c.name = 'ResourceSurrogateId'";
await using (SqlDataReader reader = await outerCommand.ExecuteReaderAsync())
{
while (reader.Read())
{
if (sb.Length > 0)
{
sb.AppendLine("UNION ALL");
}
string tableName = reader.GetString(0);
sb.AppendLine($"SELECT '{tableName}' as TableName, MAX(ResourceSurrogateId) as MaxResourceSurrogateId FROM dbo.{tableName}");
}
}
}
await using (SqlCommand command = connection.CreateCommand())
{
command.CommandText = sb.ToString();
await using (SqlDataReader reader = await command.ExecuteReaderAsync())
{
while (await reader.ReadAsync())
{
Assert.True(reader.IsDBNull(1) || reader.GetInt64(1) <= (long)snapshotToken);
}
}
}
await connection.CloseAsync();
}
2020-02-10 20:36:48 +03:00
private SchemaInitializer CreateSchemaInitializer(string testConnectionString, int maxSupportedSchemaVersion)
2020-02-10 20:36:48 +03:00
{
var schemaOptions = new SqlServerSchemaOptions { AutomaticUpdatesEnabled = true };
Bump HealthcareSharedPackageVersion from 3.2.33 to 3.2.38 (#2355) * Bump HealthcareSharedPackageVersion from 3.2.33 to 3.2.38 Bumps `HealthcareSharedPackageVersion` from 3.2.33 to 3.2.38. Updates `Microsoft.Health.Abstractions` from 3.2.33 to 3.2.38 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/3.2.33...3.2.38) Updates `Microsoft.Health.Api` from 3.2.33 to 3.2.38 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/3.2.33...3.2.38) Updates `Microsoft.Health.Extensions.DependencyInjection` from 3.2.33 to 3.2.38 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/3.2.33...3.2.38) Updates `Microsoft.Health.Test.Utilities` from 3.2.33 to 3.2.38 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/3.2.33...3.2.38) Updates `Microsoft.Health.Core` from 3.2.33 to 3.2.38 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/3.2.33...3.2.38) Updates `Microsoft.Health.Extensions.BuildTimeCodeGenerator` from 3.2.33 to 3.2.38 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/3.2.33...3.2.38) Updates `Microsoft.Health.SqlServer` from 3.2.33 to 3.2.38 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/3.2.33...3.2.38) Updates `Microsoft.Health.SqlServer.Api` from 3.2.33 to 3.2.38 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/3.2.33...3.2.38) Updates `Microsoft.Health.Client` from 3.2.33 to 3.2.38 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/3.2.33...3.2.38) --- updated-dependencies: - dependency-name: Microsoft.Health.Abstractions dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Api dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Extensions.DependencyInjection dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Test.Utilities dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Core dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Extensions.BuildTimeCodeGenerator dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.SqlServer dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.SqlServer.Api dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Client dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> * Upgrade sdk * Added required parameters * Update runtime * Adds statement timeout for tests * Disable customSearchParam test Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Richa Bansal <ribans@microsoft.com>
2021-11-17 21:00:51 +03:00
var config = Options.Create(new SqlServerDataStoreConfiguration { ConnectionString = testConnectionString, Initialize = true, SchemaOptions = schemaOptions, StatementTimeout = TimeSpan.FromMinutes(10) });
var schemaInformation = new SchemaInformation(SchemaVersionConstants.Min, maxSupportedSchemaVersion);
2020-02-10 20:36:48 +03:00
Bump HealthcareSharedPackageVersion from 6.1.10 to 6.1.29 (#2584) * Bump HealthcareSharedPackageVersion from 6.1.10 to 6.1.29 Bumps `HealthcareSharedPackageVersion` from 6.1.10 to 6.1.29. Updates `Microsoft.Health.Abstractions` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Api` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Extensions.DependencyInjection` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.SqlServer` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Test.Utilities` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Core` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Extensions.BuildTimeCodeGenerator` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.SqlServer.Api` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Tools.Sql.Tasks` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Client` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) --- updated-dependencies: - dependency-name: Microsoft.Health.Abstractions dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Api dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Extensions.DependencyInjection dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.SqlServer dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Test.Utilities dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Core dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Extensions.BuildTimeCodeGenerator dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.SqlServer.Api dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Tools.Sql.Tasks dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Client dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> * Fixes build errors * Updated test files Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Richa Bansal <57157506+rbans96@users.noreply.github.com> Co-authored-by: Richa Bansal <ribans@microsoft.com> Co-authored-by: apurvabhale <apurvabhale@microsoft.com>
2022-05-10 01:20:09 +03:00
var sqlConnection = Substitute.For<ISqlConnectionBuilder>();
Bump HealthcareSharedPackageVersion from 6.2.103 to 6.2.133 (#3480) * Bump HealthcareSharedPackageVersion from 6.2.103 to 6.2.133 Bumps `HealthcareSharedPackageVersion` from 6.2.103 to 6.2.133. Updates `Microsoft.Health.Abstractions` from 6.2.103 to 6.2.133 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.2.103...6.2.133) Updates `Microsoft.Health.Api` from 6.2.103 to 6.2.133 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.2.103...6.2.133) Updates `Microsoft.Health.Client` from 6.2.103 to 6.2.133 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.2.103...6.2.133) Updates `Microsoft.Health.Core` from 6.2.103 to 6.2.133 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.2.103...6.2.133) Updates `Microsoft.Health.Extensions.BuildTimeCodeGenerator` from 6.2.103 to 6.2.133 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.2.103...6.2.133) Updates `Microsoft.Health.Extensions.DependencyInjection` from 6.2.103 to 6.2.133 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.2.103...6.2.133) Updates `Microsoft.Health.SqlServer.Api` from 6.2.103 to 6.2.133 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.2.103...6.2.133) Updates `Microsoft.Health.SqlServer` from 6.2.103 to 6.2.133 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.2.103...6.2.133) Updates `Microsoft.Health.Test.Utilities` from 6.2.103 to 6.2.133 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.2.103...6.2.133) Updates `Microsoft.Health.Tools.Sql.Tasks` from 6.2.103 to 6.2.133 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.2.103...6.2.133) --- updated-dependencies: - dependency-name: Microsoft.Health.Abstractions dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Api dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Client dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Core dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Extensions.BuildTimeCodeGenerator dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Extensions.DependencyInjection dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.SqlServer.Api dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.SqlServer dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Test.Utilities dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Tools.Sql.Tasks dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> * revert * Fix build errors * Fix name * Register preprocessor explicitly * Fix order --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Richa Bansal <ribans@microsoft.com>
2023-08-17 20:12:25 +03:00
sqlConnection.GetSqlConnectionAsync(Arg.Any<string>(), Arg.Any<int?>(), Arg.Any<CancellationToken>()).ReturnsForAnyArgs((x) => Task.FromResult(GetSqlConnection(testConnectionString)));
Bump HealthcareSharedPackageVersion from 6.1.10 to 6.1.29 (#2584) * Bump HealthcareSharedPackageVersion from 6.1.10 to 6.1.29 Bumps `HealthcareSharedPackageVersion` from 6.1.10 to 6.1.29. Updates `Microsoft.Health.Abstractions` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Api` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Extensions.DependencyInjection` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.SqlServer` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Test.Utilities` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Core` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Extensions.BuildTimeCodeGenerator` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.SqlServer.Api` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Tools.Sql.Tasks` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Client` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) --- updated-dependencies: - dependency-name: Microsoft.Health.Abstractions dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Api dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Extensions.DependencyInjection dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.SqlServer dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Test.Utilities dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Core dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Extensions.BuildTimeCodeGenerator dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.SqlServer.Api dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Tools.Sql.Tasks dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Client dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> * Fixes build errors * Updated test files Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Richa Bansal <57157506+rbans96@users.noreply.github.com> Co-authored-by: Richa Bansal <ribans@microsoft.com> Co-authored-by: apurvabhale <apurvabhale@microsoft.com>
2022-05-10 01:20:09 +03:00
SqlRetryLogicBaseProvider sqlRetryLogicBaseProvider = SqlConfigurableRetryFactory.CreateFixedRetryProvider(new SqlClientRetryOptions().Settings);
Bump HealthcareSharedPackageVersion from 6.1.29 to 6.1.37 (#2601) * Bump HealthcareSharedPackageVersion from 6.1.29 to 6.1.37 Bumps `HealthcareSharedPackageVersion` from 6.1.29 to 6.1.37. Updates `Microsoft.Health.Abstractions` from 6.1.29 to 6.1.37 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.29...6.1.37) Updates `Microsoft.Health.Api` from 6.1.29 to 6.1.37 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.29...6.1.37) Updates `Microsoft.Health.Extensions.DependencyInjection` from 6.1.29 to 6.1.37 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.29...6.1.37) Updates `Microsoft.Health.SqlServer` from 6.1.29 to 6.1.37 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.29...6.1.37) Updates `Microsoft.Health.Test.Utilities` from 6.1.29 to 6.1.37 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.29...6.1.37) Updates `Microsoft.Health.Core` from 6.1.29 to 6.1.37 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.29...6.1.37) Updates `Microsoft.Health.Extensions.BuildTimeCodeGenerator` from 6.1.29 to 6.1.37 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.29...6.1.37) Updates `Microsoft.Health.SqlServer.Api` from 6.1.29 to 6.1.37 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.29...6.1.37) Updates `Microsoft.Health.Tools.Sql.Tasks` from 6.1.29 to 6.1.37 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.29...6.1.37) Updates `Microsoft.Health.Client` from 6.1.29 to 6.1.37 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.29...6.1.37) --- updated-dependencies: - dependency-name: Microsoft.Health.Abstractions dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Api dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Extensions.DependencyInjection dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.SqlServer dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Test.Utilities dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Core dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Extensions.BuildTimeCodeGenerator dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.SqlServer.Api dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Tools.Sql.Tasks dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Client dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> * Updated test files * Updated test files Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: apurvabhale <apurvabhale@microsoft.com>
2022-05-12 21:39:30 +03:00
var sqlServerDataStoreConfiguration = new SqlServerDataStoreConfiguration() { ConnectionString = testConnectionString };
Bump HealthcareSharedPackageVersion from 6.1.10 to 6.1.29 (#2584) * Bump HealthcareSharedPackageVersion from 6.1.10 to 6.1.29 Bumps `HealthcareSharedPackageVersion` from 6.1.10 to 6.1.29. Updates `Microsoft.Health.Abstractions` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Api` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Extensions.DependencyInjection` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.SqlServer` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Test.Utilities` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Core` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Extensions.BuildTimeCodeGenerator` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.SqlServer.Api` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Tools.Sql.Tasks` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Client` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) --- updated-dependencies: - dependency-name: Microsoft.Health.Abstractions dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Api dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Extensions.DependencyInjection dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.SqlServer dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Test.Utilities dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Core dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Extensions.BuildTimeCodeGenerator dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.SqlServer.Api dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Tools.Sql.Tasks dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Client dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> * Fixes build errors * Updated test files Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Richa Bansal <57157506+rbans96@users.noreply.github.com> Co-authored-by: Richa Bansal <ribans@microsoft.com> Co-authored-by: apurvabhale <apurvabhale@microsoft.com>
2022-05-10 01:20:09 +03:00
var sqlConnectionWrapperFactory = new SqlConnectionWrapperFactory(new SqlTransactionHandler(), sqlConnection, sqlRetryLogicBaseProvider, config);
var schemaManagerDataStore = new SchemaManagerDataStore(sqlConnectionWrapperFactory, config, NullLogger<SchemaManagerDataStore>.Instance);
var schemaUpgradeRunner = new SchemaUpgradeRunner(new ScriptProvider<SchemaVersion>(), new BaseScriptProvider(), NullLogger<SchemaUpgradeRunner>.Instance, sqlConnectionWrapperFactory, schemaManagerDataStore);
Bump HealthcareSharedPackageVersion from 6.2.149 to 7.0.2 (#3515) * Bump HealthcareSharedPackageVersion from 6.2.149 to 7.0.2 Bumps `HealthcareSharedPackageVersion` from 6.2.149 to 7.0.2. Updates `Microsoft.Health.Abstractions` from 6.2.149 to 7.0.2 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.2.149...7.0.2) Updates `Microsoft.Health.Api` from 6.2.149 to 7.0.2 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.2.149...7.0.2) Updates `Microsoft.Health.Client` from 6.2.149 to 7.0.2 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.2.149...7.0.2) Updates `Microsoft.Health.Core` from 6.2.149 to 7.0.2 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.2.149...7.0.2) Updates `Microsoft.Health.Extensions.BuildTimeCodeGenerator` from 6.2.149 to 7.0.2 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.2.149...7.0.2) Updates `Microsoft.Health.Extensions.DependencyInjection` from 6.2.149 to 7.0.2 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.2.149...7.0.2) Updates `Microsoft.Health.SqlServer.Api` from 6.2.149 to 7.0.2 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.2.149...7.0.2) Updates `Microsoft.Health.SqlServer` from 6.2.149 to 7.0.2 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.2.149...7.0.2) Updates `Microsoft.Health.Test.Utilities` from 6.2.149 to 7.0.2 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.2.149...7.0.2) Updates `Microsoft.Health.Tools.Sql.Tasks` from 6.2.149 to 7.0.2 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.2.149...7.0.2) --- updated-dependencies: - dependency-name: Microsoft.Health.Abstractions dependency-type: direct:production update-type: version-update:semver-major - dependency-name: Microsoft.Health.Api dependency-type: direct:production update-type: version-update:semver-major - dependency-name: Microsoft.Health.Client dependency-type: direct:production update-type: version-update:semver-major - dependency-name: Microsoft.Health.Core dependency-type: direct:production update-type: version-update:semver-major - dependency-name: Microsoft.Health.Extensions.BuildTimeCodeGenerator dependency-type: direct:production update-type: version-update:semver-major - dependency-name: Microsoft.Health.Extensions.DependencyInjection dependency-type: direct:production update-type: version-update:semver-major - dependency-name: Microsoft.Health.SqlServer.Api dependency-type: direct:production update-type: version-update:semver-major - dependency-name: Microsoft.Health.SqlServer dependency-type: direct:production update-type: version-update:semver-major - dependency-name: Microsoft.Health.Test.Utilities dependency-type: direct:production update-type: version-update:semver-major - dependency-name: Microsoft.Health.Tools.Sql.Tasks dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * Fixes build error * Fix unit test * Fix test * Update tests fixture * revert removing impl --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Richa Bansal <ribans@microsoft.com>
2023-09-21 19:20:45 +03:00
////Func<IServiceProvider, ISqlConnectionStringProvider> sqlConnectionStringProvider = p => sqlConnectionString;
Bump HealthcareSharedPackageVersion from 6.1.29 to 6.1.37 (#2601) * Bump HealthcareSharedPackageVersion from 6.1.29 to 6.1.37 Bumps `HealthcareSharedPackageVersion` from 6.1.29 to 6.1.37. Updates `Microsoft.Health.Abstractions` from 6.1.29 to 6.1.37 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.29...6.1.37) Updates `Microsoft.Health.Api` from 6.1.29 to 6.1.37 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.29...6.1.37) Updates `Microsoft.Health.Extensions.DependencyInjection` from 6.1.29 to 6.1.37 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.29...6.1.37) Updates `Microsoft.Health.SqlServer` from 6.1.29 to 6.1.37 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.29...6.1.37) Updates `Microsoft.Health.Test.Utilities` from 6.1.29 to 6.1.37 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.29...6.1.37) Updates `Microsoft.Health.Core` from 6.1.29 to 6.1.37 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.29...6.1.37) Updates `Microsoft.Health.Extensions.BuildTimeCodeGenerator` from 6.1.29 to 6.1.37 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.29...6.1.37) Updates `Microsoft.Health.SqlServer.Api` from 6.1.29 to 6.1.37 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.29...6.1.37) Updates `Microsoft.Health.Tools.Sql.Tasks` from 6.1.29 to 6.1.37 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.29...6.1.37) Updates `Microsoft.Health.Client` from 6.1.29 to 6.1.37 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.29...6.1.37) --- updated-dependencies: - dependency-name: Microsoft.Health.Abstractions dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Api dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Extensions.DependencyInjection dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.SqlServer dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Test.Utilities dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Core dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Extensions.BuildTimeCodeGenerator dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.SqlServer.Api dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Tools.Sql.Tasks dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Client dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> * Updated test files * Updated test files Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: apurvabhale <apurvabhale@microsoft.com>
2022-05-12 21:39:30 +03:00
Func<IServiceProvider, SqlConnectionWrapperFactory> sqlConnectionWrapperFactoryFunc = p => sqlConnectionWrapperFactory;
Bump HealthcareSharedPackageVersion from 6.1.10 to 6.1.29 (#2584) * Bump HealthcareSharedPackageVersion from 6.1.10 to 6.1.29 Bumps `HealthcareSharedPackageVersion` from 6.1.10 to 6.1.29. Updates `Microsoft.Health.Abstractions` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Api` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Extensions.DependencyInjection` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.SqlServer` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Test.Utilities` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Core` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Extensions.BuildTimeCodeGenerator` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.SqlServer.Api` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Tools.Sql.Tasks` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Client` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) --- updated-dependencies: - dependency-name: Microsoft.Health.Abstractions dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Api dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Extensions.DependencyInjection dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.SqlServer dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Test.Utilities dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Core dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Extensions.BuildTimeCodeGenerator dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.SqlServer.Api dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Tools.Sql.Tasks dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Client dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> * Fixes build errors * Updated test files Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Richa Bansal <57157506+rbans96@users.noreply.github.com> Co-authored-by: Richa Bansal <ribans@microsoft.com> Co-authored-by: apurvabhale <apurvabhale@microsoft.com>
2022-05-10 01:20:09 +03:00
Func<IServiceProvider, SchemaUpgradeRunner> schemaUpgradeRunnerFactory = p => schemaUpgradeRunner;
Func<IServiceProvider, IReadOnlySchemaManagerDataStore> schemaManagerDataStoreFactory = p => schemaManagerDataStore;
var collection = new ServiceCollection();
Bump HealthcareSharedPackageVersion from 6.2.149 to 7.0.2 (#3515) * Bump HealthcareSharedPackageVersion from 6.2.149 to 7.0.2 Bumps `HealthcareSharedPackageVersion` from 6.2.149 to 7.0.2. Updates `Microsoft.Health.Abstractions` from 6.2.149 to 7.0.2 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.2.149...7.0.2) Updates `Microsoft.Health.Api` from 6.2.149 to 7.0.2 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.2.149...7.0.2) Updates `Microsoft.Health.Client` from 6.2.149 to 7.0.2 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.2.149...7.0.2) Updates `Microsoft.Health.Core` from 6.2.149 to 7.0.2 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.2.149...7.0.2) Updates `Microsoft.Health.Extensions.BuildTimeCodeGenerator` from 6.2.149 to 7.0.2 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.2.149...7.0.2) Updates `Microsoft.Health.Extensions.DependencyInjection` from 6.2.149 to 7.0.2 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.2.149...7.0.2) Updates `Microsoft.Health.SqlServer.Api` from 6.2.149 to 7.0.2 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.2.149...7.0.2) Updates `Microsoft.Health.SqlServer` from 6.2.149 to 7.0.2 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.2.149...7.0.2) Updates `Microsoft.Health.Test.Utilities` from 6.2.149 to 7.0.2 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.2.149...7.0.2) Updates `Microsoft.Health.Tools.Sql.Tasks` from 6.2.149 to 7.0.2 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.2.149...7.0.2) --- updated-dependencies: - dependency-name: Microsoft.Health.Abstractions dependency-type: direct:production update-type: version-update:semver-major - dependency-name: Microsoft.Health.Api dependency-type: direct:production update-type: version-update:semver-major - dependency-name: Microsoft.Health.Client dependency-type: direct:production update-type: version-update:semver-major - dependency-name: Microsoft.Health.Core dependency-type: direct:production update-type: version-update:semver-major - dependency-name: Microsoft.Health.Extensions.BuildTimeCodeGenerator dependency-type: direct:production update-type: version-update:semver-major - dependency-name: Microsoft.Health.Extensions.DependencyInjection dependency-type: direct:production update-type: version-update:semver-major - dependency-name: Microsoft.Health.SqlServer.Api dependency-type: direct:production update-type: version-update:semver-major - dependency-name: Microsoft.Health.SqlServer dependency-type: direct:production update-type: version-update:semver-major - dependency-name: Microsoft.Health.Test.Utilities dependency-type: direct:production update-type: version-update:semver-major - dependency-name: Microsoft.Health.Tools.Sql.Tasks dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * Fixes build error * Fix unit test * Fix test * Update tests fixture * revert removing impl --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Richa Bansal <ribans@microsoft.com>
2023-09-21 19:20:45 +03:00
////collection.AddScoped(sqlConnectionStringProvider);
Bump HealthcareSharedPackageVersion from 6.1.29 to 6.1.37 (#2601) * Bump HealthcareSharedPackageVersion from 6.1.29 to 6.1.37 Bumps `HealthcareSharedPackageVersion` from 6.1.29 to 6.1.37. Updates `Microsoft.Health.Abstractions` from 6.1.29 to 6.1.37 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.29...6.1.37) Updates `Microsoft.Health.Api` from 6.1.29 to 6.1.37 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.29...6.1.37) Updates `Microsoft.Health.Extensions.DependencyInjection` from 6.1.29 to 6.1.37 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.29...6.1.37) Updates `Microsoft.Health.SqlServer` from 6.1.29 to 6.1.37 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.29...6.1.37) Updates `Microsoft.Health.Test.Utilities` from 6.1.29 to 6.1.37 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.29...6.1.37) Updates `Microsoft.Health.Core` from 6.1.29 to 6.1.37 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.29...6.1.37) Updates `Microsoft.Health.Extensions.BuildTimeCodeGenerator` from 6.1.29 to 6.1.37 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.29...6.1.37) Updates `Microsoft.Health.SqlServer.Api` from 6.1.29 to 6.1.37 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.29...6.1.37) Updates `Microsoft.Health.Tools.Sql.Tasks` from 6.1.29 to 6.1.37 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.29...6.1.37) Updates `Microsoft.Health.Client` from 6.1.29 to 6.1.37 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.29...6.1.37) --- updated-dependencies: - dependency-name: Microsoft.Health.Abstractions dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Api dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Extensions.DependencyInjection dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.SqlServer dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Test.Utilities dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Core dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Extensions.BuildTimeCodeGenerator dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.SqlServer.Api dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Tools.Sql.Tasks dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Client dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> * Updated test files * Updated test files Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: apurvabhale <apurvabhale@microsoft.com>
2022-05-12 21:39:30 +03:00
collection.AddScoped(sqlConnectionWrapperFactoryFunc);
Bump HealthcareSharedPackageVersion from 6.1.10 to 6.1.29 (#2584) * Bump HealthcareSharedPackageVersion from 6.1.10 to 6.1.29 Bumps `HealthcareSharedPackageVersion` from 6.1.10 to 6.1.29. Updates `Microsoft.Health.Abstractions` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Api` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Extensions.DependencyInjection` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.SqlServer` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Test.Utilities` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Core` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Extensions.BuildTimeCodeGenerator` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.SqlServer.Api` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Tools.Sql.Tasks` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Client` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) --- updated-dependencies: - dependency-name: Microsoft.Health.Abstractions dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Api dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Extensions.DependencyInjection dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.SqlServer dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Test.Utilities dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Core dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Extensions.BuildTimeCodeGenerator dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.SqlServer.Api dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Tools.Sql.Tasks dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Client dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> * Fixes build errors * Updated test files Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Richa Bansal <57157506+rbans96@users.noreply.github.com> Co-authored-by: Richa Bansal <ribans@microsoft.com> Co-authored-by: apurvabhale <apurvabhale@microsoft.com>
2022-05-10 01:20:09 +03:00
collection.AddScoped(schemaManagerDataStoreFactory);
Bump HealthcareSharedPackageVersion from 6.1.29 to 6.1.37 (#2601) * Bump HealthcareSharedPackageVersion from 6.1.29 to 6.1.37 Bumps `HealthcareSharedPackageVersion` from 6.1.29 to 6.1.37. Updates `Microsoft.Health.Abstractions` from 6.1.29 to 6.1.37 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.29...6.1.37) Updates `Microsoft.Health.Api` from 6.1.29 to 6.1.37 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.29...6.1.37) Updates `Microsoft.Health.Extensions.DependencyInjection` from 6.1.29 to 6.1.37 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.29...6.1.37) Updates `Microsoft.Health.SqlServer` from 6.1.29 to 6.1.37 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.29...6.1.37) Updates `Microsoft.Health.Test.Utilities` from 6.1.29 to 6.1.37 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.29...6.1.37) Updates `Microsoft.Health.Core` from 6.1.29 to 6.1.37 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.29...6.1.37) Updates `Microsoft.Health.Extensions.BuildTimeCodeGenerator` from 6.1.29 to 6.1.37 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.29...6.1.37) Updates `Microsoft.Health.SqlServer.Api` from 6.1.29 to 6.1.37 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.29...6.1.37) Updates `Microsoft.Health.Tools.Sql.Tasks` from 6.1.29 to 6.1.37 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.29...6.1.37) Updates `Microsoft.Health.Client` from 6.1.29 to 6.1.37 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.29...6.1.37) --- updated-dependencies: - dependency-name: Microsoft.Health.Abstractions dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Api dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Extensions.DependencyInjection dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.SqlServer dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Test.Utilities dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Core dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Extensions.BuildTimeCodeGenerator dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.SqlServer.Api dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Tools.Sql.Tasks dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Client dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> * Updated test files * Updated test files Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: apurvabhale <apurvabhale@microsoft.com>
2022-05-12 21:39:30 +03:00
collection.AddScoped(schemaUpgradeRunnerFactory);
Bump HealthcareSharedPackageVersion from 6.1.10 to 6.1.29 (#2584) * Bump HealthcareSharedPackageVersion from 6.1.10 to 6.1.29 Bumps `HealthcareSharedPackageVersion` from 6.1.10 to 6.1.29. Updates `Microsoft.Health.Abstractions` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Api` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Extensions.DependencyInjection` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.SqlServer` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Test.Utilities` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Core` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Extensions.BuildTimeCodeGenerator` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.SqlServer.Api` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Tools.Sql.Tasks` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Client` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) --- updated-dependencies: - dependency-name: Microsoft.Health.Abstractions dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Api dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Extensions.DependencyInjection dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.SqlServer dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Test.Utilities dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Core dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Extensions.BuildTimeCodeGenerator dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.SqlServer.Api dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Tools.Sql.Tasks dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Client dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> * Fixes build errors * Updated test files Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Richa Bansal <57157506+rbans96@users.noreply.github.com> Co-authored-by: Richa Bansal <ribans@microsoft.com> Co-authored-by: apurvabhale <apurvabhale@microsoft.com>
2022-05-10 01:20:09 +03:00
var serviceProvider = collection.BuildServiceProvider();
Bump HealthcareSharedPackageVersion from 6.1.29 to 6.1.37 (#2601) * Bump HealthcareSharedPackageVersion from 6.1.29 to 6.1.37 Bumps `HealthcareSharedPackageVersion` from 6.1.29 to 6.1.37. Updates `Microsoft.Health.Abstractions` from 6.1.29 to 6.1.37 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.29...6.1.37) Updates `Microsoft.Health.Api` from 6.1.29 to 6.1.37 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.29...6.1.37) Updates `Microsoft.Health.Extensions.DependencyInjection` from 6.1.29 to 6.1.37 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.29...6.1.37) Updates `Microsoft.Health.SqlServer` from 6.1.29 to 6.1.37 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.29...6.1.37) Updates `Microsoft.Health.Test.Utilities` from 6.1.29 to 6.1.37 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.29...6.1.37) Updates `Microsoft.Health.Core` from 6.1.29 to 6.1.37 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.29...6.1.37) Updates `Microsoft.Health.Extensions.BuildTimeCodeGenerator` from 6.1.29 to 6.1.37 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.29...6.1.37) Updates `Microsoft.Health.SqlServer.Api` from 6.1.29 to 6.1.37 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.29...6.1.37) Updates `Microsoft.Health.Tools.Sql.Tasks` from 6.1.29 to 6.1.37 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.29...6.1.37) Updates `Microsoft.Health.Client` from 6.1.29 to 6.1.37 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.29...6.1.37) --- updated-dependencies: - dependency-name: Microsoft.Health.Abstractions dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Api dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Extensions.DependencyInjection dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.SqlServer dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Test.Utilities dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Core dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Extensions.BuildTimeCodeGenerator dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.SqlServer.Api dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Tools.Sql.Tasks dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Client dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> * Updated test files * Updated test files Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: apurvabhale <apurvabhale@microsoft.com>
2022-05-12 21:39:30 +03:00
return new SchemaInitializer(serviceProvider, config, schemaInformation, Substitute.For<IMediator>(), NullLogger<SchemaInitializer>.Instance);
Bump HealthcareSharedPackageVersion from 6.1.10 to 6.1.29 (#2584) * Bump HealthcareSharedPackageVersion from 6.1.10 to 6.1.29 Bumps `HealthcareSharedPackageVersion` from 6.1.10 to 6.1.29. Updates `Microsoft.Health.Abstractions` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Api` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Extensions.DependencyInjection` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.SqlServer` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Test.Utilities` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Core` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Extensions.BuildTimeCodeGenerator` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.SqlServer.Api` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Tools.Sql.Tasks` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Client` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) --- updated-dependencies: - dependency-name: Microsoft.Health.Abstractions dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Api dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Extensions.DependencyInjection dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.SqlServer dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Test.Utilities dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Core dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Extensions.BuildTimeCodeGenerator dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.SqlServer.Api dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Tools.Sql.Tasks dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Client dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> * Fixes build errors * Updated test files Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Richa Bansal <57157506+rbans96@users.noreply.github.com> Co-authored-by: Richa Bansal <ribans@microsoft.com> Co-authored-by: apurvabhale <apurvabhale@microsoft.com>
2022-05-10 01:20:09 +03:00
}
public async Task<SqlConnection> GetSqlConnectionAsync()
{
return await _sqlConnectionBuilder.GetSqlConnectionAsync(cancellationToken: CancellationToken.None);
}
protected SqlConnection GetSqlConnection(string connectionString)
Bump HealthcareSharedPackageVersion from 6.1.10 to 6.1.29 (#2584) * Bump HealthcareSharedPackageVersion from 6.1.10 to 6.1.29 Bumps `HealthcareSharedPackageVersion` from 6.1.10 to 6.1.29. Updates `Microsoft.Health.Abstractions` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Api` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Extensions.DependencyInjection` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.SqlServer` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Test.Utilities` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Core` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Extensions.BuildTimeCodeGenerator` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.SqlServer.Api` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Tools.Sql.Tasks` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) Updates `Microsoft.Health.Client` from 6.1.10 to 6.1.29 - [Release notes](https://github.com/microsoft/healthcare-shared-components/releases) - [Commits](https://github.com/microsoft/healthcare-shared-components/compare/6.1.10...6.1.29) --- updated-dependencies: - dependency-name: Microsoft.Health.Abstractions dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Api dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Extensions.DependencyInjection dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.SqlServer dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Test.Utilities dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Core dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Extensions.BuildTimeCodeGenerator dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.SqlServer.Api dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Tools.Sql.Tasks dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Health.Client dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> * Fixes build errors * Updated test files Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Richa Bansal <57157506+rbans96@users.noreply.github.com> Co-authored-by: Richa Bansal <ribans@microsoft.com> Co-authored-by: apurvabhale <apurvabhale@microsoft.com>
2022-05-10 01:20:09 +03:00
{
var connectionBuilder = new SqlConnectionStringBuilder(connectionString);
var result = new SqlConnection(connectionBuilder.ToString());
return result;
2020-02-10 20:36:48 +03:00
}
}
}