Commit c17eed6
committed
test+docs(updates): cover pending-after-register over HTTP and update rest.rst
Extend test_updates.test.py with an integration test that registers a
package and immediately fetches /updates/{id}/status, asserting a 200
response with status=pending and no progress/error keys - the end-to-end
counterpart to the new UpdateManagerTest.StatusPendingRightAfterRegister
unit test.
Update docs/api/rest.rst to describe the new contract: after a
successful POST /api/v1/updates, GET /api/v1/updates/{id}/status
immediately returns 200 with {"status":"pending"}. 404 is reserved for
packages that are not registered.1 parent a634ea3 commit c17eed6
2 files changed
Lines changed: 19 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1143 | 1143 | | |
1144 | 1144 | | |
1145 | 1145 | | |
| 1146 | + | |
| 1147 | + | |
| 1148 | + | |
| 1149 | + | |
1146 | 1150 | | |
1147 | 1151 | | |
1148 | 1152 | | |
| |||
1155 | 1159 | | |
1156 | 1160 | | |
1157 | 1161 | | |
1158 | | - | |
| 1162 | + | |
1159 | 1163 | | |
1160 | 1164 | | |
1161 | 1165 | | |
| |||
Lines changed: 14 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
353 | 353 | | |
354 | 354 | | |
355 | 355 | | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
356 | 370 | | |
357 | 371 | | |
358 | 372 | | |
| |||
0 commit comments