Commit Graph

17 Commits

Author SHA1 Message Date
Daniel Nichter
5e362d9e4b Fix write_services.t samples. Make send_data.t deterministic. 2013-01-31 17:14:32 -07:00
Daniel Nichter
3f4a02e1fb Update pt-agent to implement new specs. 2013-01-31 17:00:38 -07:00
Daniel Nichter
a8da9c268a Fix t/pt-agent/schedule_services.t. 2013-01-30 16:55:42 -07:00
Daniel Nichter
07da85bb75 Clarify a code comment. 2013-01-30 16:46:36 -07:00
Daniel Nichter
f7813c9495 Fix t/pt-agent/make_new_crontab.t. 2013-01-30 16:44:22 -07:00
Daniel Nichter
7331a7f857 Fix t/pt-agent/send_data.t. 2013-01-30 16:28:41 -07:00
Daniel Nichter
9cc3c81143 Fix init_agent.t. 2013-01-30 15:52:26 -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
8f59c9f357 Change --check-spool to --send-data, and Run->schedule to Run->run_schedule. Add Run->spool_schedule and Run->queries. Remove Service->alias. 2013-01-14 15:02:07 -07:00
Daniel Nichter
526437632c Implement and test --check-spool. Make Mock/UserAgent save put and post data in an array. Make Percona/WebAPI/Client accept ready-made text resources, for multi-part resources. 2013-01-08 18:49:42 -07:00
Daniel Nichter
d68301f293 Implement and test pt-agent --run-service. 2013-01-08 13:19:55 -07:00
Daniel Nichter
f28aa90436 Finish writing and testing service scheduling code. 2013-01-08 10:55:58 -07:00
Daniel Nichter
d7f49dee8a Start writing and testing schedule_services(). 2013-01-07 17:52:37 -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
Daniel Nichter
87080d44b2 Fix WebAPI::Client to always expect links: in reponse. 2012-12-26 09:16:53 -07:00
Daniel Nichter
5051abc7ec Partly working and tested pt-agent. Fix Percona/WebAPI/Client.pm. Add Percona/WebAPI/Util.pm, Percona/Test.pm, and /Test/Mock/UserAgent.pm. 2012-12-25 19:40:42 -07:00