Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelmajgaard committed Aug 20, 2024
1 parent 8c44589 commit abb76a1
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 35 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public static IServiceCollection AddCalculationResultsV2Module(this IServiceColl

// Database Health check
services.TryAddHealthChecks(
registrationKey: HealthCheckNames.WholesaleDatabase,
registrationKey: HealthCheckNames.SettlementReportDatabase,
(key, builder) =>
{
builder.AddDbContextCheck<SettlementReportDatabaseContext>(name: key);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ namespace Energinet.DataHub.SettlementReport.Common.Infrastructure.HealthChecks;
/// </summary>
public static class HealthCheckNames
{
public const string WholesaleDatabase = "WholesaleDatabase";
public const string SettlementReportDatabase = "SettlementReportDatabase";
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ namespace Energinet.DataHub.SettlementReport.Common.Infrastructure.Telemetry;

public static class TelemetryConstants
{
public const string SubsystemName = "wholesale";
public const string SubsystemName = "settlement-report";
}

This file was deleted.

2 changes: 1 addition & 1 deletion source/settlement-report/DatabaseMigration/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public static int Main(string[] args)
// If you are migrating to SQL Server use connection string "Server=localhost;..."
var connectionString =
args.FirstOrDefault()
?? "Server=localhost;Database=wholesale;Trusted_Connection=True;Encrypt=No;";
?? "Server=localhost;Database=settlementreport;Trusted_Connection=True;Encrypt=No;";

Console.WriteLine($"Performing upgrade on {connectionString}");
var result = Upgrader.DatabaseUpgrade(connectionString);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,13 @@
</PackageReference>
<PackageReference Include="Microsoft.Azure.WebJobs.Extensions.DurableTask" Version="2.13.5" />
<PackageReference Include="Microsoft.Identity.Client" Version="4.63.0" />
<PackageReference Include="Microsoft.IdentityModel.Tokens" Version="8.0.1" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.10.0" />
<PackageReference Include="Microsoft.VisualStudio.Threading.Analyzers" Version="17.11.20">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="System.IdentityModel.Tokens.Jwt" Version="8.0.1" />
<PackageReference Include="WireMock.Net" Version="1.5.62" />
<PackageReference Include="WireMock.Net.FluentAssertions" Version="1.5.62" />
<PackageReference Include="WireMock.Net.xUnit" Version="1.5.62" />
Expand Down

0 comments on commit abb76a1

Please sign in to comment.