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

Open
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
This pull request has changes conflicting with the target branch.
  • internal/server/routes.go

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin feature/deployment-rollback-tests:feature/deployment-rollback-tests
git checkout feature/deployment-rollback-tests
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: sneak/upaas#78
No description provided.