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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data/CHANGELOG.md +6 -0
- data/Gemfile.lock +11 -11
- data/karafka-testing.gemspec +2 -2
- data/lib/karafka/testing/rspec/helpers.rb +3 -5
- data/lib/karafka/testing/spec_consumer_client.rb +5 -0
- data/lib/karafka/testing/version.rb +1 -1
- data.tar.gz.sig +0 -0
- metadata +6 -6
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 053ac6d1b86ca621030d7d73ad5e8c629a8b3c4ebf05c83ab89646772edf6565
|
4
|
+
data.tar.gz: 3c8182120690c121f41ea395ddef68b35ef18af9a4a448b106dc1efbd45cb5d2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
5
|
-
karafka (>= 2.1.
|
6
|
-
waterdrop (>= 2.6.
|
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.
|
14
|
-
karafka-core (>= 2.0
|
13
|
+
karafka (2.1.5)
|
14
|
+
karafka-core (>= 2.1.0, < 2.2.0)
|
15
15
|
thor (>= 0.20)
|
16
|
-
waterdrop (>= 2.
|
16
|
+
waterdrop (>= 2.6.1, < 3.0.0)
|
17
17
|
zeitwerk (~> 2.3)
|
18
|
-
karafka-core (2.0
|
18
|
+
karafka-core (2.1.0)
|
19
19
|
concurrent-ruby (>= 1.1)
|
20
|
-
karafka-rdkafka (>= 0.
|
21
|
-
karafka-rdkafka (0.
|
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.
|
29
|
-
karafka-core (>= 2.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
|
|
data/karafka-testing.gemspec
CHANGED
@@ -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.
|
28
|
-
spec.add_dependency 'waterdrop', '>= 2.6.
|
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
|
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
|
169
|
+
def _karafka_build_consumer_for(topic)
|
172
170
|
coordinators = Karafka::Processing::CoordinatorsBuffer.new(
|
173
|
-
Karafka::Routing::Topics.new(
|
171
|
+
Karafka::Routing::Topics.new([topic])
|
174
172
|
)
|
175
173
|
|
176
174
|
consumer = topic.consumer.new
|
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.
|
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-
|
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.
|
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.
|
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.
|
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.
|
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
|