Skip to content

Commit

Permalink
Do not reuse?
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastianStehle committed Jan 14, 2025
1 parent e408b0a commit 701104f
Show file tree
Hide file tree
Showing 10 changed files with 20 additions and 10 deletions.
3 changes: 2 additions & 1 deletion ai/Squidex.AI.Tests/EFChatStoreFixture.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
// All rights reserved. Licensed under the MIT license.
// ==========================================================================

using System.Diagnostics;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Storage;
Expand All @@ -20,7 +21,7 @@ public sealed class EFChatStoreFixture : IAsyncLifetime
{
private readonly PostgreSqlContainer postgresSql =
new PostgreSqlBuilder()
.WithReuse(true)
.WithReuse(Debugger.IsAttached)
.WithLabel("reuse-id", "chatstore-postgres")
.Build();

Expand Down
3 changes: 2 additions & 1 deletion ai/Squidex.AI.Tests/MongoChatStoreFixture.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
// All rights reserved. Licensed under the MIT license.
// ==========================================================================

using System.Diagnostics;
using Microsoft.Extensions.DependencyInjection;
using MongoDB.Driver;
using Squidex.AI.Mongo;
Expand All @@ -18,7 +19,7 @@ public sealed class MongoChatStoreFixture : IAsyncLifetime
{
private readonly MongoDbContainer mongoDb =
new MongoDbBuilder()
.WithReuse(true)
.WithReuse(Debugger.IsAttached)
.WithLabel("reuse-id", "chatstore-mongo")
.Build();

Expand Down
3 changes: 2 additions & 1 deletion assets/Squidex.Assets.Tests/MongoGridFSAssetStoreFixture.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
// All rights reserved. Licensed under the MIT license.
// ==========================================================================

using System.Diagnostics;
using MongoDB.Driver;
using MongoDB.Driver.GridFS;
using Squidex.Assets.Mongo;
Expand All @@ -18,7 +19,7 @@ public sealed class MongoGridFSAssetStoreFixture : IAsyncLifetime
{
private readonly MongoDbContainer mongoDb =
new MongoDbBuilder()
.WithReuse(true)
.WithReuse(Debugger.IsAttached)
.WithLabel("reuse-id", "asset-postgres")
.Build();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
// All rights reserved. Licensed under the MIT license.
// ==========================================================================

using System.Diagnostics;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Storage;
Expand All @@ -18,7 +19,7 @@ public class EFMessagingDataStoreFixture : IAsyncLifetime
{
private readonly PostgreSqlContainer postgresSql =
new PostgreSqlBuilder()
.WithReuse(true)
.WithReuse(Debugger.IsAttached)
.WithLabel("reuse-id", "messagingstore-kafka")
.Build();

Expand Down
3 changes: 2 additions & 1 deletion messaging/Squidex.Messaging.Tests/EFMessagingFixture.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
// All rights reserved. Licensed under the MIT license.
// ==========================================================================

using System.Diagnostics;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Storage;
Expand All @@ -17,7 +18,7 @@ public sealed class EFMessagingFixture : IAsyncLifetime
{
public PostgreSqlContainer PostgresSql { get; } =
new PostgreSqlBuilder()
.WithReuse(true)
.WithReuse(Debugger.IsAttached)
.WithLabel("reuse-id", "messaging-postgres")
.Build();

Expand Down
3 changes: 2 additions & 1 deletion messaging/Squidex.Messaging.Tests/KafkaFixture.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
// All rights reserved. Licensed under the MIT license.
// ==========================================================================

using System.Diagnostics;
using Confluent.Kafka;
using Confluent.Kafka.Admin;
using Testcontainers.Kafka;
Expand All @@ -16,7 +17,7 @@ public class KafkaFixture : IAsyncLifetime
{
public KafkaContainer Kafka { get; } =
new KafkaBuilder()
.WithReuse(true)
.WithReuse(Debugger.IsAttached)
.WithLabel("reuse-id", "messaging-kafka")
.Build();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
// All rights reserved. Licensed under the MIT license.
// ==========================================================================

using System.Diagnostics;
using MongoDB.Driver;
using Squidex.Hosting;
using Testcontainers.MongoDb;
Expand All @@ -16,7 +17,7 @@ public class MongoMessagingDataStoreFixture : IAsyncLifetime
{
private readonly MongoDbContainer mongoDb =
new MongoDbBuilder()
.WithReuse(true)
.WithReuse(Debugger.IsAttached)
.WithLabel("reuse-id", "messagingstore-mongo")
.Build();

Expand Down
3 changes: 2 additions & 1 deletion messaging/Squidex.Messaging.Tests/MongoMessagingFixture.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
// All rights reserved. Licensed under the MIT license.
// ==========================================================================

using System.Diagnostics;
using MongoDB.Driver;
using Testcontainers.MongoDb;
using Xunit;
Expand All @@ -15,7 +16,7 @@ public sealed class MongoMessagingFixture : IAsyncLifetime
{
private readonly MongoDbContainer mongoDb =
new MongoDbBuilder()
.WithReuse(true)
.WithReuse(Debugger.IsAttached)
.WithLabel("reuse-id", "messaging-mongo")
.Build();

Expand Down
3 changes: 2 additions & 1 deletion messaging/Squidex.Messaging.Tests/RabbitMqFixture.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
// All rights reserved. Licensed under the MIT license.
// ==========================================================================

using System.Diagnostics;
using Testcontainers.RabbitMq;
using Xunit;

Expand All @@ -14,7 +15,7 @@ public class RabbitMqFixture : IAsyncLifetime
{
public RabbitMqContainer RabbitMq { get; } =
new RabbitMqBuilder()
.WithReuse(true)
.WithReuse(Debugger.IsAttached)
.WithLabel("reuse-id", "messaging-rabbit")
.Build();

Expand Down
3 changes: 2 additions & 1 deletion messaging/Squidex.Messaging.Tests/RedisFixture.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
// All rights reserved. Licensed under the MIT license.
// ==========================================================================

using System.Diagnostics;
using StackExchange.Redis;
using Testcontainers.Redis;
using Xunit;
Expand All @@ -17,7 +18,7 @@ public class RedisFixture : IAsyncLifetime
{
private readonly RedisContainer redis =
new RedisBuilder()
.WithReuse(true)
.WithReuse(Debugger.IsAttached)
.WithLabel("reuse-id", "messaging-redis")
.Build();

Expand Down

0 comments on commit 701104f

Please sign in to comment.