karafka-testing 2.1.2 → 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: eeeff63f4e69e293379802fe9359ad9fa431f7e9c805c090e985cb53c92b7b16
4
- data.tar.gz: 8dae650679708a37c060c9b2e45b7996a2b8330b7bbf1668ba248643d6bb33d0
3
+ metadata.gz: 053ac6d1b86ca621030d7d73ad5e8c629a8b3c4ebf05c83ab89646772edf6565
4
+ data.tar.gz: 3c8182120690c121f41ea395ddef68b35ef18af9a4a448b106dc1efbd45cb5d2
5
5
  SHA512:
6
- metadata.gz: f26ac82183a7e57e63b37e59964e38d38eded6917a40a261e74a0fb73a2ebf280f35f8530134d3dd1f3fa696eb12ff8c0f978f248a88818bcc3a6e8d97eb9369
7
- data.tar.gz: 1f1d0747ab6b8e8429870e4db6ae03441ddf8f9c56267146ee3522947c8ecdd860dcdcf49fd88b5b0af9cf622fd16a25ce99a244605f5ef1f2da905dc05e972a
6
+ metadata.gz: 8dc3c9437a06c83b85329170d670172152b17c0057b6a40655630032d885f7a743306eaafdd737ac7a65db4a0a9aa3da2d53f2aac2659587a31b8b3e9a3cb16e
7
+ data.tar.gz: 67cbaef664caedeadb54cd8fa1ccc3be917fbc17f5cfe34b22a1ad8ee259937f652de68e16dc870ef7b490f66ec16856d2de3f3e841075ad17620725e041f329
checksums.yaml.gz.sig CHANGED
Binary file
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
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
+
6
+ ## 2.1.3 (2023-06-19)
7
+ - [Enhancement] Align with Karafka `2.1.5` API.
8
+
3
9
  ## 2.1.2 (2023-06-13)
4
10
  - [Enhancement] Depend on WaterDrop `>=` `2.6.0` directly and not via Karafka to make sure correct version is used.
5
11
  - [Fix] Use proper WaterDrop `>=` `2.6.0` buffered client reference.
data/Gemfile.lock CHANGED
@@ -1,32 +1,32 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- karafka-testing (2.1.2)
5
- karafka (>= 2.1.0, < 3.0.0)
6
- waterdrop (>= 2.6.0)
4
+ karafka-testing (2.1.4)
5
+ karafka (>= 2.1.5, < 3.0.0)
6
+ waterdrop (>= 2.6.1)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
11
  concurrent-ruby (1.2.2)
12
12
  ffi (1.15.5)
13
- karafka (2.1.0)
14
- karafka-core (>= 2.0.12, < 3.0.0)
13
+ karafka (2.1.5)
14
+ karafka-core (>= 2.1.0, < 2.2.0)
15
15
  thor (>= 0.20)
16
- waterdrop (>= 2.4.10, < 3.0.0)
16
+ waterdrop (>= 2.6.1, < 3.0.0)
17
17
  zeitwerk (~> 2.3)
18
- karafka-core (2.0.13)
18
+ karafka-core (2.1.0)
19
19
  concurrent-ruby (>= 1.1)
20
- karafka-rdkafka (>= 0.12.3)
21
- karafka-rdkafka (0.12.3)
20
+ karafka-rdkafka (>= 0.13.0, < 0.14.0)
21
+ karafka-rdkafka (0.13.0)
22
22
  ffi (~> 1.15)
23
23
  mini_portile2 (~> 2.6)
24
24
  rake (> 12)
25
25
  mini_portile2 (2.8.1)
26
26
  rake (13.0.6)
27
27
  thor (1.2.1)
28
- waterdrop (2.6.0)
29
- karafka-core (>= 2.0.13, < 3.0.0)
28
+ waterdrop (2.6.1)
29
+ karafka-core (>= 2.1.0, < 3.0.0)
30
30
  zeitwerk (~> 2.3)
31
31
  zeitwerk (2.6.7)
32
32
 
@@ -24,8 +24,8 @@ Gem::Specification.new do |spec|
24
24
  spec.signing_key = File.expand_path('~/.ssh/gem-private_key.pem')
25
25
  end
26
26
 
27
- spec.add_dependency 'karafka', '>= 2.1.0', '< 3.0.0'
28
- spec.add_dependency 'waterdrop', '>= 2.6.0'
27
+ spec.add_dependency 'karafka', '>= 2.1.5', '< 3.0.0'
28
+ spec.add_dependency 'waterdrop', '>= 2.6.1'
29
29
 
30
30
  spec.metadata = {
31
31
  'funding_uri' => 'https://karafka.io/#become-pro',
@@ -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
@@ -12,6 +12,11 @@ module Karafka
12
12
  ].each do |caught_delegator|
13
13
  define_method(caught_delegator) { |*| }
14
14
  end
15
+
16
+ # @return [Boolean] assignments are never lost for specs
17
+ def assignment_lost?
18
+ false
19
+ end
15
20
  end
16
21
  end
17
22
  end
@@ -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.2'
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.2
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-13 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
@@ -43,7 +43,7 @@ dependencies:
43
43
  requirements:
44
44
  - - ">="
45
45
  - !ruby/object:Gem::Version
46
- version: 2.1.0
46
+ version: 2.1.5
47
47
  - - "<"
48
48
  - !ruby/object:Gem::Version
49
49
  version: 3.0.0
@@ -53,7 +53,7 @@ dependencies:
53
53
  requirements:
54
54
  - - ">="
55
55
  - !ruby/object:Gem::Version
56
- version: 2.1.0
56
+ version: 2.1.5
57
57
  - - "<"
58
58
  - !ruby/object:Gem::Version
59
59
  version: 3.0.0
@@ -63,14 +63,14 @@ dependencies:
63
63
  requirements:
64
64
  - - ">="
65
65
  - !ruby/object:Gem::Version
66
- version: 2.6.0
66
+ version: 2.6.1
67
67
  type: :runtime
68
68
  prerelease: false
69
69
  version_requirements: !ruby/object:Gem::Requirement
70
70
  requirements:
71
71
  - - ">="
72
72
  - !ruby/object:Gem::Version
73
- version: 2.6.0
73
+ version: 2.6.1
74
74
  description: Library which provides helpers for easier Karafka consumers tests
75
75
  email:
76
76
  - contact@karafka.io
metadata.gz.sig CHANGED
Binary file