Commit Graph

13 Commits

Author SHA1 Message Date
Daniel Nichter
983af3b158 Always save response object in PWS client before returning or dying. 2013-05-10 12:15:34 -07:00
Daniel Nichter
79c8705f02 Update default entry link. Handle catch/exit on signal better, faster. 2013-04-09 17:32:43 -06:00
Daniel Nichter
0e9e897791 Use 'Content-Type: multipart/form-data; boundary=Ym91bmRhcnk' to send multi-part data. 2013-03-21 07:52:21 -06:00
Daniel Nichter
5e5943bd36 Change Run to Task. Add Percona/WebAPI/Exception/Resource.pm. 2013-03-01 09:47:49 -07:00
Daniel Nichter
0be24a3b8d Misc work-in-progress updates to pt-agent, Agent and Config resources. Config will change again. Make Client::put() return Location header like POST. 2013-02-13 13:45:52 -07:00
Daniel Nichter
3f4a02e1fb Update pt-agent to implement new specs. 2013-01-31 17:00:38 -07:00
Daniel Nichter
24e505a43d Simplify and test Percona::WebAPI::Client.pm according to new web API specs. 2013-01-31 12:58:09 -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
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
Daniel Nichter
d035125729 Add headers to Lmo and WebAPI modules, and put the modules in pt-agent. 2012-12-24 18:20:25 -07:00
Daniel Nichter
93416d4cb6 Skeleton bin/pt-agent and lib/Percona/WebAPI. 2012-12-24 11:24:53 -07:00