|
2 | 2 | AddressHelper, |
3 | 3 | Connection, |
4 | 4 | OffsetSpecification, |
5 | | - StreamFilterOptions, |
| 5 | + StreamOptions, |
6 | 6 | StreamSpecification, |
7 | 7 | ) |
8 | 8 |
|
@@ -58,7 +58,7 @@ def test_stream_read_from_last(connection: Connection) -> None: |
58 | 58 |
|
59 | 59 | addr_queue = AddressHelper.queue_address(stream_name) |
60 | 60 |
|
61 | | - stream_filter_options = StreamFilterOptions() |
| 61 | + stream_filter_options = StreamOptions() |
62 | 62 | stream_filter_options.offset(OffsetSpecification.last) |
63 | 63 |
|
64 | 64 | # consume and then publish |
@@ -97,7 +97,7 @@ def test_stream_read_from_offset_zero(connection: Connection) -> None: |
97 | 97 | # publish and then consume |
98 | 98 | publish_messages(connection, messages_to_send, stream_name) |
99 | 99 |
|
100 | | - stream_filter_options = StreamFilterOptions() |
| 100 | + stream_filter_options = StreamOptions() |
101 | 101 | stream_filter_options.offset(0) |
102 | 102 |
|
103 | 103 | try: |
@@ -135,7 +135,7 @@ def test_stream_read_from_offset_first(connection: Connection) -> None: |
135 | 135 | # publish and then consume |
136 | 136 | publish_messages(connection, messages_to_send, stream_name) |
137 | 137 |
|
138 | | - stream_filter_options = StreamFilterOptions() |
| 138 | + stream_filter_options = StreamOptions() |
139 | 139 | stream_filter_options.offset(OffsetSpecification.first) |
140 | 140 |
|
141 | 141 | try: |
@@ -173,7 +173,7 @@ def test_stream_read_from_offset_ten(connection: Connection) -> None: |
173 | 173 | # publish and then consume |
174 | 174 | publish_messages(connection, messages_to_send, stream_name) |
175 | 175 |
|
176 | | - stream_filter_options = StreamFilterOptions() |
| 176 | + stream_filter_options = StreamOptions() |
177 | 177 | stream_filter_options.offset(10) |
178 | 178 |
|
179 | 179 | try: |
@@ -211,7 +211,7 @@ def test_stream_filtering(connection: Connection) -> None: |
211 | 211 |
|
212 | 212 | # consume and then publish |
213 | 213 | try: |
214 | | - stream_filter_options = StreamFilterOptions() |
| 214 | + stream_filter_options = StreamOptions() |
215 | 215 | stream_filter_options.apply_filters(["banana"]) |
216 | 216 | connection_consumer = create_connection() |
217 | 217 | consumer = connection_consumer.consumer( |
@@ -246,7 +246,7 @@ def test_stream_filtering_not_present(connection: Connection) -> None: |
246 | 246 | addr_queue = AddressHelper.queue_address(stream_name) |
247 | 247 |
|
248 | 248 | # consume and then publish |
249 | | - stream_filter_options = StreamFilterOptions() |
| 249 | + stream_filter_options = StreamOptions() |
250 | 250 | stream_filter_options.apply_filters(["apple"]) |
251 | 251 | connection_consumer = create_connection() |
252 | 252 | consumer = connection_consumer.consumer( |
@@ -284,7 +284,7 @@ def test_stream_match_unfiltered(connection: Connection) -> None: |
284 | 284 |
|
285 | 285 | # consume and then publish |
286 | 286 | try: |
287 | | - stream_filter_options = StreamFilterOptions() |
| 287 | + stream_filter_options = StreamOptions() |
288 | 288 | stream_filter_options.apply_filters(["banana"]) |
289 | 289 | stream_filter_options.filter_match_unfiltered(True) |
290 | 290 | connection_consumer = create_connection() |
|
0 commit comments