You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by pt...@apache.org on 2025/07/11 14:30:08 UTC

(ignite-3) 26/45: wip test infra

This is an automated email from the ASF dual-hosted git repository.

ptupitsyn pushed a commit to branch ignite-22133-bak
in repository https://gitbox.apache.org/repos/asf/ignite-3.git

commit 455ee078e2c63d2cd8e0f3f21ed35abfa56ca524
Author: Pavel Tupitsyn <pt...@apache.org>
AuthorDate: Fri Jul 11 13:33:41 2025 +0300

    wip test infra
---
 .../TestUtilities/IgniteTestStore.cs                              | 8 +++-----
 .../TestUtilities/IgniteTestStoreFactory.cs                       | 8 +++-----
 2 files changed, 6 insertions(+), 10 deletions(-)

diff --git a/modules/platforms/dotnet/Apache.Ignite.EntityFrameworkCore.FunctionalTests/TestUtilities/IgniteTestStore.cs b/modules/platforms/dotnet/Apache.Ignite.EntityFrameworkCore.FunctionalTests/TestUtilities/IgniteTestStore.cs
index 5d762c7cf82..357b82248d9 100644
--- a/modules/platforms/dotnet/Apache.Ignite.EntityFrameworkCore.FunctionalTests/TestUtilities/IgniteTestStore.cs
+++ b/modules/platforms/dotnet/Apache.Ignite.EntityFrameworkCore.FunctionalTests/TestUtilities/IgniteTestStore.cs
@@ -15,6 +15,7 @@
 
 namespace Apache.Ignite.EntityFrameworkCore.FunctionalTests.TestUtilities;
 
+using Extensions;
 using Microsoft.EntityFrameworkCore;
 using Microsoft.EntityFrameworkCore.TestUtilities;
 
@@ -25,11 +26,8 @@ public class IgniteTestStore : RelationalTestStore
     {
     }
 
-    public override DbContextOptionsBuilder AddProviderOptions(DbContextOptionsBuilder builder)
-    {
-        // Ignite does not have any provider options for now.
-        return builder;
-    }
+    public override DbContextOptionsBuilder AddProviderOptions(DbContextOptionsBuilder builder) =>
+        builder.UseIgnite("localhost:10942");
 
     public override void Clean(DbContext context)
     {
diff --git a/modules/platforms/dotnet/Apache.Ignite.EntityFrameworkCore.FunctionalTests/TestUtilities/IgniteTestStoreFactory.cs b/modules/platforms/dotnet/Apache.Ignite.EntityFrameworkCore.FunctionalTests/TestUtilities/IgniteTestStoreFactory.cs
index 721250058ad..98e8f249d36 100644
--- a/modules/platforms/dotnet/Apache.Ignite.EntityFrameworkCore.FunctionalTests/TestUtilities/IgniteTestStoreFactory.cs
+++ b/modules/platforms/dotnet/Apache.Ignite.EntityFrameworkCore.FunctionalTests/TestUtilities/IgniteTestStoreFactory.cs
@@ -15,6 +15,7 @@
 
 namespace Apache.Ignite.EntityFrameworkCore.FunctionalTests.TestUtilities;
 
+using Extensions;
 using Microsoft.EntityFrameworkCore.TestUtilities;
 using Microsoft.Extensions.DependencyInjection;
 
@@ -31,9 +32,6 @@ public class IgniteTestStoreFactory : RelationalTestStoreFactory
 
     public override TestStore GetOrCreate(string storeName) => Create(storeName);
 
-    public override IServiceCollection AddProviderServices(IServiceCollection serviceCollection)
-    {
-        // Ignite does not have any provider services for now.
-        return serviceCollection;
-    }
+    public override IServiceCollection AddProviderServices(IServiceCollection serviceCollection) =>
+        serviceCollection.AddEntityFrameworkIgnite();
 }