1
0
mirror of https://github.com/jhillyerd/inbucket.git synced 2025-12-17 17:47:03 +00:00

REST APIv1 now uses lowercase JSON property names

- Updated rest-apiv1.sh to pretty print JSON with jq if available
- Fixed some missing checks on JSON testutils
This commit is contained in:
James Hillyerd
2016-02-25 19:21:47 -08:00
parent 5da5d3e509
commit f36e21a65c
4 changed files with 76 additions and 58 deletions

View File

@@ -16,16 +16,16 @@ const (
baseURL = "http://localhost/api/v1"
// JSON map keys
mailboxKey = "Mailbox"
idKey = "Id"
fromKey = "From"
subjectKey = "Subject"
dateKey = "Date"
sizeKey = "Size"
headerKey = "Header"
bodyKey = "Body"
textKey = "Text"
htmlKey = "Html"
mailboxKey = "mailbox"
idKey = "id"
fromKey = "from"
subjectKey = "subject"
dateKey = "date"
sizeKey = "size"
headerKey = "header"
bodyKey = "body"
textKey = "text"
htmlKey = "html"
)
func TestRestMailboxList(t *testing.T) {