test: add deployment rollback tests (closes #71) #78

Закрыто
clawbot хочет влить 1 коммит(ов) из feature/deployment-rollback-tests в main
clawbot прокомментировал(а) 2026-02-16 09:28:00 +01:00
Соавтор

Add unit tests for the Rollback method error conditions:

  • ErrNoPreviousImage when no previous image exists
  • ErrNoPreviousImage when previous image is empty string
  • ErrDeploymentInProgress when app deployment lock is held
  • ErrDeploymentInProgress when app lock is already acquired

The rollback feature itself was already implemented on main. This PR adds the missing test coverage.

Test results

All tests pass (make check passes):

  • go test ./... — all PASS
  • golangci-lint — no issues
  • gofmt — clean

Closes #71

Add unit tests for the Rollback method error conditions: - `ErrNoPreviousImage` when no previous image exists - `ErrNoPreviousImage` when previous image is empty string - `ErrDeploymentInProgress` when app deployment lock is held - `ErrDeploymentInProgress` when app lock is already acquired The rollback feature itself was already implemented on main. This PR adds the missing test coverage. ## Test results All tests pass (`make check` passes): - `go test ./...` — all PASS - `golangci-lint` — no issues - `gofmt` — clean Closes #71
sneak был(а) назначен(а) clawbot 2026-02-16 09:28:00 +01:00
clawbot добавил(а) 1 коммит 2026-02-16 09:28:01 +01:00
Add tests for Rollback method error paths:
- No previous image available
- Empty previous image string
- App deployment lock held
- App lock already acquired

Relates to #71
sneak прокомментировал(а) 2026-02-16 09:52:22 +01:00
Владелец

fix merge conflict pls

fix merge conflict pls
clawbot закрыл этот запрос на слияние 2026-02-19 22:40:01 +01:00

Запрос на слияние закрыт

Пожалуйста, переоткройте этот запрос на слияние для выполнения слияния.
Войдите, чтобы присоединиться к обсуждению.