From 1bb069245782675c7dc16c93dab6bd92643d30ae Mon Sep 17 00:00:00 2001 From: Alexander Preibisch Date: Wed, 4 Sep 2024 08:31:18 +0200 Subject: [PATCH] Test --- OpenBudgeteer.Core.Data/DbContextOptionsFactory.cs | 2 -- OpenBudgeteer.Core.Test/Tests/Database/BaseDatabaseTest.cs | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/OpenBudgeteer.Core.Data/DbContextOptionsFactory.cs b/OpenBudgeteer.Core.Data/DbContextOptionsFactory.cs index 4bc66fe..1eb35a8 100644 --- a/OpenBudgeteer.Core.Data/DbContextOptionsFactory.cs +++ b/OpenBudgeteer.Core.Data/DbContextOptionsFactory.cs @@ -70,8 +70,6 @@ private static void SetupMariaDbConnection(DbContextOptionsBuilder optionsBuilde Password = configuration.GetValue(ConfigurationKeyConstants.CONNECTION_PASSWORD, userName), ConnectionProtocol = MySqlConnectionProtocol.Tcp }; - - Console.WriteLine(builder.ConnectionString); var serverVersion = ServerVersion.AutoDetect(builder.ConnectionString); optionsBuilder.UseMySql( diff --git a/OpenBudgeteer.Core.Test/Tests/Database/BaseDatabaseTest.cs b/OpenBudgeteer.Core.Test/Tests/Database/BaseDatabaseTest.cs index 4480885..62b74c3 100644 --- a/OpenBudgeteer.Core.Test/Tests/Database/BaseDatabaseTest.cs +++ b/OpenBudgeteer.Core.Test/Tests/Database/BaseDatabaseTest.cs @@ -28,6 +28,8 @@ protected static DbContextOptions MariaDbContextOptions [ConfigurationKeyConstants.CONNECTION_DATABASE] = Environment.GetEnvironmentVariable(ConfigurationKeyConstants.CONNECTION_DATABASE) ?? "openbudgeteer_unit_test", }!) .Build(); + + Console.WriteLine($"CHECK THIS: {configuration.GetValue(ConfigurationKeyConstants.CONNECTION_SERVER)}"); var contextOptions = DbContextOptionsFactory.GetContextOptions(configuration); var dbContext = new DatabaseContext(contextOptions); dbContext.Database.Migrate();