Commit Graph

13 Commits

Author SHA1 Message Date
Daniel Nichter
89db22894e Test get_services(). Need to fix/update other tests. 2013-04-19 14:49:01 -06:00
Daniel Nichter
a32a583e05 Fix and test error on startup if config file is missing. Refactor run_agent(): move Agent setup stuff into start_agent(). Move related subs next to each other. 2013-04-13 11:27:45 -06:00
Daniel Nichter
2d89fe6163 Update/fix run_agent.t. Set action and link in run_agent() when given test agent. Fix apply_config(): don't die if config file doesn't exist. Expect Config.lib to be set. Fix run_service(): run run_once services without meta or syncing time interval. 2013-04-13 10:24:52 -06:00
Daniel Nichter
bf1cee02cf Re-enable tmpdir auto cleanup. 2013-03-25 14:54:17 -06:00
Daniel Nichter
bdc3487919 Add and test start_services() for Service.run_once_on_start. 2013-03-25 14:27:53 -06:00
Daniel Nichter
846daa6c31 Fix/update/test sending data. Rename query-monitor to query-server in tests. 2013-03-19 16:35:37 -06:00
Daniel Nichter
9afa462cc2 Fix/update t/pt-agent/run_agent.t. 2013-03-19 14:56:53 -06:00
Daniel Nichter
2291a3c6c6 Update Lmo in pt-agent. Start fixing pt-agent tests. 2013-03-19 12:10:22 -06:00
Daniel Nichter
3f4a02e1fb Update pt-agent to implement new specs. 2013-01-31 17:00:38 -07:00
Daniel Nichter
bf92ce765d Update/fix pt-agent to work with new Service.run_schedule and Service.spool_schedule attribs. 2013-01-30 13:25:21 -07:00
Daniel Nichter
f28aa90436 Finish writing and testing service scheduling code. 2013-01-08 10:55:58 -07:00
Daniel Nichter
0495f9aa8a Test and implement more run_agent(). Fix as_json() for lists of resources. Add alias attrib to Service for its friendly name; make name its code-friendly name. Fix ts in log messages. 2012-12-26 17:44:19 -07:00
Daniel Nichter
66fb54e793 Fix Client to expect X-Percona-Resource-Type else links. Add headers to Mock/UserAgent. Start testing run_agent(). As TO_JSON() magic to Run so encode can encode Service contain blessed Run objs. Use BUILDARGS to convert Run as hashref to real objs. 2012-12-26 13:00:46 -07:00