Commit 2d2f375
authored
Migrate Java IT tests to Testkit (#1097)
Migrated tests:
- `CausalClusteringIT.shouldNotReuseReadConnectionForWriteTransaction` -> `TestBookmarks.test_does_not_use_read_connection_for_write`
- `CausalClusteringIT.shouldExecuteReadAndWritesWhenDriverSuppliedWithAddressOfLeader` -> `Routing.test_should_get_rt_from_leader_w_and_r_via_leader_using_session_run`
- `CausalClusteringIT.shouldExecuteReadAndWritesWhenDriverSuppliedWithAddressOfFollower` -> `Routing.test_should_get_rt_from_follower_w_and_r_via_leader_using_session_run`
- `CausalClusteringIT.shouldDropBrokenOldConnections` -> `Routing.test_should_drop_connections_failing_liveness_check`
- `CausalClusteringIT.shouldRespectMaxConnectionPoolSizePerClusterMember` -> `Routing.test_should_enforce_pool_size_per_cluster_member`
- `CausalClusteringIT.shouldKeepOperatingWhenConnectionsBreak` -> unexpected interruptions are covered by routing tests `Routing.test_should_retry_read_tx_until_success_on_run_error`, `Routing.test_should_retry_read_tx_until_success_on_pull_error`, `Routing.test_should_retry_read_tx_until_success_on_error`, `Routing.test_should_retry_read_tx_and_rediscovery_until_success_on_run_failure`, `Routing.test_should_retry_read_tx_and_rediscovery_until_success_on_pull_failure`, `Routing.test_should_retry_read_tx_and_rediscovery_until_success`, `Routing.test_should_retry_write_tx_and_rediscovery_until_success_on_run_failure`, `Routing.test_should_retry_write_until_success_with_leader_change_on_run_using_tx_function`, `Routing.test_should_retry_write_tx_until_success_on_run_error`, `Routing.test_should_retry_write_tx_until_success_on_pull_error`, `Routing.test_should_retry_write_tx_and_rediscovery_until_success_on_pull_failure`, `Routing.test_should_retry_write_until_success_with_leader_change_using_tx_function`, `Routing.test_should_retry_write_tx_until_success_on_error`, `Routing.test_should_retry_write_tx_and_rediscovery_until_success`
Converted tests:
- `CausalClusteringIT.shouldExecuteReadAndWritesWhenRouterIsDiscovered` -> `GraphDatabaseTest.shouldNotFailRoutingDriverWhenThereIsWorkingUri`
New Testkit features:
- `Feature:API:Liveness.Check`
- `Temporary:DriverMaxConnectionPoolSize`
- `Temporary:ConnectionAcquisitionTimeout`
- `Temporary:GetConnectionPoolMetrics`
The `address` field has been added to `Summary` Testkit response.1 parent bc95327 commit 2d2f375
File tree
10 files changed
+201
-493
lines changed- driver/src
- main/java/org/neo4j/driver/internal/metrics
- test/java/org/neo4j/driver
- stress
- testkit-backend/src/main/java/neo4j/org/testkit/backend/messages
- requests
- responses
10 files changed
+201
-493
lines changedLines changed: 11 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
219 | 219 | | |
220 | 220 | | |
221 | 221 | | |
222 | | - | |
223 | 222 | | |
224 | 223 | | |
225 | 224 | | |
226 | 225 | | |
227 | | - | |
228 | | - | |
229 | | - | |
230 | | - | |
231 | | - | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
232 | 237 | | |
233 | 238 | | |
Lines changed: 34 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
| 28 | + | |
27 | 29 | | |
28 | 30 | | |
29 | 31 | | |
| |||
73 | 75 | | |
74 | 76 | | |
75 | 77 | | |
76 | | - | |
| 78 | + | |
77 | 79 | | |
78 | 80 | | |
79 | 81 | | |
| |||
85 | 87 | | |
86 | 88 | | |
87 | 89 | | |
88 | | - | |
| 90 | + | |
89 | 91 | | |
90 | 92 | | |
91 | | - | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
92 | 119 | | |
93 | 120 | | |
94 | 121 | | |
| |||
184 | 211 | | |
185 | 212 | | |
186 | 213 | | |
187 | | - | |
| 214 | + | |
188 | 215 | | |
189 | | - | |
| 216 | + | |
190 | 217 | | |
191 | | - | |
| 218 | + | |
192 | 219 | | |
193 | 220 | | |
194 | 221 | | |
195 | 222 | | |
196 | 223 | | |
197 | 224 | | |
198 | 225 | | |
199 | | - | |
| 226 | + | |
200 | 227 | | |
201 | 228 | | |
202 | 229 | | |
0 commit comments