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 tests to validate expected HTTP status response codes #68

Open
atc0005 opened this issue Jan 13, 2022 · 1 comment
Open

Add tests to validate expected HTTP status response codes #68

atc0005 opened this issue Jan 13, 2022 · 1 comment
Assignees
Labels
Milestone

Comments

@atc0005
Copy link
Owner

atc0005 commented Jan 13, 2022

See #66 for why this is needed.

I've not performed this specific kind of testing before, so will need to look over some reference material first.

@atc0005 atc0005 added the tests label Jan 13, 2022
@atc0005 atc0005 added this to the Future milestone Jan 13, 2022
@atc0005 atc0005 self-assigned this Jan 13, 2022
@atc0005
Copy link
Owner Author

atc0005 commented Jan 13, 2022

I've not performed this specific kind of testing before, so will need to look over some reference material first.

Note to self: I think I recall seeing this handled in "Mastering Go, 3e" as part of testing the REST API created in one of the lessons.

EDIT: See https://github.com/mactsouk/rest-api/blob/main/server_test.go

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant