You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iggy.apache.org by gk...@apache.org on 2025/05/10 12:35:16 UTC
(iggy) branch add_dependencies_md_to_dotnet_sdk created (now febf858e)
This is an automated email from the ASF dual-hosted git repository.
gkoszyk pushed a change to branch add_dependencies_md_to_dotnet_sdk
in repository https://gitbox.apache.org/repos/asf/iggy.git
at febf858e chore(sdk) add dependencies.md to dotnet sdk
This branch includes the following new commits:
new febf858e chore(sdk) add dependencies.md to dotnet sdk
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
(iggy) 01/01: chore(sdk) add dependencies.md to dotnet sdk
Posted by gk...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
gkoszyk pushed a commit to branch add_dependencies_md_to_dotnet_sdk
in repository https://gitbox.apache.org/repos/asf/iggy.git
commit febf858eee5d2926c98085d9e46f2c6914105ba5
Author: numinex <g....@gmail.com>
AuthorDate: Sat May 10 14:35:01 2025 +0200
chore(sdk) add dependencies.md to dotnet sdk
---
foreign/csharp/DEPENDENCIES.md | 8 +
.../Features/MultiConsumerMessagePolling.feature | 11 --
.../MultiConsumerMessagePolling.feature.cs | 180 ---------------------
.../ConsumerGroupPolling/Hooks/IggyDockerHooks.cs | 148 -----------------
.../Steps/MultipleConsumersPollingSteps.cs | 162 -------------------
.../csharp/Iggy_SDK_Tests/Iggy_SDK_Tests.csproj | 1 -
6 files changed, 8 insertions(+), 502 deletions(-)
diff --git a/foreign/csharp/DEPENDENCIES.md b/foreign/csharp/DEPENDENCIES.md
new file mode 100644
index 00000000..3b932384
--- /dev/null
+++ b/foreign/csharp/DEPENDENCIES.md
@@ -0,0 +1,8 @@
+FluentAssertions: "6.12.0", "Apache-2.0",
+Microsoft.NET.Test.Sdk: "17.8.0", "MIT",
+Moq: "4.18.4", "BSD-3-Clause",
+Testcontainers: "3.7.0", "MIT",
+xunit.runner.visualstudio: "2.5.6", "Apache-2.0",
+coverlet.collector: "3.2.0>, "MIT" ,
+Microsoft.Extensions.Logging: "8.0.0", "MIT",
+Microsoft.Extensions.Logging.Console:"7.0.0", "MIT"
\ No newline at end of file
diff --git a/foreign/csharp/Iggy_SDK_Tests/BehaviorTests/ConsumerGroupPolling/Features/MultiConsumerMessagePolling.feature b/foreign/csharp/Iggy_SDK_Tests/BehaviorTests/ConsumerGroupPolling/Features/MultiConsumerMessagePolling.feature
deleted file mode 100644
index b214695c..00000000
--- a/foreign/csharp/Iggy_SDK_Tests/BehaviorTests/ConsumerGroupPolling/Features/MultiConsumerMessagePolling.feature
+++ /dev/null
@@ -1,11 +0,0 @@
-Feature: Multiple consumers poll messages from same topic.
-
-Scenario: Multiple consumers not in a consumer group poll messages
- Given Messages are available in topic on single partition
- When Consumers polls messages
- Then Each consumer gets equal amount of messages
-
-Scenario: Multiple consumers in a consumer group poll messages
- Given Messages are available in topic on multiple partitions
- When Consumer group polls messages
- Then Each consumer gets messages from server-side calculated partitions
diff --git a/foreign/csharp/Iggy_SDK_Tests/BehaviorTests/ConsumerGroupPolling/Features/MultiConsumerMessagePolling.feature.cs b/foreign/csharp/Iggy_SDK_Tests/BehaviorTests/ConsumerGroupPolling/Features/MultiConsumerMessagePolling.feature.cs
deleted file mode 100644
index 03810b8e..00000000
--- a/foreign/csharp/Iggy_SDK_Tests/BehaviorTests/ConsumerGroupPolling/Features/MultiConsumerMessagePolling.feature.cs
+++ /dev/null
@@ -1,180 +0,0 @@
-// Licensed to the Apache Software Foundation (ASF) under one
-// or more contributor license agreements. See the NOTICE file
-// distributed with this work for additional information
-// regarding copyright ownership. The ASF licenses this file
-// to you under the Apache License, Version 2.0 (the
-// "License"); you may not use this file except in compliance
-// with the License. You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing,
-// software distributed under the License is distributed on an
-// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-// KIND, either express or implied. See the License for the
-// specific language governing permissions and limitations
-// under the License.
-
-// ------------------------------------------------------------------------------
-// <auto-generated>
-// This code was generated by SpecFlow (https://www.specflow.org/).
-// SpecFlow Version:3.9.0.0
-// SpecFlow Generator Version:3.9.0.0
-//
-// Changes to this file may cause incorrect behavior and will be lost if
-// the code is regenerated.
-// </auto-generated>
-// ------------------------------------------------------------------------------
-#region Designer generated code
-#pragma warning disable
-namespace Iggy_SDK_Tests.BehaviorTests.ConsumerGroupPolling.Features
-{
- using TechTalk.SpecFlow;
- using System;
- using System.Linq;
-
-
- [System.CodeDom.Compiler.GeneratedCodeAttribute("TechTalk.SpecFlow", "3.9.0.0")]
- [System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
- public partial class MultipleConsumersPollMessagesFromSameTopic_Feature : object, Xunit.IClassFixture<MultipleConsumersPollMessagesFromSameTopic_Feature.FixtureData>, System.IDisposable
- {
-
- private static TechTalk.SpecFlow.ITestRunner testRunner;
-
- private static string[] featureTags = ((string[])(null));
-
- private Xunit.Abstractions.ITestOutputHelper _testOutputHelper;
-
-#line 1 "MultiConsumerMessagePolling.feature"
-#line hidden
-
- public MultipleConsumersPollMessagesFromSameTopic_Feature(MultipleConsumersPollMessagesFromSameTopic_Feature.FixtureData fixtureData, Iggy_SDK_Tests_XUnitAssemblyFixture assemblyFixture, Xunit.Abstractions.ITestOutputHelper testOutputHelper)
- {
- this._testOutputHelper = testOutputHelper;
- this.TestInitialize();
- }
-
- public static void FeatureSetup()
- {
- testRunner = TechTalk.SpecFlow.TestRunnerManager.GetTestRunner();
- TechTalk.SpecFlow.FeatureInfo featureInfo = new TechTalk.SpecFlow.FeatureInfo(new System.Globalization.CultureInfo("en-US"), "BehaviorTests/ConsumerGroupPolling/Features", "Multiple consumers poll messages from same topic.", null, ProgrammingLanguage.CSharp, featureTags);
- testRunner.OnFeatureStart(featureInfo);
- }
-
- public static void FeatureTearDown()
- {
- testRunner.OnFeatureEnd();
- testRunner = null;
- }
-
- public void TestInitialize()
- {
- }
-
- public void TestTearDown()
- {
- testRunner.OnScenarioEnd();
- }
-
- public void ScenarioInitialize(TechTalk.SpecFlow.ScenarioInfo scenarioInfo)
- {
- testRunner.OnScenarioInitialize(scenarioInfo);
- testRunner.ScenarioContext.ScenarioContainer.RegisterInstanceAs<Xunit.Abstractions.ITestOutputHelper>(_testOutputHelper);
- }
-
- public void ScenarioStart()
- {
- testRunner.OnScenarioStart();
- }
-
- public void ScenarioCleanup()
- {
- testRunner.CollectScenarioErrors();
- }
-
- void System.IDisposable.Dispose()
- {
- this.TestTearDown();
- }
-
- [Xunit.SkippableFactAttribute(DisplayName="Multiple consumers not in a consumer group poll messages")]
- [Xunit.TraitAttribute("FeatureTitle", "Multiple consumers poll messages from same topic.")]
- [Xunit.TraitAttribute("Description", "Multiple consumers not in a consumer group poll messages")]
- public void MultipleConsumersNotInAConsumerGroupPollMessages()
- {
- string[] tagsOfScenario = ((string[])(null));
- System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary();
- TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Multiple consumers not in a consumer group poll messages", null, tagsOfScenario, argumentsOfScenario, featureTags);
-#line 3
-this.ScenarioInitialize(scenarioInfo);
-#line hidden
- if ((TagHelper.ContainsIgnoreTag(tagsOfScenario) || TagHelper.ContainsIgnoreTag(featureTags)))
- {
- testRunner.SkipScenario();
- }
- else
- {
- this.ScenarioStart();
-#line 4
- testRunner.Given("Messages are available in topic on single partition", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given ");
-#line hidden
-#line 5
- testRunner.When("Consumers polls messages", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When ");
-#line hidden
-#line 6
- testRunner.Then("Each consumer gets equal amount of messages", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
-#line hidden
- }
- this.ScenarioCleanup();
- }
-
- [Xunit.SkippableFactAttribute(DisplayName="Multiple consumers in a consumer group poll messages")]
- [Xunit.TraitAttribute("FeatureTitle", "Multiple consumers poll messages from same topic.")]
- [Xunit.TraitAttribute("Description", "Multiple consumers in a consumer group poll messages")]
- public void MultipleConsumersInAConsumerGroupPollMessages()
- {
- string[] tagsOfScenario = ((string[])(null));
- System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary();
- TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Multiple consumers in a consumer group poll messages", null, tagsOfScenario, argumentsOfScenario, featureTags);
-#line 8
-this.ScenarioInitialize(scenarioInfo);
-#line hidden
- if ((TagHelper.ContainsIgnoreTag(tagsOfScenario) || TagHelper.ContainsIgnoreTag(featureTags)))
- {
- testRunner.SkipScenario();
- }
- else
- {
- this.ScenarioStart();
-#line 9
- testRunner.Given("Messages are available in topic on multiple partitions", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given ");
-#line hidden
-#line 10
- testRunner.When("Consumer group polls messages", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When ");
-#line hidden
-#line 11
- testRunner.Then("Each consumer gets messages from server-side calculated partitions", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
-#line hidden
- }
- this.ScenarioCleanup();
- }
-
- [System.CodeDom.Compiler.GeneratedCodeAttribute("TechTalk.SpecFlow", "3.9.0.0")]
- [System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
- public class FixtureData : System.IDisposable
- {
-
- public FixtureData()
- {
- MultipleConsumersPollMessagesFromSameTopic_Feature.FeatureSetup();
- }
-
- void System.IDisposable.Dispose()
- {
- MultipleConsumersPollMessagesFromSameTopic_Feature.FeatureTearDown();
- }
- }
- }
-}
-#pragma warning restore
-#endregion
diff --git a/foreign/csharp/Iggy_SDK_Tests/BehaviorTests/ConsumerGroupPolling/Hooks/IggyDockerHooks.cs b/foreign/csharp/Iggy_SDK_Tests/BehaviorTests/ConsumerGroupPolling/Hooks/IggyDockerHooks.cs
deleted file mode 100644
index d22a9c08..00000000
--- a/foreign/csharp/Iggy_SDK_Tests/BehaviorTests/ConsumerGroupPolling/Hooks/IggyDockerHooks.cs
+++ /dev/null
@@ -1,148 +0,0 @@
-// Licensed to the Apache Software Foundation (ASF) under one
-// or more contributor license agreements. See the NOTICE file
-// distributed with this work for additional information
-// regarding copyright ownership. The ASF licenses this file
-// to you under the Apache License, Version 2.0 (the
-// "License"); you may not use this file except in compliance
-// with the License. You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing,
-// software distributed under the License is distributed on an
-// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-// KIND, either express or implied. See the License for the
-// specific language governing permissions and limitations
-// under the License.
-
-using BoDi;
-using DotNet.Testcontainers.Builders;
-using DotNet.Testcontainers.Containers;
-using Iggy_SDK;
-using Iggy_SDK.Contracts.Http;
-using Iggy_SDK.Enums;
-using Iggy_SDK.Factory;
-using Iggy_SDK_Tests.Utils.SpecFlowTypes;
-using Iggy_SDK_Tests.Utils.Streams;
-using Iggy_SDK_Tests.Utils.Topics;
-using Iggy_SDK.IggyClient;
-using Microsoft.Extensions.Logging.Abstractions;
-using TechTalk.SpecFlow;
-
-namespace Iggy_SDK_Tests.BehaviorTests.ConsumerGroupPolling.Hooks;
-
-[Binding]
-public sealed class IggyDockerHooks
-{
- // private static readonly IContainer _container = new ContainerBuilder().WithImage("iggyrs/iggy:latest")
- // //.WithPortBinding(3000, true)
- // .WithPortBinding(8090, true)
- // .WithWaitStrategy(Wait.ForUnixContainer().UntilPortIsAvailable(8090))
- // //.WithPortBinding(8080, true)
- // .Build();
- //
- // private static readonly StreamRequest _streamRequest = StreamFactory.CreateStreamRequest();
- // private static readonly TopicRequest _topicConsumersRequest = TopicFactory.CreateTopicRequest();
- // private static readonly TopicRequest _topicConsumerGroupRequest = TopicFactory.CreateTopicRequest();
-
- private readonly IObjectContainer _dependencyContainer;
- public IggyDockerHooks(IObjectContainer dependencyContainer)
- {
- _dependencyContainer = dependencyContainer;
- }
-
- [BeforeScenario]
- public async Task RegisterDependencies()
- {
- // var clients = new List<IIggyClient>();
- // var messageBus = MessageStreamFactory.CreateMessageStream(options =>
- // {
- // options.BaseAdress = $"127.0.0.1:{_container.GetMappedPublicPort(8090)}";
- // options.Protocol = Protocol.Tcp;
- // options.SendBufferSize = 10000;
- // options.ReceiveBufferSize = 10000;
- // options.MessageBatchingSettings = x =>
- // {
- // x.Enabled = false;
- // x.MaxMessagesPerBatch = 1000;
- // x.Interval = TimeSpan.FromMilliseconds(50);
- // };
- // }, NullLoggerFactory.Instance);
- // await messageBus.LoginUser(new LoginUserRequest
- // {
- // Password = "iggy",
- // Username = "iggy"
- // });
- //
- // for (int i = 0; i < 2; i++)
- // {
- // var client = MessageStreamFactory.CreateMessageStream(options =>
- // {
- // options.BaseAdress = $"127.0.0.1:{_container.GetMappedPublicPort(8090)}";
- // options.Protocol = Protocol.Tcp;
- // options.SendBufferSize = 10000;
- // options.ReceiveBufferSize = 10000;
- // options.MessageBatchingSettings = x =>
- // {
- // x.Enabled = false;
- // x.MaxMessagesPerBatch = 1000;
- // x.Interval = TimeSpan.FromMilliseconds(50);
- // x.MaxMessagesPerBatch = 8912;
- // };
- // }, NullLoggerFactory.Instance);
- // await client.LoginUser(new LoginUserRequest
- // {
- // Password = "iggy",
- // Username = "iggy"
- // });
- // clients.Add(client);
- // }
- //
- // _dependencyContainer.RegisterInstanceAs<IIggyClient>(messageBus);
- // _dependencyContainer.RegisterInstanceAs<List<IIggyClient>>(clients);
- // var listOfIds = new ConsumerPollStreamTopicId
- // {
- // StreamId = (int)_streamRequest.StreamId!,
- // ConsumerTopicId = (int)_topicConsumersRequest.TopicId!,
- // ConsumerGroupTopicId = (int)_topicConsumerGroupRequest.TopicId!
- // };
- // _dependencyContainer.RegisterInstanceAs(listOfIds);
-
- }
-
- [BeforeTestRun]
- public static async Task InitialSetup()
- {
- // await _container.StartAsync();
- // var messageBus = MessageStreamFactory.CreateMessageStream(options =>
- // {
- // options.BaseAdress = $"127.0.0.1:{_container.GetMappedPublicPort(8090)}";
- // options.Protocol = Protocol.Tcp;
- // options.SendBufferSize = 10000;
- // options.ReceiveBufferSize = 10000;
- // options.MessageBatchingSettings = x =>
- // {
- // x.Enabled = false;
- // x.MaxMessagesPerBatch = 1000;
- // x.Interval = TimeSpan.FromMilliseconds(100);
- // x.MaxMessagesPerBatch = 8912;
- // };
- // }, NullLoggerFactory.Instance);
- // await messageBus.LoginUser(new LoginUserRequest
- // {
- // Password = "iggy",
- // Username = "iggy"
- // });
- //
- // await messageBus.CreateStreamAsync(_streamRequest);
- // await messageBus.CreateTopicAsync(Identifier.Numeric((int)_streamRequest.StreamId!), _topicConsumersRequest);
- // await messageBus.CreateTopicAsync(Identifier.Numeric((int)_streamRequest.StreamId), _topicConsumerGroupRequest);
-
- }
-
- [AfterTestRun]
- public static async Task Teardown()
- {
- // await _container.StopAsync();
- }
-}
\ No newline at end of file
diff --git a/foreign/csharp/Iggy_SDK_Tests/BehaviorTests/ConsumerGroupPolling/Steps/MultipleConsumersPollingSteps.cs b/foreign/csharp/Iggy_SDK_Tests/BehaviorTests/ConsumerGroupPolling/Steps/MultipleConsumersPollingSteps.cs
deleted file mode 100644
index 55a7d284..00000000
--- a/foreign/csharp/Iggy_SDK_Tests/BehaviorTests/ConsumerGroupPolling/Steps/MultipleConsumersPollingSteps.cs
+++ /dev/null
@@ -1,162 +0,0 @@
-// Licensed to the Apache Software Foundation (ASF) under one
-// or more contributor license agreements. See the NOTICE file
-// distributed with this work for additional information
-// regarding copyright ownership. The ASF licenses this file
-// to you under the Apache License, Version 2.0 (the
-// "License"); you may not use this file except in compliance
-// with the License. You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing,
-// software distributed under the License is distributed on an
-// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-// KIND, either express or implied. See the License for the
-// specific language governing permissions and limitations
-// under the License.
-
-using FluentAssertions;
-using Iggy_SDK;
-using Iggy_SDK.Contracts.Http;
-using Iggy_SDK_Tests.Utils.Messages;
-using Iggy_SDK_Tests.Utils.SpecFlowTypes;
-using Iggy_SDK.IggyClient;
-using TechTalk.SpecFlow;
-
-namespace Iggy_SDK_Tests.BehaviorTests.ConsumerGroupPolling.Steps;
-
-//TODO: Cleanup this mess
-//TODO: All code blocks were commented because the TCP implementation needs to be aligned with Iggyrs core changes
-[Binding]
-public sealed class MultipleConsumersPollingSteps
-{
- private readonly ScenarioContext _scenarioContext;
- private readonly IIggyClient _messageStream;
- private readonly List<IIggyClient> _clients;
- private readonly ConsumerPollStreamTopicId _streamAndTopicFixture;
-
- private readonly int[] _consumersIds = [1, 2, 3, 4];
- private static readonly int _partitionId = 1;
- private static readonly int _consumerGroupId = 1;
-
- public MultipleConsumersPollingSteps(ScenarioContext scenarioContext, IIggyClient messageStream,
- List<IIggyClient> clients, ConsumerPollStreamTopicId streamAndTopicFixture)
- {
- _scenarioContext = scenarioContext;
- _messageStream = messageStream;
- _clients = clients;
- _streamAndTopicFixture = streamAndTopicFixture;
- }
-
- [Given(@"Messages are available in topic on single partition")]
- public async Task GivenMessagesAreAvailableOnConsumerTopic()
- {
- // var messages = MessageFactory.GenerateMessages(10);
- // var messageConsumersSendRequest =
- // MessageFactory.CreateMessageSendRequest(_streamAndTopicFixture.StreamId!, _streamAndTopicFixture.ConsumerTopicId!,
- // _partitionId, messages);
- //
- // await _messageStream.SendMessagesAsync(messageConsumersSendRequest);
- // Console.WriteLine();
- }
-
- [When(@"Consumers polls messages")]
- public async Task WhenConsumersPollMessages()
- {
- // var consumerPolledMessages = new List<PolledMessages>();
- // foreach (var consumerId in _consumersIds)
- // {
- // var request = MessageFactory.CreateMessageFetchRequestConsumer(10, _streamAndTopicFixture.StreamId!,_streamAndTopicFixture.ConsumerTopicId!, _partitionId, consumerId);
- // var result = await _messageStream.FetchMessagesAsync(request);
- // consumerPolledMessages.Add(result);
- // }
- // _scenarioContext.Add("ConsumersPollResults", consumerPolledMessages);
- }
-
- [Then(@"Each consumer gets equal amount of messages")]
- public void ThenEachConsumerGetsEqualAmountOfMessages()
- {
- // var consumerPolledMessages = _scenarioContext.Get<List<PolledMessages>>("ConsumersPollResults");
- // foreach (var polledMessage in consumerPolledMessages)
- // {
- // polledMessage.Messages.Count.Should().Be(10);
- // }
- }
-
- [Given(@"Messages are available in topic on multiple partitions")]
- public async Task GivenMessagesAreAvailableOnConsumergroupTopicAndConsumergroupExists()
- {
- // var messages = MessageFactory.GenerateMessages(10);
- // var messageConsumerGroupSendRequestPt1 =
- // MessageFactory.CreateMessageSendRequest(_streamAndTopicFixture.StreamId!, _streamAndTopicFixture.ConsumerGroupTopicId!,
- // _partitionId, messages);
- // var messageConsumerGroupSendRequestPt2 =
- // MessageFactory.CreateMessageSendRequest(_streamAndTopicFixture.StreamId, _streamAndTopicFixture.ConsumerGroupTopicId,
- // _partitionId + 1, messages);
- // var messageConsumerGroupSendRequestPt3 =
- // MessageFactory.CreateMessageSendRequest(_streamAndTopicFixture.StreamId, _streamAndTopicFixture.ConsumerGroupTopicId,
- // _partitionId + 2, messages);
- // var messageConsumerGroupSendRequestPt4 =
- // MessageFactory.CreateMessageSendRequest(_streamAndTopicFixture.StreamId, _streamAndTopicFixture.ConsumerGroupTopicId,
- // _partitionId + 3, messages);
- //
- // await _messageStream.CreateConsumerGroupAsync(new CreateConsumerGroupRequest
- // {
- // Name = "test_cg",
- // StreamId = Identifier.Numeric(_streamAndTopicFixture.StreamId),
- // TopicId = Identifier.Numeric(_streamAndTopicFixture.ConsumerGroupTopicId),
- // ConsumerGroupId = _consumerGroupId
- // });
- // await _messageStream.SendMessagesAsync(messageConsumerGroupSendRequestPt1);
- // await _messageStream.SendMessagesAsync(messageConsumerGroupSendRequestPt2);
- // await _messageStream.SendMessagesAsync(messageConsumerGroupSendRequestPt3);
- // await _messageStream.SendMessagesAsync(messageConsumerGroupSendRequestPt4);
- // //waiting for the message dispatcher to batch the messages and send them to server
- // await Task.Delay(1500);
- }
-
- [When(@"Consumer group polls messages")]
- public async Task WhenConsumerGroupPollMessages()
- {
- // var consumerPolledMessages = new List<PolledMessages>();
- // foreach (var client in _clients)
- // {
- // await client.JoinConsumerGroupAsync(new JoinConsumerGroupRequest
- // {
- // StreamId = Identifier.Numeric(_streamAndTopicFixture.StreamId),
- // TopicId = Identifier.Numeric(_streamAndTopicFixture.ConsumerGroupTopicId),
- // ConsumerGroupId = Identifier.Numeric(_consumerGroupId)
- // });
- // }
- //
- // foreach (var client in _clients)
- // {
- // for (int i = 0; i < 2; i++)
- // {
- // var request = MessageFactory.CreateMessageFetchRequestConsumerGroup(10, _streamAndTopicFixture.StreamId, _streamAndTopicFixture.ConsumerGroupTopicId, 0, _consumerGroupId);
- // var result = await client.FetchMessagesAsync(request);
- // consumerPolledMessages.Add(result);
- // }
- // }
- //
- // _scenarioContext.Add("ConsumerGroupPollResults", consumerPolledMessages);
- }
-
- [Then(@"Each consumer gets messages from server-side calculated partitions")]
- public async Task ThenEachConsumerGetsSameAmountOfMessages()
- {
- // var consumerPolledMessages = _scenarioContext.Get<List<PolledMessages>>("ConsumerGroupPollResults");
- //
- // foreach (var polledMessage in consumerPolledMessages)
- // {
- // polledMessage.Messages.Count.Should().Be(10);
- // }
- //
- // await _messageStream.DeleteConsumerGroupAsync(new DeleteConsumerGroupRequest
- // {
- // StreamId = Identifier.Numeric(_streamAndTopicFixture.StreamId),
- // TopicId = Identifier.Numeric(_streamAndTopicFixture.ConsumerGroupTopicId),
- // ConsumerGroupId = Identifier.Numeric(_consumerGroupId)
- // });
- }
-}
\ No newline at end of file
diff --git a/foreign/csharp/Iggy_SDK_Tests/Iggy_SDK_Tests.csproj b/foreign/csharp/Iggy_SDK_Tests/Iggy_SDK_Tests.csproj
index a5eca969..e8731839 100644
--- a/foreign/csharp/Iggy_SDK_Tests/Iggy_SDK_Tests.csproj
+++ b/foreign/csharp/Iggy_SDK_Tests/Iggy_SDK_Tests.csproj
@@ -13,7 +13,6 @@
<PackageReference Include="FluentAssertions" Version="6.12.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.8.0" />
<PackageReference Include="Moq" Version="4.18.4" />
- <PackageReference Include="SpecFlow.xUnit" Version="3.9.74" />
<PackageReference Include="Testcontainers" Version="3.7.0" />
<PackageReference Include="xunit" Version="2.6.6" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.6">