Skip to content

Instantly share code, notes, and snippets.

@sylwit
Created July 28, 2016 04:12
Show Gist options
  • Save sylwit/cc75671f869ef86f27136a151f8aeb59 to your computer and use it in GitHub Desktop.
Save sylwit/cc75671f869ef86f27136a151f8aeb59 to your computer and use it in GitHub Desktop.
| Test | How | HTTP code expected | Assertions |
|-----------------------------------|-------------------------------------------------------------|--------------------|------------------------------------------------------------|
| Should return a list of resources | Call URL | 200 | Count property should match rows.length |
| Should filter resources | Call URL with filter parameters (limit, sort, start,filter) | 200 | Count property, rows.length, id of first and last resource |
| Should return a specific resource | Call URL with a resource ID | 200 | Check each property |
| Should fail if resource not found | Call URL with a fake resource ID | 404 | |
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment