karafka-testing 2.1.3 → 2.1.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 540e9d15ee75548f59a9f80290e0b3e735c98513ed979de8ff2bc2b7542553b1
4
- data.tar.gz: 1a64fb65a0ba090ea494004abb76864e20dda5f10e858df69baec314299344e0
3
+ metadata.gz: 053ac6d1b86ca621030d7d73ad5e8c629a8b3c4ebf05c83ab89646772edf6565
4
+ data.tar.gz: 3c8182120690c121f41ea395ddef68b35ef18af9a4a448b106dc1efbd45cb5d2
5
5
  SHA512:
6
- metadata.gz: cd44d5aabe57f731a46e956d01ffadfb7eb53ce60cd90ca36a85e06ddc7b5d4e84c6f5bfcd32545e80cad3eff5d5a42ce8cab1542c97598cbe7c4c43ea7c03e0
7
- data.tar.gz: 826d9451e438bbe023eded853511eb993f7e5a17e1a53428a410c8e84d84a8fbe4357bb7f7112eb7278a934c7579ad693f663ec52d2aac23798f6042c8e7a8b4
6
+ metadata.gz: 8dc3c9437a06c83b85329170d670172152b17c0057b6a40655630032d885f7a743306eaafdd737ac7a65db4a0a9aa3da2d53f2aac2659587a31b8b3e9a3cb16e
7
+ data.tar.gz: 67cbaef664caedeadb54cd8fa1ccc3be917fbc17f5cfe34b22a1ad8ee259937f652de68e16dc870ef7b490f66ec16856d2de3f3e841075ad17620725e041f329
checksums.yaml.gz.sig CHANGED
Binary file
data/CHANGELOG.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # Karafka Test gem changelog
2
2
 
3
+ ## 2.1.4 (2023-06-20)
4
+ - [Fix] Fix invalid consumer group assignment for consumers created for non-default consumer group when same topic is being used multiple times.
5
+
3
6
  ## 2.1.3 (2023-06-19)
4
7
  - [Enhancement] Align with Karafka `2.1.5` API.
5
8
 
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- karafka-testing (2.1.3)
4
+ karafka-testing (2.1.4)
5
5
  karafka (>= 2.1.5, < 3.0.0)
6
6
  waterdrop (>= 2.6.1)
7
7
 
@@ -72,7 +72,7 @@ module Karafka
72
72
  raise Errors::TopicInManyConsumerGroupsError, requested_topic if selected_topics.size > 1
73
73
  raise Errors::TopicNotFoundError, requested_topic if selected_topics.empty?
74
74
 
75
- _karafka_build_consumer_for(selected_topics.first, all_topics)
75
+ _karafka_build_consumer_for(selected_topics.first)
76
76
  end
77
77
 
78
78
  # Adds a new Karafka message instance if needed with given payload and options into an
@@ -165,12 +165,10 @@ module Karafka
165
165
  # Builds the consumer instance based on the provided topic
166
166
  #
167
167
  # @param topic [Karafka::Routing::Topic] topic for which we want to build the consumer
168
- # @param topics_array [Array<Karafka::Routing::Topic>] all the topics for coordinators
169
- # buffer.
170
168
  # @return [Object] karafka consumer
171
- def _karafka_build_consumer_for(topic, topics_array)
169
+ def _karafka_build_consumer_for(topic)
172
170
  coordinators = Karafka::Processing::CoordinatorsBuffer.new(
173
- Karafka::Routing::Topics.new(topics_array)
171
+ Karafka::Routing::Topics.new([topic])
174
172
  )
175
173
 
176
174
  consumer = topic.consumer.new
@@ -4,6 +4,6 @@
4
4
  module Karafka
5
5
  module Testing
6
6
  # Current version of gem. It should match Karafka framework version
7
- VERSION = '2.1.3'
7
+ VERSION = '2.1.4'
8
8
  end
9
9
  end
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: karafka-testing
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.3
4
+ version: 2.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Maciej Mensfeld
@@ -35,7 +35,7 @@ cert_chain:
35
35
  Qf04B9ceLUaC4fPVEz10FyobjaFoY4i32xRto3XnrzeAgfEe4swLq8bQsR3w/EF3
36
36
  MGU0FeSV2Yj7Xc2x/7BzLK8xQn5l7Yy75iPF+KP3vVmDHnNl
37
37
  -----END CERTIFICATE-----
38
- date: 2023-06-19 00:00:00.000000000 Z
38
+ date: 2023-06-20 00:00:00.000000000 Z
39
39
  dependencies:
40
40
  - !ruby/object:Gem::Dependency
41
41
  name: karafka
metadata.gz.sig CHANGED
Binary file