Skip to content

Commit

Permalink
feat(db-test): fix indentation on JSON inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
Rudyard Richter committed Mar 20, 2019
1 parent 0083436 commit 15ffac4
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions arborist/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -280,9 +280,9 @@ func TestServer(t *testing.T) {
"id": "bazgo-create",
"permissions": [
{
"id": "foo",
"action": {"service": "bazgo", "method": "create"}
}
"id": "foo",
"action": {"service": "bazgo", "method": "create"}
}
]
}`)
req = newRequest("POST", "/role", bytes.NewBuffer(body))
Expand All @@ -293,10 +293,10 @@ func TestServer(t *testing.T) {
// create the policy
w = httptest.NewRecorder()
body = []byte(`{
"id": "bazgo-create-b",
"resource_paths": ["/a/b"],
"role_ids": ["bazgo-create"]
}`)
"id": "bazgo-create-b",
"resource_paths": ["/a/b"],
"role_ids": ["bazgo-create"]
}`)
req = newRequest("POST", "/policy", bytes.NewBuffer(body))
handler.ServeHTTP(w, req)
if w.Code != http.StatusCreated {
Expand Down

0 comments on commit 15ffac4

Please sign in to comment.