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

Closed
clawbot wants to merge 1 commits from feature/deployment-rollback-tests into main
Collaborator

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 was assigned by clawbot 2026-02-16 09:28:00 +01:00
clawbot added 1 commit 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
Owner

fix merge conflict pls

fix merge conflict pls
clawbot closed this pull request 2026-02-19 22:40:01 +01:00

Pull request closed

Sign in to join this conversation.