Commit Graph

17 Commits

Author SHA1 Message Date
Brian Fraser
9f79d4b7ba v-c: Updated to identify and report every instance, and to skip instances already version-checked that day 2012-08-24 19:09:59 -03:00
Brian Fraser
36a0dff6ee Pingback: Update the file-checking function 2012-08-24 13:14:46 -03:00
Daniel Nichter
639f47eb70 Add t/pt-archiver/version_check.t, v-c integration tests. Don't exit early if PTDEBUG && PTVCDEBUG (don't know what state the tool may be in). 2012-08-22 16:20:00 -06:00
Daniel Nichter
66f1bdf403 Change staging.upgrade.percona.com to $ENV{PERCONA_VERSION_CHECK_URL} || http://v.percona.com. 2012-08-22 15:10:33 -06:00
Daniel Nichter
a95aa2b3bc Put everything in Pingback::version_check(). Change HTTP::Micro to HTTPMicro in pingback(). Simplify time_to_check() a little and add more debug. Fix Pingback.t now that client response doesn't have TYPE and no response causes die. 2012-08-21 15:06:28 -06:00
Brian Fraser fraserb@gmail.com
e5b99fb41c Pingback::_touch should update the [ma]time of the file 2012-08-21 17:00:32 -03:00
Daniel Nichter
2d41598ea4 Add PTVCDEBUG and die instead of returning in pingback() so PTVCDEBUG can report better info. 2012-08-21 13:54:48 -06:00
Brian Fraser fraserb@gmail.com
01937e6d9f Implemented Pingback::time_to_check() 2012-08-21 16:50:12 -03:00
Brian Fraser fraserb@gmail.com
615c5ad508 Fix several test failures by doing s/HTTP::Micro/HTTPMicro/ 2012-08-21 14:37:10 -03:00
Daniel Nichter
8db5b77a4e Change HTTPMicro to HTTP::Micro in Pingback to avoid 'subroutine redefined' errors. 2012-08-21 08:19:52 -06:00
Daniel Nichter
70c295bc0a Make Pingback::pingback() do all the work, return list of advices (suggestions). More Pingback tests. Rename --check-for-updates to --version-check and document. Make VersionCheck::parse_server_response() optionally not split vars, so the same proto can be used for server advice lines. 2012-08-09 16:44:47 -06:00
Brian Fraser
1370490fb6 Reduce the timeout to 5 seconds 2012-08-09 17:53:35 -03:00
Brian Fraser
c7060a99a7 Add ping_for_updates(), send the X-Percona-Toolkit-Tool header, and fix an error in pingback() 2012-08-09 17:38:39 -03:00
Brian Fraser
4a04837378 Updated t/lib/Pingback.t to use the new type names 2012-08-09 16:45:29 -03:00
Daniel Nichter
d8bb594059 Clean up Pingback.pm, make it encode the client response correctly, and abstract and rewrite the tests. 2012-08-09 12:47:30 -06:00
Brian Fraser
5281e109e9 Updated Pingback.pm 2012-08-09 12:15:55 -03:00
Brian Fraser fraserb@gmail.com
58647e8b42 Add lib/Pingback.pm and tests 2012-08-07 18:08:51 -03:00