Initial implementation of osqueryd enrollment + tests (#36)

*EnrollHost now generates a node key and stores host information into the DB
* Unit and integration tests

Closes #6
This commit is contained in:
Zachary Wasserman
2016-08-11 13:50:03 -07:00
committed by GitHub
parent 4db4e95b38
commit 809a010a1d
8 changed files with 356 additions and 14 deletions
-2
View File
@@ -149,8 +149,6 @@ func TestReturnErrorValidationError(t *testing.T) {
t.Errorf("Should respond with 422, got %d", resp.Code)
}
t.Log(resp.Body.String())
var bodyJson map[string]interface{}
if err := json.Unmarshal(resp.Body.Bytes(), &bodyJson); err != nil {
t.Errorf("Error unmarshaling JSON: %s", err.Error())