Commit 997311e
test(deploy): fix remaining mig-068 mock sites — full-row helper + MarkBuilding SQL
Two more mock sites still on the pre-068 shape, surfaced by the model/handler
*_Branches + redeploy-CASMiss tests:
- coverage_provision_gate_test.go: deploymentMockCols() + deploymentMockRow()
(the shared full-deployment mock used by every models *_Branches test) now
include last_activity_at / scaled_to_zero / always_on (33 cols, matching
scanDeployment) — fixes the "expected 30 destination arguments, not 33" Scan
errors in TestGetDeploymentByAppID/ByID/ByTeam/...Branches.
- MarkDeploymentBuilding's SQL now also sets scaled_to_zero=false +
last_activity_at=now() on redeploy (a redeploy is activity + brings replicas
back to 1). Update the ExpectExec regexes that pinned the old SQL: 2 in
coverage_deployment_test.go, 5 in deploy_redeploy_inplace_mock_test.go.
Completes the rule-16 enumeration of every deployments-row mock site rippled by
migration 068. Test-only.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent b0ac2ba commit 997311e
3 files changed
Lines changed: 9 additions & 7 deletions
File tree
- internal
- handlers
- models
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
338 | 338 | | |
339 | 339 | | |
340 | 340 | | |
341 | | - | |
| 341 | + | |
342 | 342 | | |
343 | 343 | | |
344 | 344 | | |
| |||
494 | 494 | | |
495 | 495 | | |
496 | 496 | | |
497 | | - | |
| 497 | + | |
498 | 498 | | |
499 | 499 | | |
500 | 500 | | |
| |||
606 | 606 | | |
607 | 607 | | |
608 | 608 | | |
609 | | - | |
| 609 | + | |
610 | 610 | | |
611 | 611 | | |
612 | 612 | | |
| |||
661 | 661 | | |
662 | 662 | | |
663 | 663 | | |
664 | | - | |
| 664 | + | |
665 | 665 | | |
666 | 666 | | |
667 | 667 | | |
| |||
713 | 713 | | |
714 | 714 | | |
715 | 715 | | |
716 | | - | |
| 716 | + | |
717 | 717 | | |
718 | 718 | | |
719 | 719 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
351 | 351 | | |
352 | 352 | | |
353 | 353 | | |
354 | | - | |
| 354 | + | |
355 | 355 | | |
356 | 356 | | |
357 | 357 | | |
358 | 358 | | |
359 | 359 | | |
360 | 360 | | |
361 | 361 | | |
362 | | - | |
| 362 | + | |
363 | 363 | | |
364 | 364 | | |
365 | 365 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| |||
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
| 34 | + | |
33 | 35 | | |
34 | 36 | | |
35 | 37 | | |
| |||
0 commit comments