Changes committed to git://git.performancecopilot.org/pcp.git dev
man/man3/pmwebapi.3 | 7
qa/660 | 6
qa/722.out | 784 ++++++++++----------
qa/780 | 64 +
qa/780.out | 8
qa/group | 1
src/pmatop/pmatop.py | 328 ++++++--
src/pmwebapi/jsdemos/blinkenlights/blinkenlights.js | 3
src/pmwebapi/pmwebapi.c | 62 +
9 files changed, 754 insertions(+), 509 deletions(-)
commit c298b0a7c3215887153106099423875727c72f88
Merge: d533a2d a5005c0
Author: Nathan Scott <nathans@xxxxxxxxxx>
Date: Wed Jun 11 14:43:06 2014 +1000
Merge branch 'fche-merge' into dev
commit a5005c065bc6ebba9522420791deb6f9b0bc3d2d
Author: Nathan Scott <nathans@xxxxxxxxxx>
Date: Wed Jun 11 14:40:19 2014 +1000
Trivial pmwebd related code/test cleanups
Fix test qa/660 notrun check, which was looking for pmproxy instead
of pmwebd by accident.
Make pmwebd use consistent handling of JSON request header addition
errors, making the code logic simpler to follow in some places and
audit/verification of the memory cleanup on these recently tweaked
paths a bit simpler.
commit c23e4d83247acdcce33ab3b730041eaab91c81f8
Author: Nathan Scott <nathans@xxxxxxxxxx>
Date: Wed Jun 11 14:32:14 2014 +1000
Sanity test for pmwebd Access-Control-Allow-Origin header
Adds qa/780 which exercises the presence of the pmwebd change
adding the Access-Control-Allow-Origin header to JSON requests.
Also adds in sanity testing of pmwebd -p option handling in the
process.
commit ebff872ca6b4fa8db7f5fd9e1352caaae888c1bc
Merge: cadab85 9b0742d
Author: Nathan Scott <nathans@xxxxxxxxxx>
Date: Wed Jun 11 13:31:45 2014 +1000
Merge branch 'fche/pmwebd-acao' of ../pcpfans into fche-merge
commit d533a2d0a0f04e4ecc302c0a461b605f299100a4
Merge: cadab85 37b4066
Author: Nathan Scott <nathans@xxxxxxxxxx>
Date: Wed Jun 11 11:43:59 2014 +1000
Merge branch 'scox/dev' of ../pcpfans into scox-merge
commit 37b4066c3324d3d3e610b50b706b5c500d77c56a
Author: Nathan Scott <nathans@xxxxxxxxxx>
Date: Wed Jun 11 11:34:25 2014 +1000
Tweak pmatop to use str.rstrip instead of the re module
Allows us to cull any+all imports of the "re" python module.
commit 9b0742d61fe476e4c9de6cd5a200ad7606de92e3
Author: Frank Ch. Eigler <fche@xxxxxxxxxx>
Date: Tue Jun 10 15:41:08 2014 -0400
pmwebapi.3: document new ACAO: * header
commit f413607f9ac9bb5ccef5ede558c31014ea4633d8
Author: Frank Ch. Eigler <fche@xxxxxxxxxx>
Date: Tue Jun 10 15:33:56 2014 -0400
pmwebd: add CORS Access-Control-Allow-Origin: * to JSON response headers
This is necessary to allow webapps not served by pmwebd's fileserver
to have problem-free cross-origin data access to the /pmapi/* goodies.
(Despite the name, it does not function as any sort of access control,
in that the pmapi data is produced. It only lets the web browsers
consume the data with less hassle.)
As a bonus, fix blinkenlights.js to be flexible with pmwebd port
numbering, which helps testing. To check the CORS functionality,
one would hand-edit that file to hardcode some remote pmwebd server
and confirm that the web browser is willing & able to connect.
commit 0d23b1853c1232b93db3cc16f6fe7f90f48c3b66
Author: Stan Cox <scox@xxxxxxxxxx>
Date: Tue Jun 10 12:26:45 2014 -0400
Improve pmatop value fitting.
* pmatop (_AtopPrint::valstr): Replaces put_value.
* qa/722.out: Use it.
commit 55de60ddb953a42f55f27212bf4c66f6f50ae269
Author: Stan Cox <scox@xxxxxxxxxx>
Date: Mon Jun 9 17:02:00 2014 -0400
Improve pmatop value fitting.
* pmatop (_AtopPrint::valstr): Replaces put_value with
functionality that fits a value to a maximum sized field.
(memstr): New.
* qa/722.out: Use it.
|