racker/virgo — pull request #12 by rphillips (2012-01-16 21:23:14+00:00)
Title: add tests for agent protocol

* Add client
* Add logging to modules

$ ./monitoring-agent -e test
Mon Jan 16 21:20:08 2012 INF: Log file started...
Mon Jan 16 21:20:08 2012 INF: Running Module ./test
Mon Jan 16 21:20:08 2012 INF: AgentProtocol listening at 127.0.0.1:8080
Running test_blah
Mon Jan 16 21:20:08 2012 DBG: connection:request: {"source":"1","id":0,"method":"handshake.hello","v":1}
Mon Jan 16 21:20:08 2012 DBG: client:process_line:{"id":0,"target":"1","v":1}
Finished running test_blah
Totals
checked: 0 failed: 0 passed: 3