Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add release endpoints #696

Merged
merged 2 commits into from
Aug 31, 2023
Merged

Add release endpoints #696

merged 2 commits into from
Aug 31, 2023

Conversation

a3957273
Copy link
Member

Adds create, list, get and delete endpoints and their corresponding services.


test('createRelease > bad authorisation', async () => {
authorisationMocks.userReleaseAction.mockResolvedValueOnce(false)
expect(() => createRelease({} as any, {} as any)).rejects.toThrowError(/^You do not have permission/)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For cases like this we could also assert that release.save() does not get called as well as the error getting thrown as those both seem like the two most important outcomes of someone not having the permission to do something like this?

@a3957273 a3957273 merged commit 3398460 into main Aug 31, 2023
@a3957273 a3957273 deleted the feature/release-endpoints branch August 31, 2023 14:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants