test: add deployment rollback tests (closes #71) #78
Reference in New Issue
Block a user
Delete Branch "feature/deployment-rollback-tests"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Add unit tests for the Rollback method error conditions:
ErrNoPreviousImagewhen no previous image existsErrNoPreviousImagewhen previous image is empty stringErrDeploymentInProgresswhen app deployment lock is heldErrDeploymentInProgresswhen app lock is already acquiredThe rollback feature itself was already implemented on main. This PR adds the missing test coverage.
Test results
All tests pass (
make checkpasses):go test ./...— all PASSgolangci-lint— no issuesgofmt— cleanCloses #71
fix merge conflict pls
Pull request closed