Commit 3803f1d
committed
Re-record suite: cover /summary + /{id}/stock, deterministic ordering, name length=120
Regenerates the Keploy test set against the updated app so all committed changes that
touch recorded state land together and replay stays green:
- Coverage: the suite now exercises all seven endpoints — adds GET /api/products/summary
and PATCH /api/products/{id}/stock (restock, ship, 409 over-decrement, 404), closing the
previously documented gap. 57 -> 63 test cases, 190 -> 214 Postgres mocks.
- Determinism: list/filter/summary queries now use an explicit ORDER BY id
(findByCategoryIgnoreCaseOrderByIdAsc / findAll(Sort.by("id"))), so re-records reproduce
a stable row order instead of Postgres heap order.
- Schema: name column is length = 120, matching the @SiZe(max = 120) validation constraint;
the regenerated CREATE-table mock reflects it, so the DB-absent replay still starts clean.
- README updated for the new counts and full-coverage note.
Verified green both ways: 'keploy test' (real DB) and the DB-absent docker-compose.keploy.yml
replay both report Total: 63 Passed: 63 Failed: 0.
Signed-off-by: dhananjay6561 <dhananjayaggarwal6561@gmail.com>1 parent 7c68ee4 commit 3803f1d
70 files changed
Lines changed: 4700 additions & 2058 deletions
File tree
- spring-boot-product-catalog
- keploy/products-crud
- tests
- src/main/java/io/keploy/productcatalog
- model
- repository
- service
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | | - | |
| 15 | + | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
91 | 90 | | |
92 | 91 | | |
93 | 92 | | |
| |||
193 | 192 | | |
194 | 193 | | |
195 | 194 | | |
196 | | - | |
| 195 | + | |
197 | 196 | | |
198 | 197 | | |
199 | 198 | | |
| |||
219 | 218 | | |
220 | 219 | | |
221 | 220 | | |
222 | | - | |
| 221 | + | |
223 | 222 | | |
224 | 223 | | |
225 | 224 | | |
| |||
251 | 250 | | |
252 | 251 | | |
253 | 252 | | |
254 | | - | |
| 253 | + | |
255 | 254 | | |
256 | | - | |
257 | | - | |
258 | | - | |
259 | | - | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
260 | 261 | | |
261 | 262 | | |
262 | 263 | | |
| |||
296 | 297 | | |
297 | 298 | | |
298 | 299 | | |
299 | | - | |
| 300 | + | |
300 | 301 | | |
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | | - | |
| 9 | + | |
| 10 | + | |
0 commit comments