Repository navigation
Commit 77789d8
committed
test(spring-boot): Move the Boot 2 sample's tests into the module
Adds an integrationTest suite to sentry-spring-boot that mirrors the
jakarta one and ports the Boot 2 sample's Person, DistributedTracing,
Todo, Cache and Metrics tests to it. Spring Boot 2 has no RestClient,
so the tracing forwards through RestTemplate and Todo covers three
clients, and WebClient is called on the request thread because Reactor
3.4 lacks automatic context propagation. The Person test is the jakarta
one, which also checks the logged error and a span's feature flag that
the Boot 2 sample never asserted.
The Spring Boot 2 matrix runs the suite from 2.4 to 2.7. Below 2.7 the
sample's remaining GraphQL and Kafka tests are excluded, so its
systemTest no longer fails on finding none.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>1 parent 4b82f23 commit 77789d8
20 files changed
Lines changed: 710 additions & 460 deletions
File tree
- .github/workflows
- sentry-samples/sentry-samples-spring-boot
- src/test/kotlin/io/sentry/systemtest
- sentry-spring-boot
- src/integrationTest
- kotlin/io/sentry/spring/boot/integrationtest
- resources
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
90 | 93 | | |
91 | 94 | | |
92 | 95 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
| 156 | + | |
| 157 | + | |
156 | 158 | | |
157 | 159 | | |
158 | 160 | | |
| |||
0 commit comments