test: add deployment rollback tests (closes #71) #78
No reviewers
Labels
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: sneak/upaas#78
Loading…
Reference in New Issue
Block a user
No description provided.
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
Checkout
From your project repository, check out a new branch and test the changes.