karafka-testing 2.4.4 → 2.4.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/.ruby-version +1 -1
- data/CHANGELOG.md +8 -1
- data/Gemfile.lock +1 -1
- data/lib/karafka/testing/helpers.rb +5 -3
- 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 +2 -2
- 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: c79b1159d1792ce286856601f7db1228058fc71cdc3a722fbd3d270143a60996
|
|
4
|
+
data.tar.gz: 93950ef116e875e84f66be650e30aec7411171805d03d390d51b3f5121388bb8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f4ba0829c1550ceceb2d6eb21dfb1335e2faabbfed3e357e4820b066d58d8a8ad35586a39b62af1ca03fc5d09017344e0f88d1e698aae0e3b3cf5630f754d166
|
|
7
|
+
data.tar.gz: ddfaa0e377b8c363e51f8b902a07e702c945248817459c5ead0ea8ec115ef245f21196ad9fb5c5ea341d0a73ca2c516c4bcf3c29bd1ec408a422cc72d261dec8
|
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,11 @@
|
|
|
1
|
-
# Karafka
|
|
1
|
+
# Karafka Testing Changelog
|
|
2
|
+
|
|
3
|
+
## 2.4.6 (2024-07-31)
|
|
4
|
+
- [Fix] uninitialized constant `Karafka::Testing::Errors::ConsumerGroupNotFound`.
|
|
5
|
+
|
|
6
|
+
## 2.4.5 (2024-07-21)
|
|
7
|
+
- [Enhancement] Provide `karafka.consumer_messages` to get (or alter) the messages that will go into created consumer.
|
|
8
|
+
- [Fix] `#consumer_group_metadata_pointer` is not stubbed in the consumer client.
|
|
2
9
|
|
|
3
10
|
## 2.4.4 (2024-07-02)
|
|
4
11
|
- [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
|
@@ -39,9 +39,11 @@ module Karafka
|
|
|
39
39
|
# Find matching consumer group
|
|
40
40
|
.find { |cg, _sgs| cg.name == requested_consumer_group.to_s }
|
|
41
41
|
# Raise error if not found
|
|
42
|
-
.
|
|
43
|
-
|
|
44
|
-
|
|
42
|
+
.then do |cg|
|
|
43
|
+
cg || raise(Errors::ConsumerGroupNotFoundError, requested_consumer_group)
|
|
44
|
+
# Since lookup was on a hash, get the value, that is subscription groups
|
|
45
|
+
cg.last
|
|
46
|
+
end
|
|
45
47
|
else
|
|
46
48
|
::Karafka::App
|
|
47
49
|
.subscription_groups
|
|
@@ -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.6
|
|
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-31 00:00:00.000000000 Z
|
|
39
39
|
dependencies:
|
|
40
40
|
- !ruby/object:Gem::Dependency
|
|
41
41
|
name: karafka
|
metadata.gz.sig
CHANGED
|
Binary file
|