Add tests to validate expected HTTP status response codes
atc0005 opened this issue · 1 comments
atc0005 commented
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 commented
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