micropub icon indicating copy to clipboard operation
micropub copied to clipboard

Unit Testing

Open grantcodes opened this issue 8 years ago • 0 comments

Need to set up unit testing

Rough lists of tests needed (mostly from micropub.rocks)

  • [ ] Auth via html tags
  • [ ] Auth via headers
  • [ ] Auth with base element
  • [ ] Auth resolves relative and absolute urls
  • [ ] Everything works with urls that include ? query parameters
  • [ ] 100 Create an h-entry post (form-encoded)
  • [ ] 105 Create an h-entry and syndicate it
  • [ ] 200 Create an h-entry post (JSON)
  • [ ] 201 Create an h-entry post with multiple categories (JSON)
  • [ ] 202 Create an h-entry with HTML content (JSON)
  • [ ] 203 Create an h-entry with a file referenced by URL (JSON)
  • [ ] 205 Create an h-entry with a photo including image alt text
  • [ ] 300 Create an h-entry with a file upload (Multipart)
  • [ ] 400 Replace a property in a post
  • [ ] 401 Add a value to an existing property
  • [ ] 402 Remove a value from a property
  • [ ] 403 Remove a property
  • [ ] 500 Delete a post
  • [ ] 502 Undelete a post
  • [ ] 600 Configuration Query
  • [ ] 601 Syndication Query
  • [ ] 602 Source Query (All Properties)
  • [ ] 603 Source Query (Specific Properties)
  • [ ] 700 Upload a photo to the Media Endpoint
  • [ ] All to be run both client and server side

grantcodes avatar Mar 06 '17 22:03 grantcodes