Project

General

Profile

Test Plan » History » Version 2

Version 1 (Luke Murphey, 07/06/2017 06:03 PM) → Version 2/3 (Luke Murphey, 07/06/2017 06:05 PM)

h1. Test Plan

* Input accepts JSON data
** curl -d '{"key1":"value1", "key2":"value2"}' -H "Content-Type: application/json" -X POST http://localhost/data
* Input doesn't error on bad data
** curl -d '{"key1' -H "Content-Type: application/json" -X POST http://localhost/data
* Input handles plain text: doesn't error on bad data
** curl -d 'Plan text' -H "Content-Type: text/plain" -X POST http://localhost/data
* Input accepts hierarchical data and flattens it
** curl -d '{"key1": {"keyA":"A"}, "key2":["value2", "value3"]}' -H "Content-Type: application/json"
-X POST http://localhost/data