karafka-testing 2.4.4 → 2.4.5
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/.ruby-version +1 -1
- data/CHANGELOG.md +5 -1
- data/Gemfile.lock +1 -1
- data/lib/karafka/testing/minitest/helpers.rb +6 -0
- data/lib/karafka/testing/minitest/proxy.rb +6 -0
- data/lib/karafka/testing/rspec/proxy.rb +6 -0
- data/lib/karafka/testing/spec_consumer_client.rb +1 -0
- data/lib/karafka/testing/version.rb +1 -1
- data.tar.gz.sig +0 -0
- metadata +3 -3
- 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: 313429288b0507e9a5d37447f07dd3d70d0a00148016a64de5aa76f1ba8fa3c3
|
4
|
+
data.tar.gz: 57cf29b1c0903d1513a5e4dd97ae8a3f34aa46e88d9a245444e961b8d204a268
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '08061414c271a17e938e4905da3c831944d7fd862335aee2bf9e42510549382faff04a1c89563317040b480a887973b6337832347f3d2ca02424e0ce72476601'
|
7
|
+
data.tar.gz: 416a42da8dd2aa28be84af59cc3bcef919f281b03e2575227dbe3e32ca1ed36522cc89ed7649c2a45df14d5f7818e0c9832a3d79e5de25d4d609e61ad2c12594
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.3.
|
1
|
+
3.3.4
|
data/CHANGELOG.md
CHANGED
@@ -1,4 +1,8 @@
|
|
1
|
-
# Karafka
|
1
|
+
# Karafka Testing Changelog
|
2
|
+
|
3
|
+
## 2.4.5 (2024-07-21)
|
4
|
+
- [Enhancement] Provide `karafka.consumer_messages` to get (or alter) the messages that will go into created consumer.
|
5
|
+
- [Fix] `#consumer_group_metadata_pointer` is not stubbed in the consumer client.
|
2
6
|
|
3
7
|
## 2.4.4 (2024-07-02)
|
4
8
|
- [Enhancement] Memoize `consumer_for` so consumers can be set up for multiple topics and `let(:consumer)` is no longer a requirement. (dorner)
|
data/Gemfile.lock
CHANGED
@@ -159,6 +159,12 @@ module Karafka
|
|
159
159
|
@_karafka_producer_client.messages
|
160
160
|
end
|
161
161
|
|
162
|
+
# @return [Array<Karafka::Messages::Message>] array of messages that will be used to
|
163
|
+
# construct the final consumer messages batch
|
164
|
+
def _karafka_consumer_messages
|
165
|
+
@_karafka_consumer_messages
|
166
|
+
end
|
167
|
+
|
162
168
|
private
|
163
169
|
|
164
170
|
# @param consumer_obj [Karafka::BaseConsumer] consumer reference
|
@@ -25,6 +25,12 @@ module Karafka
|
|
25
25
|
def produced_messages
|
26
26
|
@minitest_example._karafka_produced_messages
|
27
27
|
end
|
28
|
+
|
29
|
+
# @return [Array<Karafka::Messages::Message>] array of messages that will be used to
|
30
|
+
# construct the final consumer messages batch
|
31
|
+
def consumer_messages
|
32
|
+
@minitest_example._karafka_consumer_messages
|
33
|
+
end
|
28
34
|
end
|
29
35
|
end
|
30
36
|
end
|
@@ -25,6 +25,12 @@ module Karafka
|
|
25
25
|
def produced_messages
|
26
26
|
@rspec_example._karafka_produced_messages
|
27
27
|
end
|
28
|
+
|
29
|
+
# @return [Array<Karafka::Messages::Message>] array of messages that will be used to
|
30
|
+
# construct the final consumer messages batch
|
31
|
+
def consumer_messages
|
32
|
+
@rspec_example._karafka_consumer_messages
|
33
|
+
end
|
28
34
|
end
|
29
35
|
end
|
30
36
|
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.4.
|
4
|
+
version: 2.4.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Maciej Mensfeld
|
@@ -35,7 +35,7 @@ cert_chain:
|
|
35
35
|
AnG1dJU+yL2BK7vaVytLTstJME5mepSZ46qqIJXMuWob/YPDmVaBF39TDSG9e34s
|
36
36
|
msG3BiCqgOgHAnL23+CN3Rt8MsuRfEtoTKpJVcCfoEoNHOkc
|
37
37
|
-----END CERTIFICATE-----
|
38
|
-
date: 2024-07-
|
38
|
+
date: 2024-07-21 00:00:00.000000000 Z
|
39
39
|
dependencies:
|
40
40
|
- !ruby/object:Gem::Dependency
|
41
41
|
name: karafka
|
@@ -132,7 +132,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
132
132
|
- !ruby/object:Gem::Version
|
133
133
|
version: '0'
|
134
134
|
requirements: []
|
135
|
-
rubygems_version: 3.5.
|
135
|
+
rubygems_version: 3.5.9
|
136
136
|
signing_key:
|
137
137
|
specification_version: 4
|
138
138
|
summary: Library which provides helpers for easier Karafka consumers tests
|
metadata.gz.sig
CHANGED
Binary file
|