Commit a87ffdf
authored
Add ability to write
## Motivation and Context
This `integration-tests` directory makes it possible to write
Rust code that you can run directly against the generated servers
from the protocol test models. This makes it easier to test things
like event streams behavior and other specifics that are hard to
test with protocol tests alone.
## Description
I added a test for #4325 (showing the broken behavior) that we can use
when we fix this issue. This will also make it easy to test a number of
other open issues that have been found.
To make this easy I also added a `EventStreamSender::once` method for
convenience. The `ManualEventStream` sender could be upstreamed at a
later date so it is more broadly usable but I didn't want to pin down a
public API for it right now.
<!--- Describe your changes in detail -->
----
_By submitting this pull request, I confirm that you can use, modify,
copy, and redistribute this contribution, under the terms of your
choice._integration-tests for servers (#4332)1 parent 93ecc1f commit a87ffdf
File tree
12 files changed
+2495
-21
lines changed- codegen-core/common-test-models
- codegen-server-test
- integration-tests
- eventstreams
- src
- tests
- rust-runtime/aws-smithy-http
- src/event_stream
12 files changed
+2495
-21
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
22 | 49 | | |
23 | 50 | | |
24 | 51 | | |
| |||
84 | 111 | | |
85 | 112 | | |
86 | 113 | | |
87 | | - | |
88 | 114 | | |
89 | 115 | | |
90 | 116 | | |
| |||
303 | 329 | | |
304 | 330 | | |
305 | 331 | | |
306 | | - | |
307 | 332 | | |
308 | | - | |
309 | 333 | | |
310 | 334 | | |
311 | 335 | | |
312 | 336 | | |
313 | | - | |
314 | 337 | | |
315 | 338 | | |
316 | | - | |
317 | 339 | | |
318 | 340 | | |
319 | | - | |
320 | 341 | | |
321 | 342 | | |
322 | 343 | | |
323 | 344 | | |
324 | | - | |
325 | 345 | | |
326 | | - | |
327 | 346 | | |
328 | 347 | | |
329 | 348 | | |
330 | 349 | | |
331 | | - | |
332 | 350 | | |
333 | 351 | | |
334 | | - | |
335 | 352 | | |
336 | 353 | | |
337 | 354 | | |
| |||
344 | 361 | | |
345 | 362 | | |
346 | 363 | | |
347 | | - | |
348 | 364 | | |
349 | | - | |
350 | 365 | | |
351 | 366 | | |
352 | 367 | | |
353 | 368 | | |
354 | 369 | | |
355 | 370 | | |
356 | | - | |
| 371 | + | |
357 | 372 | | |
358 | 373 | | |
359 | 374 | | |
| |||
399 | 414 | | |
400 | 415 | | |
401 | 416 | | |
402 | | - | |
403 | 417 | | |
404 | 418 | | |
405 | 419 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
39 | | - | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
40 | 48 | | |
41 | 49 | | |
42 | 50 | | |
| |||
47 | 55 | | |
48 | 56 | | |
49 | 57 | | |
50 | | - | |
| 58 | + | |
51 | 59 | | |
52 | 60 | | |
53 | 61 | | |
| |||
110 | 118 | | |
111 | 119 | | |
112 | 120 | | |
113 | | - | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
114 | 128 | | |
115 | 129 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
0 commit comments